0f323f8fab
Signed-off-by: unknown <tanshu@.(none)>
24 lines
613 B
C#
24 lines
613 B
C#
using System;
|
|
using FluentNHibernate;
|
|
using FluentNHibernate.Automapping;
|
|
|
|
namespace Tanshu.Accounts.Repository
|
|
{
|
|
public class StoreConfiguration : DefaultAutomappingConfiguration
|
|
{
|
|
public override bool ShouldMap(Type type)
|
|
{
|
|
return type.Namespace.StartsWith("Tanshu.Accounts.Entities");
|
|
}
|
|
public override bool IsId(Member member)
|
|
{
|
|
string key = member.DeclaringType.Name + "ID";
|
|
return key == member.Name;
|
|
}
|
|
public override bool IsDiscriminated(Type type)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|