Beispiel #1
0
        public static void Main()
        {
            var mapperConfig = new ProductShopProfile();

            Mapper.Initialize(c => c.AddProfile(mapperConfig));

            //var data = File.ReadAllText(categorieProductsXml);

            using (var context = new ProductShopContext())
            {
                //context.Database.Migrate();

                Console.WriteLine(GetUsersWithProducts(context));
            }
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            var mapperConfig = new ProductShopProfile();

            Mapper.Initialize(c => c.AddProfile(mapperConfig));

            using (var context = new ProductShopContext())
            {
                context.Database.Migrate();

                //ImportData(context);

                Console.WriteLine(GetUsersWithProducts(context));
            }
        }