public IEnumerable <DetailType> GetAll()
 {
     using (var ctx = new CarDetailsContext())
     {
         return(ctx.DetailTypes.AsNoTracking().ToList());
     }
 }
Esempio n. 2
0
 public DetailRepository()
 {
     _ctx = new CarDetailsContext();
 }
Esempio n. 3
0
 public ManufacturerRepository()
 {
     _db = new CarDetailsContext();
 }