Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 public BreezeController(NorthwindContext dbContext)
 {
     persistenceManager = new NorthwindPersistenceManager(dbContext);
 }