Merge branch 'master' of http://192.168.0.12:13000/sc/Audit_APP
This commit is contained in:
commit
3acac8136d
1 file changed
+2
-2
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user