/// <summary> /// 插入异常日志信息 /// </summary> /// <param name="message">消息</param> /// <param name="source">消息源</param> /// <param name="stackTrace">消息堆栈信息</param> public static void InsertExceptionInfo(string message, string source = "", string stackTrace = "") { Dictionary <string, object> dict = new Dictionary <string, object>(); dict.Add("Message", message); dict.Add("Source", source); dict.Add("StackTrace", stackTrace); SQLHelperExt.Insert("SYS_ExceptionLog", dict); }
/// <summary> /// 插入异常日志信息 /// </summary> /// <param name="log"></param> public static void InsertExceptionLog(ExceptionLog ex) { Dictionary <string, object> dict = new Dictionary <string, object>(); dict.Add("Message", ex.Message); dict.Add("Source", ex.Source); dict.Add("StackTrace", ex.StackTrace); SQLHelperExt.Insert("SYS_ExceptionLog", dict); }
/// <summary> /// 添加用户相册照片点赞 /// </summary> /// <param name="info"></param> public void Insert(GreatUserPhoto info) { Dictionary <string, object> data = new Dictionary <string, object>(); data.Add("ID", info.ID); data.Add("SiteCode", info.SiteCode); data.Add("OpenId", info.OpenId); data.Add("ThumbID", info.ThumbID); data.Add("AddTime", info.AddTime); SQLHelperExt.Insert(TABLE_NAME, data); }
/// <summary> /// 插入媒体数据 /// </summary> /// <param name="info"></param> public void InsertInfo(Model.WeiXin.Media info) { Dictionary <string, object> datas = new Dictionary <string, object>(); datas.Add("ID", info.ID); datas.Add("MediaName", info.MediaName); datas.Add("MediaFile", info.MediaFile); datas.Add("UploadTime", info.UploadTime); datas.Add("IsAutoSyn", info.IsAutoSyn); datas.Add("MediaType", info.MediaType); SQLHelperExt.Insert(TABLE_NAME, datas); }
/// <summary> /// 添加用户相册照片 /// </summary> /// <param name="info"></param> public void Insert(PhotoWall info) { Dictionary <string, object> data = new Dictionary <string, object>(); data.Add("ID", info.ID); data.Add("Type", info.Type); data.Add("Name", info.Name); data.Add("SiteCode", info.SiteCode); data.Add("OpenId", info.OpenId); data.Add("FilePath", info.FilePath); data.Add("Remark", info.Remark); data.Add("AddTime", info.AddTime); data.Add("State", info.State); SQLHelperExt.Insert(TABLE_NAME, data); }
/// <summary> /// 添加文本消息 /// </summary> /// <param name="info"></param> public void Insert(ReceiveTextMsg info) { Dictionary <string, object> data = new Dictionary <string, object>(); data.Add("ID", info.ID); data.Add("WXConfigID", info.WXConfigID); data.Add("ToUserName", info.ToUserName); data.Add("FromUserName", info.FromUserName); data.Add("CreateTime", info.CreateTime); data.Add("MsgType", info.MsgType); data.Add("Content", info.Content); data.Add("AddTime", info.AddTime); data.Add("MsgId", info.MsgId); SQLHelperExt.Insert(TABLE_NAME, data); }
/// <summary> /// 添加微信用户信息 /// </summary> /// <param name="info"></param> public void Insert(User info) { Dictionary <string, object> data = new Dictionary <string, object>(); data.Add("ID", info.ID); data.Add("OpenID", info.OpenID); data.Add("WXConfigID", info.WXConfigID); data.Add("Subscribe", info.Subscribe); data.Add("NickName", info.NickName); data.Add("Sex", info.Sex); data.Add("Language", info.Language); data.Add("City", info.City); data.Add("Province", info.Province); data.Add("Country", info.Country); data.Add("HeadImgUrl", info.HeadImgUrl); data.Add("SubscribeTime", info.SubscribeTime); data.Add("GroupID", info.GroupID); data.Add("AddTime", info.AddTime); SQLHelperExt.Insert(TABLE_NAME, data); }