/// <summary>
 /// Create a new UserDelegate object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="user_to">Initial value of the user_to property.</param>
 /// <param name="user_by">Initial value of the user_by property.</param>
 /// <param name="date_from">Initial value of the date_from property.</param>
 /// <param name="date_to">Initial value of the date_to property.</param>
 /// <param name="department">Initial value of the department property.</param>
 public static UserDelegate CreateUserDelegate(global::System.Int32 id, global::System.Int32 user_to, global::System.Int32 user_by, global::System.DateTime date_from, global::System.DateTime date_to, global::System.Int32 department)
 {
     UserDelegate userDelegate = new UserDelegate();
     userDelegate.id = id;
     userDelegate.user_to = user_to;
     userDelegate.user_by = user_by;
     userDelegate.date_from = date_from;
     userDelegate.date_to = date_to;
     userDelegate.department = department;
     return userDelegate;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the UserDelegates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserDelegates(UserDelegate userDelegate)
 {
     base.AddObject("UserDelegates", userDelegate);
 }