/// <summary> /// Create a new UserRole object. /// </summary> /// <param name="roleID">Initial value of the RoleID property.</param> /// <param name="roleName">Initial value of the RoleName property.</param> public static UserRole CreateUserRole(global::System.Byte roleID, global::System.String roleName) { UserRole userRole = new UserRole(); userRole.RoleID = roleID; userRole.RoleName = roleName; return userRole; }
/// <summary> /// Deprecated Method for adding a new object to the UserRoles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserRoles(UserRole userRole) { base.AddObject("UserRoles", userRole); }