去除静态变量Funs.DB
This commit is contained in:
@@ -3,13 +3,12 @@ using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public static class HSSE_Hazard_HazardRegisterService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
#region 获取安全巡检列表信息
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -23,7 +22,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.View_Hazard_HazardRegisterList> getDataLists = from x in db.View_Hazard_HazardRegisterList
|
||||
private static IQueryable<Model.View_Hazard_HazardRegisterList> getDataLists = from x in Funs.DB.View_Hazard_HazardRegisterList
|
||||
where x.ProblemTypes == "1"
|
||||
select x;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user