public InvoiceItemStatus(InvoiceStatusData invoiceStatusData) { InvoiceItemStatusKey = invoiceStatusData.InvoiceStatusKey; InvoiceItemStatusCode = invoiceStatusData.InvoiceStatusCode; InvoiceItemStatusName = invoiceStatusData.InvoiceStatusName; InvoiceItemStatusType = invoiceStatusData.InvoiceStatusType; InvoiceItemStatusDesc = invoiceStatusData.InvoiceStatusDesc; AddedUserID = invoiceStatusData.AuditAddUserId; AddedDateTime = invoiceStatusData.AuditAddDatetime; UpdateUserID = invoiceStatusData.AuditUpdateUserId; UpdateDateTime = invoiceStatusData.AuditUpdateDatetime; }
} // Map function closer public List <SqlParameter> MapParamsForUpsert(InvoiceStatusData entity) { var sql_params = new List <SqlParameter>(); sql_params.Add(new SqlParameter("@invoice_status_key", entity.InvoiceStatusKey)); sql_params.Add(new SqlParameter("@invoice_status_code", entity.InvoiceStatusCode)); sql_params.Add(new SqlParameter("@invoice_status_name", entity.InvoiceStatusName)); sql_params.Add(new SqlParameter("@invoice_status_type", entity.InvoiceStatusType)); sql_params.Add(new SqlParameter("@invoice_status_desc", entity.InvoiceStatusDesc)); sql_params.Add(GetOutParam()); return(sql_params); }
public InvoiceStatus Map(InvoiceStatusData invoice_status_data) { return(new InvoiceStatus() { InvoiceStatusKey = invoice_status_data.InvoiceStatusKey, InvoiceStatusCode = invoice_status_data.InvoiceStatusCode, InvoiceStatusName = invoice_status_data.InvoiceStatusName, InvoiceStatusType = invoice_status_data.InvoiceStatusType, InvoiceStatusDesc = invoice_status_data.InvoiceStatusDesc, AddedUserID = invoice_status_data.AuditAddUserId, AddedDateTime = invoice_status_data.AuditAddDatetime, UpdateUserID = invoice_status_data.AuditUpdateUserId, UpdateDateTime = invoice_status_data.AuditUpdateDatetime, }); }
public List <SqlParameter> MapParamsForDelete(InvoiceStatusData entity) { return(MapParamsForDelete(entity.InvoiceStatusKey)); }