全局处理问题:public static Model.SGGLDB db = Funs.DB;
This commit is contained in:
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public static class LeavePostService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
#region 获取列表
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -21,7 +21,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.RealName_LeavePost> getLeavePosts = from x in db.RealName_LeavePost select x;
|
||||
private static IQueryable<Model.RealName_LeavePost> getLeavePosts = from x in Funs.DB.RealName_LeavePost select x;
|
||||
|
||||
/// <summary>
|
||||
/// 获取分页列表
|
||||
|
||||
Reference in New Issue
Block a user