Ejemplo n.º 1
0
        public UserData(User user)
            : this()
        {
            if (user == null)
            {
                return;
            }

            this.UserId = user.UserId;
            this.Name = user.Name;
            this.FirstName = user.FirstName;
            this.LastName = user.LastName;
            this.Email = user.Email;
            this.IsActive = user.IsActive;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="salt">Initial value of the Salt property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="role">Initial value of the Role property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 /// <param name="isArchived">Initial value of the IsArchived property.</param>
 /// <param name="notes">Initial value of the Notes property.</param>
 /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 public static User CreateUser(global::System.Int32 userId, global::System.String firstName, global::System.String lastName, global::System.String name, global::System.String salt, global::System.String password, global::System.String email, global::System.Int32 role, global::System.Boolean isActive, global::System.Boolean isArchived, global::System.String notes, global::System.Int32 modifiedBy, global::System.DateTime modifiedDate, global::System.Int32 createdBy, global::System.DateTime createdDate)
 {
     User user = new User();
     user.UserId = userId;
     user.FirstName = firstName;
     user.LastName = lastName;
     user.Name = name;
     user.Salt = salt;
     user.Password = password;
     user.Email = email;
     user.Role = role;
     user.IsActive = isActive;
     user.IsArchived = isArchived;
     user.Notes = notes;
     user.ModifiedBy = modifiedBy;
     user.ModifiedDate = modifiedDate;
     user.CreatedBy = createdBy;
     user.CreatedDate = createdDate;
     return user;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUsers(User user)
 {
     base.AddObject("Users", user);
 }