/// <summary>
 /// Deprecated Method for adding a new object to the departments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTodepartments(department department)
 {
     base.AddObject("departments", department);
 }
 /// <summary>
 /// Create a new department object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="name">Initial value of the name property.</param>
 /// <param name="publish">Initial value of the publish property.</param>
 public static department Createdepartment(global::System.Int32 id, global::System.String name, global::System.Boolean publish)
 {
     department department = new department();
     department.id = id;
     department.name = name;
     department.publish = publish;
     return department;
 }