/// <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);
 }
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="coins">Initial value of the Coins property.</param>
 /// <param name="isLocked">Initial value of the IsLocked property.</param>
 /// <param name="gender">Initial value of the Gender property.</param>
 /// <param name="isIDCardValid">Initial value of the IsIDCardValid property.</param>
 /// <param name="lastActivityDate">Initial value of the LastActivityDate property.</param>
 /// <param name="roleId">Initial value of the RoleId property.</param>
 public static User CreateUser(global::System.Guid id, global::System.String userName, global::System.String password, global::System.String email, global::System.Int32 coins, global::System.Boolean isLocked, global::System.Boolean gender, global::System.Boolean isIDCardValid, global::System.DateTime lastActivityDate, global::System.Guid roleId)
 {
     User user = new User();
     user.Id = id;
     user.UserName = userName;
     user.Password = password;
     user.Email = email;
     user.Coins = coins;
     user.IsLocked = isLocked;
     user.Gender = gender;
     user.IsIDCardValid = isIDCardValid;
     user.LastActivityDate = lastActivityDate;
     user.RoleId = roleId;
     return user;
 }
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="coins">Initial value of the Coins property.</param>
 /// <param name="zone">Initial value of the Zone property.</param>
 public static User CreateUser(global::System.Guid id, global::System.String userName, global::System.String password, global::System.String email, global::System.Int32 coins, Zone zone)
 {
     User user = new User();
     user.Id = id;
     user.UserName = userName;
     user.Password = password;
     user.Email = email;
     user.Coins = coins;
     user.Zone = StructuralObject.VerifyComplexObjectIsNotNull(zone, "Zone");
     return user;
 }