去除静态变量Funs.DB
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
@@ -10,8 +11,6 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class CheckTemplateService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
#region 获取列表
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -25,7 +24,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.ProjectSupervision_CheckTemplate> getDataLists = from x in db.ProjectSupervision_CheckTemplate
|
||||
private static IQueryable<Model.ProjectSupervision_CheckTemplate> getDataLists = from x in Funs.DB.ProjectSupervision_CheckTemplate
|
||||
select x;
|
||||
|
||||
/// 获取分页列表
|
||||
|
||||
Reference in New Issue
Block a user