示例#1
0
 public EfCoreEntityTypeBuilderArgs(EfCoreModelBuilderArgs modelBuilder, EntityTypeBuilder <TEntity> builder)
 {
     modelBuilder.EnsureNotNull(nameof(modelBuilder));
     builder.EnsureNotNull(nameof(builder));
     //
     _modelBuilder = modelBuilder;
     _builder      = builder;
 }
示例#2
0
 public void BuildEntity(EfCoreModelBuilderArgs model)
 {
     model.EnsureNotNull(nameof(model));
     //
     BuildEntity(args: new EfCoreEntityTypeBuilderArgs <TEntity>(modelBuilder: model, builder: model.Builder.Entity <TEntity>()));
 }