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