using Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BLL.Email_Send { public static class Email_SendLogService { #region 邮件管理 /// /// 邮件增加 /// /// public static void AddEmail_SendLog(Email_SendLog email_SendLog) { Email_SendLog newEmail_SendLog = new Email_SendLog(); newEmail_SendLog.EmailId = Guid.NewGuid().ToString(); newEmail_SendLog.EmailTile = email_SendLog.EmailTile; newEmail_SendLog.EmailContent = email_SendLog.EmailContent; newEmail_SendLog.EmailURL = email_SendLog.EmailURL; newEmail_SendLog.EmailName = email_SendLog.EmailName; newEmail_SendLog.EmailStatus = email_SendLog.EmailStatus; newEmail_SendLog.CreateTime = email_SendLog.CreateTime; newEmail_SendLog.CreateName = email_SendLog.CreateName; Funs.DB.Email_SendLog.InsertOnSubmit(newEmail_SendLog); Funs.DB.SubmitChanges(); } #endregion #region 获取列表 /// /// 获取列表 /// /// public static List GetEmail_SendLogList() { return (from x in Funs.DB.Email_SendLog orderby x.CreateTime descending select x).ToList(); } #endregion #region 根据主键查询信息 /// /// 根据主键查询信息 /// /// 主键 /// 对象 public static Email_SendLog GetEmail_SendLog(string EmailID) { return Funs.DB.Email_SendLog.FirstOrDefault(x => x.EmailId == EmailID); } #endregion } }