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); }
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); }