去除静态变量Funs.DB
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class WorkHandoverDetailService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 获取工作交接明细列表
|
||||
/// </summary>
|
||||
@@ -16,7 +15,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string WorkHandoverId)
|
||||
{
|
||||
return from x in db.ZHGL_WorkHandoverDetail
|
||||
return from x in Funs.DB.ZHGL_WorkHandoverDetail
|
||||
where x.WorkHandoverId == WorkHandoverId
|
||||
select new
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user