数据库变更CNPC_XJYJ
This commit is contained in:
@@ -26,7 +26,7 @@ namespace BLL
|
||||
/// <param name="hardTrust"></param>
|
||||
public static void AddHardTrust(Model.HJGL_Hard_Trust hardTrust)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_Trust newHardTrust = new Model.HJGL_Hard_Trust();
|
||||
newHardTrust.HardTrustID = hardTrust.HardTrustID;
|
||||
newHardTrust.HardTrustNo = hardTrust.HardTrustNo;
|
||||
@@ -60,7 +60,7 @@ namespace BLL
|
||||
/// <param name="hardTrust"></param>
|
||||
public static void UpdateHardTrust(Model.HJGL_Hard_Trust hardTrust)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_Trust newHardTrust = db.HJGL_Hard_Trust.FirstOrDefault(e => e.HardTrustID == hardTrust.HardTrustID);
|
||||
if (newHardTrust != null)
|
||||
{
|
||||
@@ -93,7 +93,7 @@ namespace BLL
|
||||
/// <param name="hardTrustID"></param>
|
||||
public static void DeleteHardTrustById(string hardTrustID)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_Trust hardTrust = db.HJGL_Hard_Trust.FirstOrDefault(e => e.HardTrustID == hardTrustID);
|
||||
if (hardTrust != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user