コード例 #1
0
		public static void LoadData()
		{
			NorthwindData.LoadData();

			Instance = new NorthwindDtoData
			{
				Categories = NorthwindData.Categories.ConvertAll(x => ToCategoryDto(x)),
				Customers = NorthwindData.Customers.ConvertAll(x => ToCustomerDto(x)),
				Employees = NorthwindData.Employees.ConvertAll(x => ToEmployeeDto(x)),
				Shippers = NorthwindData.Shippers.ConvertAll(x => ToShipperDto(x)),
				Suppliers = NorthwindData.Suppliers.ConvertAll(x => ToSupplierDto(x)),
				Orders = NorthwindData.Orders.ConvertAll(x => ToOrderDto(x)),
				Products = NorthwindData.Products.ConvertAll(x => ToProduct(x)),
				OrderDetails = NorthwindData.OrderDetails.ConvertAll(x => ToOrderDetailDto(x)),
				CustomerCustomerDemos = NorthwindData.CustomerCustomerDemos.ConvertAll(x => ToCustomerCustomerDemoDto(x)),
				Regions = NorthwindData.Regions.ConvertAll(x => ToRegionDto(x)),
				Territories = NorthwindData.Territories.ConvertAll(x => ToTerritoryDto(x)),
				EmployeeTerritories = NorthwindData.EmployeeTerritories.ConvertAll(x => ToEmployeeTerritoryDto(x)),
			};
		}
コード例 #2
0
        public static void LoadData()
        {
            NorthwindData.LoadData();

            Instance = new NorthwindDtoData
            {
                Categories            = NorthwindData.Categories.ConvertAll(x => ToCategoryDto(x)),
                Customers             = NorthwindData.Customers.ConvertAll(x => ToCustomerDto(x)),
                Employees             = NorthwindData.Employees.ConvertAll(x => ToEmployeeDto(x)),
                Shippers              = NorthwindData.Shippers.ConvertAll(x => ToShipperDto(x)),
                Suppliers             = NorthwindData.Suppliers.ConvertAll(x => ToSupplierDto(x)),
                Orders                = NorthwindData.Orders.ConvertAll(x => ToOrderDto(x)),
                Products              = NorthwindData.Products.ConvertAll(x => ToProduct(x)),
                OrderDetails          = NorthwindData.OrderDetails.ConvertAll(x => ToOrderDetailDto(x)),
                CustomerCustomerDemos = NorthwindData.CustomerCustomerDemos.ConvertAll(x => ToCustomerCustomerDemoDto(x)),
                Regions               = NorthwindData.Regions.ConvertAll(x => ToRegionDto(x)),
                Territories           = NorthwindData.Territories.ConvertAll(x => ToTerritoryDto(x)),
                EmployeeTerritories   = NorthwindData.EmployeeTerritories.ConvertAll(x => ToEmployeeTerritoryDto(x)),
            };
        }