public virtual Employee.DesignationMasterDataTable GetDesignationMasterById(global::System.Nullable<global::System.Guid> DesignationID) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((DesignationID.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((System.Guid)(DesignationID.Value)); } else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } Employee.DesignationMasterDataTable dataTable = new Employee.DesignationMasterDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual Employee.DesignationMasterDataTable GetDesignationMaster() { this.Adapter.SelectCommand = this.CommandCollection[0]; Employee.DesignationMasterDataTable dataTable = new Employee.DesignationMasterDataTable(); this.Adapter.Fill(dataTable); return dataTable; }