コード例 #1
0
ファイル: UserEventRecordBLL.cs プロジェクト: chenmsg/sujin
        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);
        }
コード例 #2
0
ファイル: UserEventRecordBLL.cs プロジェクト: chenmsg/sujin
 /// <summary>
 /// Delete,根据实体对象删除
 /// </summary>
 /// <returns>返回,成功:true,失败:false</returns>
 public bool Delete(UserEventRecord entity)
 {
     return(dal.Update(entity));
 }
コード例 #3
0
 public void AppendUserEvent(UserEventRecord record) => UserEventsGroup.Enqueue(record);
コード例 #4
0
ファイル: UserEventRecordBLL.cs プロジェクト: chenmsg/sujin
 /// <summary>
 /// 插入数据
 /// </summary>
 /// <returns>返回,成功:true,失败:false</returns>
 public int Insert(UserEventRecord entity)
 {
     return(dal.Insert(entity));
 }