コード例 #1
0
 /// <summary>
 /// Create a new Membership object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId 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="canonicalUsername">Initial value of the CanonicalUsername property.</param>
 public static Membership CreateMembership(global::System.Guid userId, global::System.String userName, global::System.String password, global::System.String email, global::System.String canonicalUsername)
 {
     Membership membership = new Membership();
     membership.UserId = userId;
     membership.UserName = userName;
     membership.Password = password;
     membership.Email = email;
     membership.CanonicalUsername = canonicalUsername;
     return membership;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Memberships EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMemberships(Membership membership)
 {
     base.AddObject("Memberships", membership);
 }