コード例 #1
0
        public List <VehicleMake> GetManufacturer()
        {
            //get all vehicle manufacturer and vehicle models
            VehicleModelDBContext vehicleModelDBContext = new VehicleModelDBContext();

            return(vehicleModelDBContext.Manufacturers.Include("VehicleModel").ToList());
        }
コード例 #2
0
 public List<VehicleMake> GetManufacturer()
 {
     //get all vehicle manufacturer and vehicle models
     VehicleModelDBContext vehicleModelDBContext = new VehicleModelDBContext();
     return vehicleModelDBContext.Manufacturers.Include("VehicleModel").ToList();
 }