public void InsertOrUpdate(Cow entity)
 {
     throw new NotImplementedException();
 }
 public void Edit(object id, Cow entity)
 {
     throw new NotImplementedException();
 }
 public void Add(Cow entity)
 {
     Entities.SetAdd(entity);
 }
 public void Delete(Cow entity)
 {
     throw new NotImplementedException();
 }
 public void Update(Cow entity)
 {
     Entities.Set<Cow>().AddOrUpdate(entity);
     //Entities.SetModified(entity);
 }