Merge branch 'master' of http://192.168.0.12:13000/sc/Audit_APP
This commit is contained in:
commit
ed959085de
4 files changed
+35
-25
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user