partial void DeleteTbSendMailLog(TbSendMailLog instance);
partial void InsertTbSendMailLog(TbSendMailLog instance);
partial void UpdateTbSendMailLog(TbSendMailLog instance);
public static void SendMailLogInsert(string ShouJianRen, string YouJianMingCheng, string ZhuanLiQuYu, string FaSongZhuangTai) { TbSendMailLog tb = new TbSendMailLog(); tb.ShouJianRen = ShouJianRen; tb.YouJianMingCheng = YouJianMingCheng; tb.ZhuanLiQuYu = ZhuanLiQuYu; tb.FaSongShiJian = DateTime.Now; tb.FaSongZhuangTai = FaSongZhuangTai; using (DataClasses1DataContext db = new DataClasses1DataContext()) { db.Log = Console.Out; db.TbSendMailLog.InsertOnSubmit(tb); db.SubmitChanges(); } }