public override TestEntityTypeBuilder <TJoinEntity> UsingEntity <TJoinEntity>( string joinEntityName) => new GenericTypeTestEntityTypeBuilder <TJoinEntity>( new EntityTypeBuilder <TJoinEntity>( CollectionCollectionBuilder.UsingEntity( joinEntityName, typeof(TJoinEntity)).Metadata));
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)))));
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));
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)))));
public override TestEntityTypeBuilder <TRightEntity> UsingEntity <TJoinEntity>( Action <TestEntityTypeBuilder <TJoinEntity> > configureJoinEntityType) => new GenericTypeTestEntityTypeBuilder <TRightEntity>( CollectionCollectionBuilder.UsingEntity <TJoinEntity>( e => configureJoinEntityType(new GenericTypeTestEntityTypeBuilder <TJoinEntity>(e))));