示例#1
0
 public override TestReferenceCollectionBuilder <TEntity, TRelatedEntity> HasPrincipalKey(
     Expression <Func <TEntity, object> > keyExpression)
 => Wrap(ReferenceCollectionBuilder.HasPrincipalKey(keyExpression.GetPropertyAccessList().Select(p => p.Name).ToArray()));
示例#2
0
 public override TestReferenceCollectionBuilder <TEntity, TRelatedEntity> HasPrincipalKey(
     Expression <Func <TEntity, object?> > keyExpression)
 => Wrap(
     ReferenceCollectionBuilder.HasPrincipalKey(
         keyExpression.GetMemberAccessList().Select(p => p.GetSimpleMemberName()).ToArray()));