private void InsertLoginHistory(long UserId, int Status) { CRMLoginHistory entity = new CRMLoginHistory(); entity.UserId = UserId; entity.LoginAt = DateTime.Now; entity.ClientBrowser = GetBrowser(); entity.ClientOS = GetOSVersion(); entity.LoginIP = GetIPAddress(); entity.Status = Status; svr.InsertLoginHistory(entity); }
public void InsertLoginHistory(CRMLoginHistory entity) { CRMLoginHistories.InsertOnSubmit(entity); this.dataCtx.SubmitChanges(); }
private void InsertLoginHistory(long UserId, int Status) { CRMLoginHistory entity = new CRMLoginHistory(); entity.UserId = UserId; entity.LoginAt = DateTime.Now; entity.ClientBrowser = GetBrowser(); entity.ClientOS = GetOSVersion(); entity.LoginIP = GetIPAddress(); entity.Status = Status; svr.InsertLoginHistory(entity); }
public void InsertLoginHistory(CRMLoginHistory entity) { CRMLoginHistories.InsertOnSubmit(entity); this.dataCtx.SubmitChanges(); }