|
|
@ -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) |
|
|
|