1
This commit is contained in:
@@ -11,9 +11,6 @@ namespace BLL
|
||||
|
||||
public static class SysHttplogService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
#region 获取列表
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -25,6 +22,7 @@ namespace BLL
|
||||
}
|
||||
public static List<Model.Sys_HttpLog> GetSys_HttpLogByModle(Model.Sys_HttpLog table)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = from x in db.Sys_HttpLog
|
||||
where
|
||||
(string.IsNullOrEmpty(table.HttpLogId) || x.HttpLogId.Contains(table.HttpLogId)) &&
|
||||
@@ -74,13 +72,14 @@ namespace BLL
|
||||
|
||||
public static Model.Sys_HttpLog GetSys_HttpLogById(string HttpLogId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return db.Sys_HttpLog.FirstOrDefault(x => x.HttpLogId == HttpLogId);
|
||||
}
|
||||
|
||||
|
||||
public static void AddSys_HttpLog(Model.Sys_HttpLog newtable)
|
||||
{
|
||||
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Sys_HttpLog table = new Model.Sys_HttpLog
|
||||
{
|
||||
HttpLogId = newtable.HttpLogId,
|
||||
@@ -96,7 +95,7 @@ namespace BLL
|
||||
|
||||
public static void AddBulkSys_HttpLog(List<Model.Sys_HttpLog> newtables)
|
||||
{
|
||||
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
db.Sys_HttpLog.InsertAllOnSubmit(newtables);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
@@ -104,7 +103,7 @@ namespace BLL
|
||||
|
||||
public static void UpdateSys_HttpLog(Model.Sys_HttpLog newtable)
|
||||
{
|
||||
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Sys_HttpLog table = db.Sys_HttpLog.FirstOrDefault(x => x.HttpLogId == newtable.HttpLogId);
|
||||
if (table != null)
|
||||
{
|
||||
@@ -120,7 +119,7 @@ namespace BLL
|
||||
}
|
||||
public static void DeleteSys_HttpLogById(string HttpLogId)
|
||||
{
|
||||
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Sys_HttpLog table = db.Sys_HttpLog.FirstOrDefault(x => x.HttpLogId == HttpLogId);
|
||||
if (table != null)
|
||||
{
|
||||
@@ -132,6 +131,7 @@ namespace BLL
|
||||
|
||||
public static void DeleteALLSys_HttpLog()
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
if (db.Sys_HttpLog != null)
|
||||
{
|
||||
db.Sys_HttpLog.DeleteAllOnSubmit(db.Sys_HttpLog);
|
||||
|
||||
Reference in New Issue
Block a user