This commit is contained in:
sc committed 2022-02-18 23:51:42 +08:00
commit ed959085de
4 files changed
+35 -25

No files matched your search

+7 -2
View File
@@ -12,7 +12,12 @@ namespace Models
public int Delete(DyelotsBulkedRecipe t)
{
throw new NotImplementedException();
if (t == null) return 0;
var model = db.DyelotsBulkedRecipe.ToList().FirstOrDefault(item => t.Dyelot == item.Dyelot);
if (model == null) return 0;
db.DyelotsBulkedRecipe.Remove(model);
int count = db.SaveChanges();
return count;
}
public int Insert(DyelotsBulkedRecipe t)
@@ -22,7 +27,7 @@ namespace Models
public List<DyelotsBulkedRecipe> Select()
{
throw new NotImplementedException();
return db.DyelotsBulkedRecipe.SqlQuery("select TOP (10000) * from DyelotsBulkedRecipe").ToList();//查询前100条
}
public int Update(DyelotsBulkedRecipe t)