/// <summary> /// Deprecated Method for adding a new object to the Employee EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmployee(Employee employee) { base.AddObject("Employee", employee); }
/// <summary> /// Create a new Employee object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="isMale">Initial value of the IsMale property.</param> /// <param name="salary">Initial value of the Salary property.</param> /// <param name="grade">Initial value of the Grade property.</param> public static Employee CreateEmployee(global::System.Int32 id, global::System.String name, global::System.Boolean isMale, global::System.Decimal salary, global::System.Int32 grade) { Employee employee = new Employee(); employee.Id = id; employee.Name = name; employee.IsMale = isMale; employee.Salary = salary; employee.Grade = grade; return employee; }
/// <summary> /// Deprecated Method for adding a new object to the Employee EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmployee(Employee employee) { base.AddObject("Employee", employee); }