数据库变更CNPC_XJYJ
This commit is contained in:
@@ -24,7 +24,7 @@ namespace WebAPI.Controllers
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
responeData.data = from x in new Model.SGGLDB(Funs.ConnString).Law_RulesRegulations
|
||||
responeData.data = from x in new Model.CNPCDB(Funs.ConnString).Law_RulesRegulations
|
||||
where x.RulesRegulationsId == rulesRegulationsId
|
||||
select new
|
||||
{
|
||||
@@ -59,7 +59,7 @@ namespace WebAPI.Controllers
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
IQueryable<Model.Law_RulesRegulations> q = from x in new Model.SGGLDB(Funs.ConnString).Law_RulesRegulations
|
||||
IQueryable<Model.Law_RulesRegulations> q = from x in new Model.CNPCDB(Funs.ConnString).Law_RulesRegulations
|
||||
where x.RulesRegulationsTypeId == type && x.IsPass == true
|
||||
select x;
|
||||
int pageCount = q.Count();
|
||||
@@ -103,7 +103,7 @@ namespace WebAPI.Controllers
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
IQueryable<Model.Law_RulesRegulations> q = from x in new Model.SGGLDB(Funs.ConnString).Law_RulesRegulations
|
||||
IQueryable<Model.Law_RulesRegulations> q = from x in new Model.CNPCDB(Funs.ConnString).Law_RulesRegulations
|
||||
where x.RulesRegulationsTypeId == type && x.IsPass == true
|
||||
select x;
|
||||
if (!string.IsNullOrEmpty(strParam))
|
||||
|
||||
Reference in New Issue
Block a user