数据库变更CNPC_XJYJ
This commit is contained in:
@@ -12,7 +12,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class PostService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -77,7 +77,7 @@ namespace BLL
|
||||
/// <param name="post"></param>
|
||||
public static void AddPost(Model.Base_Post post)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Base_Post newPost = new Model.Base_Post();
|
||||
newPost.PostId = post.PostId;
|
||||
newPost.PostName = post.PostName;
|
||||
@@ -92,7 +92,7 @@ namespace BLL
|
||||
/// <param name="post"></param>
|
||||
public static void UpdatePost(Model.Base_Post post)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Base_Post newPost = db.Base_Post.FirstOrDefault(e => e.PostId == post.PostId);
|
||||
if (newPost != null)
|
||||
{
|
||||
@@ -108,7 +108,7 @@ namespace BLL
|
||||
/// <param name="postId"></param>
|
||||
public static void DeletePost(string postId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Base_Post newPost = db.Base_Post.FirstOrDefault(e => e.PostId == postId);
|
||||
if (newPost != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user