Esempio n. 1
0
 private static void PrintEFCoreMappings()
 {
     Console.WriteLine("EF Core Mappings");
     using (var db = new EFCore.BloggingContext())
     {
         // TODO Print type to table mappings
     }
 }
Esempio n. 2
0
 private static void PrintEFCoreMappings()
 {
     Console.WriteLine("EF Core Mappings");
     using (var db = new EFCore.BloggingContext())
     {
         // TODO Print type to table mappings
     }
 }
Esempio n. 3
0
 private static void PrintEFCoreMappings()
 {
     Console.WriteLine("EF Core Mappings");
     using (var db = new EFCore.BloggingContext())
     {
         foreach (var entity in db.Model.GetEntityTypes())
         {
             Console.WriteLine($" {entity.ClrType.Name} => {entity.SqlServer().TableName}");
         }
     }
 }
Esempio n. 4
0
 private static void PrintEFCoreMappings()
 {
     Console.WriteLine("EF Core Mappings");
     using (var db = new EFCore.BloggingContext())
     {
         foreach (var entity in db.Model.GetEntityTypes())
         {
             Console.WriteLine($" {entity.ClrType.Name} => {entity.SqlServer().TableName}");
         }
     }
 }