internal void SetThisColumnKey <TU>(OneToManyPart <TU> column)
 {
     column.KeyColumn(GetIdName);
 }
 /// <summary>
 /// Specify the key column name using the given expression with additional "Id" postfix
 /// </summary>
 /// <typeparam name="TChild"></typeparam>
 /// <param name="oneToMany"></param>
 /// <param name="columnExp"></param>
 /// <returns></returns>
 public static OneToManyPart <TChild> KeyColumn <TChild>(this OneToManyPart <TChild> oneToMany, Expression <Func <TChild, object> > columnExp)
 {
     return(oneToMany.KeyColumn(columnExp.GetFullPropertyName() + "Id"));
 }
Esempio n. 3
0
 public static OneToManyPart <TChild> KeyColumn <TChild, TParent>(this OneToManyPart <TChild> oneToManyPart,
                                                                  Expression <Func <TChild, TParent> > memberExpression)
 {
     return(oneToManyPart.KeyColumn(memberExpression.ToMember().Name + "_id"));
 }