Example #1
0
 private bool FilterUsers(Users entity)
 {
     return (entity.Id == this.UserId);
 }
 /// <summary>
 /// Create a new Users object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static Users CreateUsers(global::System.Int32 id)
 {
     Users users = new Users();
     users.Id = id;
     return users;
 }
 /// <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(Users users)
 {
     base.AddObject("Users", users);
 }
Example #4
0
        internal bool VerifyPassword(Users user, string password)
        {
            if (user == null)
                return false;

            if (user.Password != this.HashPassword(password, user.Salt))
                return false;

            return true;
        }