public static void Main(string[] args)
 {
     if (args.Length > 0 && args[0].Contains("metadata"))
     {
         // Generate metadata and exit
         var dbContext          = new NorthwindModel.Models.NorthwindContext();
         var persistenceManager = new NorthwindPersistenceManager(dbContext);
         var metadata           = persistenceManager.Metadata();
         Console.Out.WriteLine(metadata);
     }
     else
     {
         // Start web server
         CreateHostBuilder(args).Build().Run();
     }
 }
示例#2
0
 public BreezeController(NorthwindContext dbContext)
 {
     persistenceManager = new NorthwindPersistenceManager(dbContext);
 }