This commit is contained in:
sc committed 2022-02-18 20:21:28 +08:00
commit 3acac8136d
1 file changed
+2 -2
+2 -2
View File
@@ -8,7 +8,7 @@ namespace Models
{ {
public class DyelotsProvider : IProvider<Dyelots> public class DyelotsProvider : IProvider<Dyelots>
{ {
private BatchDyeingCentralEntities db = new BatchDyeingCentralEntities(); private readonly BatchDyeingCentralEntities db = new BatchDyeingCentralEntities();
public int Delete(Dyelots t) public int Delete(Dyelots t)
{ {
@@ -32,7 +32,7 @@ namespace Models
public List<Dyelots> Select() public List<Dyelots> Select()
{ {
return db.Dyelots.ToList(); return db.Dyelots.SqlQuery("select TOP (100) * from Dyelots").ToList();//查询前100条
} }
public int Update(Dyelots t) public int Update(Dyelots t)