/// <summary> /// Create a new UserDepartment object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="department">Initial value of the Department property.</param> public static UserDepartment CreateUserDepartment(global::System.Guid id, global::System.String department) { UserDepartment userDepartment = new UserDepartment(); userDepartment.ID = id; userDepartment.Department = department; return userDepartment; }
/// <summary> /// Deprecated Method for adding a new object to the UserDepartments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserDepartments(UserDepartment userDepartment) { base.AddObject("UserDepartments", userDepartment); }