コード例 #1
0
ファイル: user_login_log.cs プロジェクト: ymh007/hyfp
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(int user_id, string user_name, string remark)
 {
     Model.user_login_log model = new Model.user_login_log();
     model.user_id    = user_id;
     model.user_name  = user_name;
     model.remark     = remark;
     model.login_ip   = DTRequest.GetIP();
     model.login_time = DateTime.Now;
     return(dal.Add(model));
 }
コード例 #2
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(int user_id, string user_name, string remark, string getip)
 {
     Model.user_login_log model = new Model.user_login_log();
     model.user_id    = user_id;
     model.user_name  = user_name;
     model.remark     = remark;
     model.login_ip   = getip;
     model.login_time = DateTime.Now;
     return(dal.Add(model));
 }
コード例 #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(Model.user_login_log model)
 {
     return(dal.Add(model));
 }