Esempio n. 1
0
        /// <summary>
        /// Create a new ObjectDepartment object.
        /// </summary>
        /// <param name="departmentID">Initial value of the DepartmentID property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="budget">Initial value of the Budget property.</param>
        /// <param name="startDate">Initial value of the StartDate property.</param>
        public static ObjectDepartment CreateObjectDepartment(global::System.Int32 departmentID, global::System.String name, global::System.Decimal budget, global::System.DateTime startDate)
        {
            ObjectDepartment objectDepartment = new ObjectDepartment();

            objectDepartment.DepartmentID = departmentID;
            objectDepartment.Name         = name;
            objectDepartment.Budget       = budget;
            objectDepartment.StartDate    = startDate;
            return(objectDepartment);
        }
Esempio n. 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ObjectDepartments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToObjectDepartments(ObjectDepartment objectDepartment)
 {
     base.AddObject("ObjectDepartments", objectDepartment);
 }