public EntityTable GetById(int id)
 {
     using var context = new B3DTContext();
     return(context.Set <EntityTable>().Find(id));
 }
 public void Update(EntityTable table)
 {
     using var context = new B3DTContext();
     context.Set <EntityTable>().Update(table);
     context.SaveChanges();
 }
 public List <EntityTable> GetAll()
 {
     using var context = new B3DTContext();
     return(context.Set <EntityTable>().ToList());
 }