Exemplo n.º 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_UsersInRoles aspnet_UsersInRoles)
 {
     base.AddObject("aspnet_UsersInRoles", aspnet_UsersInRoles);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new aspnet_UsersInRoles 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_UsersInRoles Createaspnet_UsersInRoles(global::System.Guid userId, global::System.Guid roleId)
 {
     aspnet_UsersInRoles aspnet_UsersInRoles = new aspnet_UsersInRoles();
     aspnet_UsersInRoles.UserId = userId;
     aspnet_UsersInRoles.RoleId = roleId;
     return aspnet_UsersInRoles;
 }