当前位置: 首页>>代码示例>>C#>>正文


C# User.MarkOld方法代码示例

本文整理汇总了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;
        }
开发者ID:mattruma,项目名称:epiworx-csla,代码行数:9,代码来源:User.Methods.cs

示例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);
        }
开发者ID:jrummell,项目名称:projmgt-net,代码行数:18,代码来源:UserController.cs

示例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);
        }
开发者ID:hieuuk,项目名称:pingpoong,代码行数:36,代码来源:UserController.cs

示例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;
        }
开发者ID:dalinhuang,项目名称:cy-csts,代码行数:51,代码来源:UserProvider.cs

示例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);
        }
开发者ID:Lornestar,项目名称:pfx,代码行数:38,代码来源:UserController.cs


注:本文中的User.MarkOld方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。