数据库变更CNPC_XJYJ
This commit is contained in:
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public static class PostTitleService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取信息
|
||||
@@ -35,7 +35,7 @@ namespace BLL
|
||||
/// <param name="?"></param>
|
||||
public static void AddPostTitle(Model.Base_PostTitle postTitle)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Base_PostTitle newPostTitle = new Model.Base_PostTitle
|
||||
{
|
||||
PostTitleId = postTitle.PostTitleId,
|
||||
@@ -54,7 +54,7 @@ namespace BLL
|
||||
/// <param name="teamGroup"></param>
|
||||
public static void UpdatePostTitle(Model.Base_PostTitle postTitle)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Base_PostTitle newPostTitle = db.Base_PostTitle.FirstOrDefault(e => e.PostTitleId == postTitle.PostTitleId);
|
||||
if (newPostTitle != null)
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace BLL
|
||||
/// <param name="postTitleId"></param>
|
||||
public static void DeletePostTitleById(string postTitleId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Base_PostTitle postTitle = db.Base_PostTitle.FirstOrDefault(e => e.PostTitleId == postTitleId);
|
||||
{
|
||||
db.Base_PostTitle.DeleteOnSubmit(postTitle);
|
||||
|
||||
Reference in New Issue
Block a user