コード例 #1
0
 public override TestEntityTypeBuilder <TJoinEntity> UsingEntity <TJoinEntity>(
     string joinEntityName)
 => new GenericTypeTestEntityTypeBuilder <TJoinEntity>(
     new EntityTypeBuilder <TJoinEntity>(
         CollectionCollectionBuilder.UsingEntity(
             joinEntityName,
             typeof(TJoinEntity)).Metadata));
コード例 #2
0
 public override TestEntityTypeBuilder <TRightEntity> UsingEntity <TJoinEntity>(
     string joinEntityName,
     Action <TestEntityTypeBuilder <TJoinEntity> > configureJoinEntityType)
 => new GenericTypeTestEntityTypeBuilder <TRightEntity>(
     CollectionCollectionBuilder.UsingEntity(
         joinEntityName,
         typeof(TJoinEntity),
         e => configureJoinEntityType(
             new GenericTypeTestEntityTypeBuilder <TJoinEntity>(new EntityTypeBuilder <TJoinEntity>(e.Metadata)))));
コード例 #3
0
 public override TestEntityTypeBuilder <TJoinEntity> UsingEntity <TJoinEntity>(
     Func <TestEntityTypeBuilder <TJoinEntity>,
           TestReferenceCollectionBuilder <TLeftEntity, TJoinEntity> > configureRight,
     Func <TestEntityTypeBuilder <TJoinEntity>,
           TestReferenceCollectionBuilder <TRightEntity, TJoinEntity> > configureLeft)
 => new GenericTypeTestEntityTypeBuilder <TJoinEntity>(
     new EntityTypeBuilder <TJoinEntity>(
         CollectionCollectionBuilder.UsingEntity(
             typeof(TJoinEntity),
             l => ((GenericTestReferenceCollectionBuilder <TLeftEntity, TJoinEntity>)configureRight(
                       new GenericTypeTestEntityTypeBuilder <TJoinEntity>(new EntityTypeBuilder <TJoinEntity>(l.Metadata))))
             .ReferenceCollectionBuilder,
             r => ((GenericTestReferenceCollectionBuilder <TRightEntity, TJoinEntity>)configureLeft(
                       new GenericTypeTestEntityTypeBuilder <TJoinEntity>(new EntityTypeBuilder <TJoinEntity>(r.Metadata))))
             .ReferenceCollectionBuilder).Metadata));
コード例 #4
0
 public override TestEntityTypeBuilder <TRightEntity> UsingEntity <TJoinEntity>(
     string joinEntityName,
     Func <TestEntityTypeBuilder <TJoinEntity>,
           TestReferenceCollectionBuilder <TLeftEntity, TJoinEntity> > configureRight,
     Func <TestEntityTypeBuilder <TJoinEntity>,
           TestReferenceCollectionBuilder <TRightEntity, TJoinEntity> > configureLeft,
     Action <TestEntityTypeBuilder <TJoinEntity> > configureJoinEntityType)
     where TJoinEntity : class
 => new GenericTypeTestEntityTypeBuilder <TRightEntity>(
     CollectionCollectionBuilder.UsingEntity(
         joinEntityName,
         typeof(TJoinEntity),
         l => ((GenericTestReferenceCollectionBuilder <TLeftEntity, TJoinEntity>)configureRight(
                   new GenericTypeTestEntityTypeBuilder <TJoinEntity>(new EntityTypeBuilder <TJoinEntity>(l.Metadata))))
         .ReferenceCollectionBuilder,
         r => ((GenericTestReferenceCollectionBuilder <TRightEntity, TJoinEntity>)configureLeft(
                   new GenericTypeTestEntityTypeBuilder <TJoinEntity>(new EntityTypeBuilder <TJoinEntity>(r.Metadata))))
         .ReferenceCollectionBuilder,
         e => configureJoinEntityType(
             new GenericTypeTestEntityTypeBuilder <TJoinEntity>(new EntityTypeBuilder <TJoinEntity>(e.Metadata)))));
コード例 #5
0
 public GenericStringTestCollectionCollectionBuilder(
     CollectionCollectionBuilder <TLeftEntity, TRightEntity> collectionCollectionBuilder)
     : base(collectionCollectionBuilder)
 {
 }
コード例 #6
0
 public NonGenericTestCollectionCollectionBuilder(CollectionCollectionBuilder collectionCollectionBuilder)
 {
     CollectionCollectionBuilder = collectionCollectionBuilder;
 }
コード例 #7
0
 public GenericTestCollectionCollectionBuilder(CollectionCollectionBuilder <TLeftEntity, TRightEntity> collectionCollectionBuilder)
 {
     CollectionCollectionBuilder = collectionCollectionBuilder;
 }
コード例 #8
0
 public override TestEntityTypeBuilder <TRightEntity> UsingEntity <TJoinEntity>(
     Action <TestEntityTypeBuilder <TJoinEntity> > configureJoinEntityType)
 => new GenericTypeTestEntityTypeBuilder <TRightEntity>(
     CollectionCollectionBuilder.UsingEntity <TJoinEntity>(
         e => configureJoinEntityType(new GenericTypeTestEntityTypeBuilder <TJoinEntity>(e))));