Skip to content

Instantly share code, notes, and snippets.

Adam Bar NOtherDev

Block or report user

Report or block NOtherDev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@NOtherDev
NOtherDev / ModelMapperWithNamingConventions.cs
Created Jan 6, 2012
NHibernate mapping-by-code naming convention resembling Fluent's
View ModelMapperWithNamingConventions.cs
// NHibernate mapping-by-code naming convention resembling Fluent's
// See the blog post: http://notherdev.blogspot.com/2012/01/mapping-by-code-naming-convention.html
public class ModelMapperWithNamingConventions : ConventionModelMapper
{
public const string ForeignKeyColumnPostfix = "_id";
public const string ManyToManyIntermediateTableInfix = "To";
public const char ElementColumnTrimmedPluralPostfix = 's';
private readonly List<MemberInfo> _ignoredMembers = new List<MemberInfo>();
You can’t perform that action at this time.