コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the aspnet_UsersInRoles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToaspnet_UsersInRoles(aspnet_UsersInRole aspnet_UsersInRole)
 {
     base.AddObject("aspnet_UsersInRoles", aspnet_UsersInRole);
 }
コード例 #2
0
 /// <summary>
 /// Create a new aspnet_UsersInRole object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="roleId">Initial value of the RoleId property.</param>
 public static aspnet_UsersInRole Createaspnet_UsersInRole(global::System.Guid userId, global::System.Guid roleId)
 {
     aspnet_UsersInRole aspnet_UsersInRole = new aspnet_UsersInRole();
     aspnet_UsersInRole.UserId = userId;
     aspnet_UsersInRole.RoleId = roleId;
     return aspnet_UsersInRole;
 }