本文整理汇总了C#中User.MarkOld方法的典型用法代码示例。如果您正苦于以下问题:C# User.MarkOld方法的具体用法?C# User.MarkOld怎么用?C# User.MarkOld使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类User
的用法示例。
在下文中一共展示了User.MarkOld方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FetchUser
internal static User FetchUser(UserData data)
{
var result = new User();
result.Fetch(data);
result.MarkOld();
return result;
}
示例2: Update
public void Update(int Id,string Username,short Role,bool Enabled,string Password)
{
User item = new User();
item.MarkOld();
item.IsLoaded = true;
item.Id = Id;
item.Username = Username;
item.Role = Role;
item.Enabled = Enabled;
item.Password = Password;
item.Save(UserName);
}
示例3: Update
public void Update(int UserID,string UserName,string Password,string Email,string Avatar,string Website,int? Country,string Yahoo,string Hotmail,string Gtalk,DateTime DateRegistered,int SecurityLevel,bool IsMailPublic,bool IsReceiveAdminMail)
{
User item = new User();
item.MarkOld();
item.IsLoaded = true;
item.UserID = UserID;
item.UserName = UserName;
item.Password = Password;
item.Email = Email;
item.Avatar = Avatar;
item.Website = Website;
item.Country = Country;
item.Yahoo = Yahoo;
item.Hotmail = Hotmail;
item.Gtalk = Gtalk;
item.DateRegistered = DateRegistered;
item.SecurityLevel = SecurityLevel;
item.IsMailPublic = IsMailPublic;
item.IsReceiveAdminMail = IsReceiveAdminMail;
item.Save(UserName);
}
示例4: GetUsersByUserId
public User GetUsersByUserId(string userId)
{
SqlServerUtility sql = new SqlServerUtility();
sql.AddParameter("userId", SqlDbType.NVarChar, userId);
SqlDataReader reader = sql.ExecuteSPReader("usp_SelectUserById");
Core.Business.User user = null;
if (reader != null)
{
if (reader.Read() && !reader.IsClosed)
{
user = new User();
if (!reader.IsDBNull(0)) user.Id = reader.GetGuid(0);
if (!reader.IsDBNull(1)) user.UserID = reader.GetString(1);
if (!reader.IsDBNull(2)) user.PostRankID = reader.GetGuid(2);
if (!reader.IsDBNull(3)) user.EducationID = reader.GetGuid(3);
if (!reader.IsDBNull(4)) user.PicURL = reader.GetString(4);
if (!reader.IsDBNull(5)) user.Name = reader.GetString(5);
if (!reader.IsDBNull(6)) user.Password = reader.GetString(6);
if (!reader.IsDBNull(7)) user.Gender = reader.GetString(7);
if (!reader.IsDBNull(8)) user.BirthDate = reader.GetDateTime(8);
if (!reader.IsDBNull(9)) user.Address = reader.GetString(9);
if (!reader.IsDBNull(10)) user.Mailcode = reader.GetString(10);
if (!reader.IsDBNull(11)) user.Fax = reader.GetString(11);
if (!reader.IsDBNull(12)) user.Phone = reader.GetString(12);
if (!reader.IsDBNull(13)) user.MobilePhone = reader.GetString(13);
if (!reader.IsDBNull(14)) user.Email = reader.GetString(14);
if (!reader.IsDBNull(15)) user.Specialty = reader.GetString(15);
if (!reader.IsDBNull(16)) user.Resume = reader.GetString(16);
if (!reader.IsDBNull(17)) user.Remark = reader.GetString(17);
if (!reader.IsDBNull(18)) user.UnitID = reader.GetGuid(18);
if (!reader.IsDBNull(19)) user.UserType = reader.GetInt32(19);
if (!reader.IsDBNull(20)) user.Discourse = reader.GetString(20);
if (!reader.IsDBNull(21)) user.Acquire = reader.GetString(21);
if (!reader.IsDBNull(22)) user.RegDate = reader.GetDateTime(22);
if (!reader.IsDBNull(23)) user.LastActiveTime = reader.GetDateTime(23);
if (!reader.IsDBNull(24)) user.Status = reader.GetInt32(24);
if (!reader.IsDBNull(25)) user.Unit = reader.GetString(25);
if (!reader.IsDBNull(26)) user.Duty = reader.GetString(26);
if (!reader.IsDBNull(27)) user.FeildID = reader.GetGuid(27);
user.MarkOld();
}
reader.Close();
}
return user;
}
示例5: Update
public void Update(int UserKey,string AccountNumber,string Title,string FirstName,string MiddleName,string LastName,string Dob,int? CountryResidence,string Email,string IpAddress,DateTime LastChanged,DateTime SignedUp,int? UserStatus,int? UserType,DateTime? LastOnline)
{
User item = new User();
item.MarkOld();
item.IsLoaded = true;
item.UserKey = UserKey;
item.AccountNumber = AccountNumber;
item.Title = Title;
item.FirstName = FirstName;
item.MiddleName = MiddleName;
item.LastName = LastName;
item.Dob = Dob;
item.CountryResidence = CountryResidence;
item.Email = Email;
item.IpAddress = IpAddress;
item.LastChanged = LastChanged;
item.SignedUp = SignedUp;
item.UserStatus = UserStatus;
item.UserType = UserType;
item.LastOnline = LastOnline;
item.Save(UserName);
}