Пример #1
0
 public static void Main(string[] args)
 {
     if (args.Length > 0 && args[0].Contains("metadata"))
     {
         // Generate metadata and exit
         var dbContext          = new NorthwindCoreContext();
         var persistenceManager = new NorthwindCorePersistenceManager(dbContext);
         var metadata           = persistenceManager.Metadata();
         Console.Out.WriteLine(metadata);
     }
     else
     {
         // Start web server
         CreateWebHostBuilder(args).Build().Run();
     }
 }
 public BreezeController(NorthwindCoreContext dbContext)
 {
     persistenceManager = new NorthwindCorePersistenceManager(dbContext);
 }