コード例 #1
0
        public static void Main(string[] args)
        {
            ProductShopContext context = new ProductShopContext();

            //context.Database.Initialize(true);

            XMLMethods.SeedData(context);
            XMLMethods.ExportData(context);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            ProductsShopContext ctx = new ProductsShopContext();

            ctx.Database.Initialize(true);

            XMLMethods.SeedData(ctx);
            XMLMethods.ExportData(ctx);
        }