/// <summary> /// Create a new tbldepartment object. /// </summary> /// <param name="departmentId">Initial value of the DepartmentId property.</param> /// <param name="departmentName">Initial value of the DepartmentName property.</param> public static tbldepartment Createtbldepartment(global::System.Int32 departmentId, global::System.String departmentName) { tbldepartment tbldepartment = new tbldepartment(); tbldepartment.DepartmentId = departmentId; tbldepartment.DepartmentName = departmentName; return(tbldepartment); }
/// <summary> /// Deprecated Method for adding a new object to the tbldepartments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotbldepartments(tbldepartment tbldepartment) { base.AddObject("tbldepartments", tbldepartment); }