private UserEventRecord CreateObject(int cid, string Action, string Cmd, string ip, int State, int UserId) { UserEventRecord model = new UserEventRecord(); model.PlatForm = cid; model.Action = Action; model.Cmd = Cmd; model.CTime = DateTime.Now; model.IP = ip; model.State = State; model.UserId = UserId; model.Data = ""; return(model); }
/// <summary> /// Delete,根据实体对象删除 /// </summary> /// <returns>返回,成功:true,失败:false</returns> public bool Delete(UserEventRecord entity) { return(dal.Update(entity)); }
public void AppendUserEvent(UserEventRecord record) => UserEventsGroup.Enqueue(record);
/// <summary> /// 插入数据 /// </summary> /// <returns>返回,成功:true,失败:false</returns> public int Insert(UserEventRecord entity) { return(dal.Insert(entity)); }