Ejemplo n.º 1
0
 /// <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="email">Initial value of the Email property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="created">Initial value of the Created property.</param>
 /// <param name="lastModified">Initial value of the LastModified property.</param>
 /// <param name="isDeleted">Initial value of the IsDeleted property.</param>
 /// <param name="birthDate">Initial value of the BirthDate property.</param>
 /// <param name="token">Initial value of the Token property.</param>
 /// <param name="weight">Initial value of the Weight property.</param>
 /// <param name="height">Initial value of the Height property.</param>
 /// <param name="favouriteSport">Initial value of the FavouriteSport property.</param>
 /// <param name="isPublicProfile">Initial value of the IsPublicProfile property.</param>
 public static User CreateUser(global::System.Int32 id, global::System.String userName, global::System.String email, global::System.String password, global::System.DateTime created, global::System.DateTime lastModified, global::System.Boolean isDeleted, global::System.DateTime birthDate, global::System.Guid token, global::System.Decimal weight, global::System.Int32 height, global::System.Int32 favouriteSport, global::System.Boolean isPublicProfile)
 {
     User user = new User();
     user.Id = id;
     user.UserName = userName;
     user.Email = email;
     user.Password = password;
     user.Created = created;
     user.LastModified = lastModified;
     user.IsDeleted = isDeleted;
     user.BirthDate = birthDate;
     user.Token = token;
     user.Weight = weight;
     user.Height = height;
     user.FavouriteSport = favouriteSport;
     user.IsPublicProfile = isPublicProfile;
     return user;
 }
Ejemplo n.º 2
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);
 }