コード例 #1
0
 private static void PrintEFCoreMappings()
 {
     Console.WriteLine("EF Core Mappings");
     using (var db = new EFCore.BloggingContext())
     {
         // TODO Print type to table mappings
     }
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: rowanmiller/Demo-EFCore
 private static void PrintEFCoreMappings()
 {
     Console.WriteLine("EF Core Mappings");
     using (var db = new EFCore.BloggingContext())
     {
         // TODO Print type to table mappings
     }
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: rowanmiller/Demo-EFCore
 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}");
         }
     }
 }
コード例 #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}");
         }
     }
 }