全局处理问题:public static Model.SGGLDB db = Funs.DB;

This commit is contained in:
2026-04-23 11:36:49 +08:00
parent 5a38880a14
commit 746cb57619
315 changed files with 641 additions and 449 deletions
+5 -5
View File
@@ -10,7 +10,7 @@ namespace BLL
{
public class MainItemService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 记录数
@@ -21,10 +21,10 @@ namespace BLL
set;
}
/// <summary>
/// 定义变量
/// </summary>
private static IQueryable<Model.ProjectData_MainItem> qq = from x in db.ProjectData_MainItem select x;
///// <summary>
///// 定义变量
///// </summary>
//private static IQueryable<Model.ProjectData_MainItem> qq = from x in Funs.DB.ProjectData_MainItem select x;
/// <summary>
+1 -1
View File
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ProjectSateService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 根据主键获取项目状态及软件关闭信息
+1 -1
View File
@@ -6,7 +6,7 @@
public static class ProjectSetMapService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
///获取项目坐标点
+2 -1
View File
@@ -6,7 +6,7 @@
public static class ProjectUnitService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
///获取项目单位信息
@@ -179,6 +179,7 @@
/// <param name="projectId"></param>
public static void DeleteProjectUnitByProjectId(string projectId)
{
Model.SGGLDB db = Funs.DB;
var q = (from x in db.Project_ProjectUnit where x.ProjectId == projectId select x).ToList();
if (q != null)
{
+1 -1
View File
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class TeamGroupService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 根据主键获取班组信息
+1 -1
View File
@@ -10,7 +10,7 @@ namespace BLL
{
public class UnitWorkService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 添加单位工程信息