全局处理问题:public static Model.SGGLDB db = Funs.DB;

This commit is contained in:
2026-04-23 11:36:49 +08:00
parent 5a38880a14
commit 746cb57619
315 changed files with 641 additions and 449 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ namespace BLL
/// </summary>
public static class PostService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 记录数
@@ -32,7 +32,7 @@ namespace BLL
/// <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;
IQueryable<Model.Base_Post> q = from x in Funs.DB.Base_Post orderby x.PostName select x;
if (!string.IsNullOrEmpty(postName))
{
q = q.Where(e => e.PostName.Contains(postName));