ManyToOnePart <TOther> References <TOther>(Member member, string columnName) { //PROTOTYPE1: ADDED var part = providers.References.OfType <ManyToOnePart <TOther> >().FirstOrDefault(m => m.Property.Name == member.Name); if (part == null) { //PROTOTYPE1: ADDED OnMemberMapped(member); part = new ManyToOnePart <TOther>(EntityType, member); //PROTOTYPE1: ADDED if (this.UseBackingField(member.Name)) { part.Access.CamelCaseField(Prefix.Underscore); } //PROTOTYPE1: ADDED if (columnName != null) { part.Column(columnName); } providers.References.Add(part); //PROTOTYPE1: ADDED } //PROTOTYPE1: ADDED return(part); }
private ManyToOnePart <TOther> References <TOther>(Member member, string columnName) { this.OnMemberMapped(member); ManyToOnePart <TOther> manyToOnePart = new ManyToOnePart <TOther>(this.EntityType, member); if (columnName != null) { manyToOnePart.Column(columnName); } this.providers.References.Add((IManyToOneMappingProvider)manyToOnePart); return(manyToOnePart); }
protected virtual ManyToOnePart <TOther> References <TOther>(Member property, string columnName) { var part = new ManyToOnePart <TOther>(typeof(T), property); if (columnName != null) { part.Column(columnName); } references.Add(part); return(part); }
protected virtual ManyToOnePart <TOther> References <TOther>(Member property, string columnName) { var part = new ManyToOnePart <TOther>(EntityType, property); if (columnName != null) { part.Column(columnName); } providers.References.Add(part); return(part); }
ManyToOnePart <TOther> References <TOther>(Member member, string columnName) { OnMemberMapped(member); var part = new ManyToOnePart <TOther>(EntityType, member); if (columnName != null) { part.Column(columnName); } providers.References.Add(part); return(part); }