数据库变更CNPC_XJYJ
This commit is contained in:
@@ -56,7 +56,7 @@ namespace BLL
|
||||
/// <param name="hseCost">月报告HSE技术措施费用实体</param>
|
||||
public static void AddHseCost(Model.Manager_HseCostB hseCost)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
string newKeyID = SQLHelper.GetNewID(typeof(Model.Manager_HseCostB));
|
||||
Model.Manager_HseCostB newHseCost = new Model.Manager_HseCostB
|
||||
{
|
||||
@@ -83,7 +83,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeleteHseCostsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_HseCostB where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_HseCostB.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
Reference in New Issue
Block a user