Ejemplo n.º 1
0
 /// <summary>
 /// Create a new departments object.
 /// </summary>
 /// <param name="departmentID">Initial value of the DepartmentID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static departments Createdepartments(global::System.Int32 departmentID, global::System.String name)
 {
     departments departments = new departments();
     departments.DepartmentID = departmentID;
     departments.Name = name;
     return departments;
 }
 public void Delete(departments entity)
 {
     Repository.Delete(entity);
 }
Ejemplo n.º 3
0
 /// <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(departments departments)
 {
     base.AddObject("departments", departments);
 }
 public void Add(departments entity)
 {
     Repository.Add(entity);
 }