去除静态变量Funs.DB
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class ConstructionLogProblemService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 获取施工日志需要协调解决的问题明细列表
|
||||
/// </summary>
|
||||
@@ -15,7 +14,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.ZHGL_ConstructionLogProblem> getListData(string ConstructionLogId)
|
||||
{
|
||||
return (from x in db.ZHGL_ConstructionLogProblem
|
||||
return (from x in Funs.DB.ZHGL_ConstructionLogProblem
|
||||
where x.ConstructionLogId == ConstructionLogId
|
||||
select x).ToList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user