去除静态变量Funs.DB
This commit is contained in:
@@ -2,13 +2,12 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class SpotCheckDetailService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 获取实体验收记录明细
|
||||
/// </summary>
|
||||
@@ -17,7 +16,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string SpotCheckCode)
|
||||
{
|
||||
return from x in db.Check_SpotCheckDetail
|
||||
return from x in Funs.DB.Check_SpotCheckDetail
|
||||
where x.SpotCheckCode == SpotCheckCode
|
||||
select new
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user