在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
EF:oracle的number类型映射为C#的boolean类型
protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity<Client>(t => { t.Property(p => p.AllowAccessTokensViaBrowser).HasColumnName("AllowAccessTokensViaBrowser").HasColumnType("odp_internal_use_type"); }); modelBuilder.ConfigureClientContext(storeOptions); modelBuilder.ConfigureResourcesContext(storeOptions); base.OnModelCreating(modelBuilder); }
|
请发表评论