数据库变更CNPC_XJYJ
This commit is contained in:
@@ -46,7 +46,7 @@ namespace BLL
|
||||
/// <param name="hardTrustItem"></param>
|
||||
public static void AddHardTrustItem(Model.HJGL_Hard_TrustItem hardTrustItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_TrustItem newHardTrustItem = new Model.HJGL_Hard_TrustItem();
|
||||
newHardTrustItem.HardTrustItemID = SQLHelper.GetNewID(typeof(Model.HJGL_Hard_TrustItem));
|
||||
newHardTrustItem.HardTrustID = hardTrustItem.HardTrustID;
|
||||
@@ -64,7 +64,7 @@ namespace BLL
|
||||
/// <param name="hardTrustItem"></param>
|
||||
public static void UpdateHardTrustItem(Model.HJGL_Hard_TrustItem hardTrustItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_TrustItem newHardTrustItem = db.HJGL_Hard_TrustItem.FirstOrDefault(e => e.HardTrustItemID == hardTrustItem.HardTrustItemID);
|
||||
if (newHardTrustItem != null)
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace BLL
|
||||
/// <param name="hardTrustId"></param>
|
||||
public static void DeleteHardTrustItemByHardTrustItemID(string hardTrustItemID)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var hardTrustItem = (from x in db.HJGL_Hard_TrustItem where x.HardTrustItemID == hardTrustItemID select x).FirstOrDefault();
|
||||
if (hardTrustItem != null)
|
||||
{
|
||||
@@ -95,7 +95,7 @@ namespace BLL
|
||||
/// <param name="hardTrustId"></param>
|
||||
public static void DeleteHardTrustItemById(string hardTrustId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var hardTrustItem = (from x in db.HJGL_Hard_TrustItem where x.HardTrustID == hardTrustId select x).ToList();
|
||||
if (hardTrustItem != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user