1
This commit is contained in:
@@ -12,7 +12,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class PostService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -31,8 +31,9 @@ namespace BLL
|
||||
/// <param name="maximumRows"></param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable GetListData(string postName, int startRowIndex, int maximumRows)
|
||||
{
|
||||
IQueryable<Model.Base_Post> q = from x in db.Base_Post orderby x.PostName select x;
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
IQueryable<Model.Base_Post> q = from x in db.Base_Post orderby x.PostName select x;
|
||||
if (!string.IsNullOrEmpty(postName))
|
||||
{
|
||||
q = q.Where(e => e.PostName.Contains(postName));
|
||||
|
||||
Reference in New Issue
Block a user