查询优化
This commit is contained in:
@@ -20,10 +20,10 @@ namespace BLL
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.BS_Steel> qq = from x in Funs.DB.BS_Steel orderby x.STE_Code select x;
|
||||
///// <summary>
|
||||
///// 定义变量
|
||||
///// </summary>
|
||||
//private static IQueryable<Model.BS_Steel> qq = from x in Funs.DB.BS_Steel orderby x.STE_Code select x;
|
||||
|
||||
/// <summary>
|
||||
/// 获取材质列表
|
||||
@@ -36,7 +36,8 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable GetListData(string searchItem, string searchValue, int startRowIndex, int maximumRows)
|
||||
{
|
||||
IQueryable<Model.BS_Steel> q = qq;
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
IQueryable<Model.BS_Steel> q = from x in db.BS_Steel orderby x.STE_Code select x;
|
||||
if (searchItem != "0")
|
||||
{
|
||||
if (!string.IsNullOrEmpty(searchValue))
|
||||
|
||||
Reference in New Issue
Block a user