/// <summary> /// 创建新的 vw_aspnet_UsersInRoles 对象。 /// </summary> /// <param name="userId">UserId 属性的初始值。</param> /// <param name="roleId">RoleId 属性的初始值。</param> public static vw_aspnet_UsersInRoles Createvw_aspnet_UsersInRoles(global::System.Guid userId, global::System.Guid roleId) { vw_aspnet_UsersInRoles vw_aspnet_UsersInRoles = new vw_aspnet_UsersInRoles(); vw_aspnet_UsersInRoles.UserId = userId; vw_aspnet_UsersInRoles.RoleId = roleId; return vw_aspnet_UsersInRoles; }
/// <summary> /// 用于向 vw_aspnet_UsersInRoles EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddTovw_aspnet_UsersInRoles(vw_aspnet_UsersInRoles vw_aspnet_UsersInRoles) { base.AddObject("vw_aspnet_UsersInRoles", vw_aspnet_UsersInRoles); }