59909a5ee7
Must use the Repositories with Using or else bad things will happen.
17 lines
411 B
C#
17 lines
411 B
C#
using System;
|
|
using FluentNHibernate.Conventions;
|
|
using FluentNHibernate;
|
|
|
|
namespace Tanshu.Accounts.Conventions
|
|
{
|
|
public class CustomForeignKeyConvention : ForeignKeyConvention
|
|
{
|
|
protected override string GetKeyName(Member property, Type type)
|
|
{
|
|
return property == null
|
|
? type.Name + "ID"
|
|
: property.Name + "ID";
|
|
}
|
|
}
|
|
}
|