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)); } }
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)); } }