예제 #1
0
 protected override void OnModelCreating(ModelBuilder modelBuilder)
 {
     AddMyEntity.Build(modelBuilder);
     modelBuilder.Entity <MyEntity>()
     .Property(p => p.MyInt).HasColumnName("OtherColName");
 }
 protected override void OnModelCreating(ModelBuilder modelBuilder)
 {
     AddMyEntity.Build(modelBuilder);
     modelBuilder.Entity <MyEntity>()
     .Property <int>("ShadowProp");
 }
예제 #3
0
 protected override void OnModelCreating(ModelBuilder modelBuilder)
 {
     AddMyEntity.Build(modelBuilder);
     ComputedCol.Build(modelBuilder);
 }
예제 #4
0
 protected override void OnModelCreating(ModelBuilder modelBuilder)
 {
     AddMyEntity.Build(modelBuilder);
     modelBuilder.Entity <MyEntity>()
     .Property(p => p.MyString).IsUnicode(false);
 }