Exemplo n.º 1
0
 protected internal ClassJoinManyDefine(ClassDefineMetadata metadata, MemberInfo member, Func <TEntity, ISpecification <TJoin>, ISpecification <TJoin> > joinonExpr) :
     base(metadata, ClassJoinType.HasMany, member, joinonExpr)
 {
     cascadeDefine = new ClassJoinManyCascadeDefine <TEntity, TJoin>(JoinMetadata);
     cacheDefine   = new ClassJoinCacheDefine <TEntity, TJoin>(JoinMetadata.JoinCache);
 }
Exemplo n.º 2
0
 protected internal ClassJoinManyDefine(ClassDefineMetadata metadata, MemberInfo member, Action <TEntity, HasManyByForeignKeyDefine> foreignKeyDefine)
     : base(metadata, ClassJoinType.HasManyByForeignKey, member, foreignKeyDefine)
 {
     cascadeDefine = new ClassJoinManyCascadeDefine <TEntity, TJoin>(JoinMetadata);
     cacheDefine   = new ClassJoinCacheDefine <TEntity, TJoin>(JoinMetadata.JoinCache);
 }