/// <summary> /// Create a new Employee object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> /// <param name="rowStatus">Initial value of the RowStatus property.</param> /// <param name="nationalIDNumber">Initial value of the NationalIDNumber property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="middleName">Initial value of the MiddleName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="positionName">Initial value of the PositionName property.</param> /// <param name="birthDate">Initial value of the BirthDate property.</param> /// <param name="gender">Initial value of the Gender property.</param> /// <param name="hiredDate">Initial value of the HiredDate property.</param> /// <param name="maritalStatus">Initial value of the MaritalStatus property.</param> /// <param name="address">Initial value of the Address property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="state">Initial value of the State property.</param> /// <param name="postalCode">Initial value of the PostalCode property.</param> /// <param name="bankName">Initial value of the BankName property.</param> /// <param name="bankAccount">Initial value of the BankAccount property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="employeeID">Initial value of the EmployeeID property.</param> /// <param name="isTerminate">Initial value of the IsTerminate property.</param> /// <param name="terminateDescription">Initial value of the TerminateDescription property.</param> public static Employee CreateEmployee(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.Byte rowStatus, global::System.String nationalIDNumber, global::System.String firstName, global::System.String middleName, global::System.String lastName, global::System.String title, global::System.String positionName, global::System.DateTime birthDate, global::System.String gender, global::System.DateTime hiredDate, global::System.String maritalStatus, global::System.String address, global::System.String city, global::System.String state, global::System.String postalCode, global::System.String bankName, global::System.String bankAccount, global::System.String createdBy, global::System.DateTime createdDate, global::System.String employeeID, global::System.Boolean isTerminate, global::System.String terminateDescription) { Employee employee = new Employee(); employee.Id = id; employee.RowVersion = rowVersion; employee.RowStatus = rowStatus; employee.NationalIDNumber = nationalIDNumber; employee.FirstName = firstName; employee.MiddleName = middleName; employee.LastName = lastName; employee.Title = title; employee.PositionName = positionName; employee.BirthDate = birthDate; employee.Gender = gender; employee.HiredDate = hiredDate; employee.MaritalStatus = maritalStatus; employee.Address = address; employee.City = city; employee.State = state; employee.PostalCode = postalCode; employee.BankName = bankName; employee.BankAccount = bankAccount; employee.CreatedBy = createdBy; employee.CreatedDate = createdDate; employee.EmployeeID = employeeID; employee.IsTerminate = isTerminate; employee.TerminateDescription = terminateDescription; return employee; }
/// <summary> /// Deprecated Method for adding a new object to the Employees EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmployees(Employee employee) { base.AddObject("Employees", employee); }