Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromBarcodedetailcriteria(ref DataRow row, Barcodedetailcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("vendor_id", entity.vendorId);
     row.SetField("barcode_id", entity.barcodeId);
     row.SetField("barcodedetailcriteriauserfield", entity.barcodedetailcriteriauserfield);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Barcodedetailcriteria BuildBarcodedetailcriteriaFromRow(DataRow row)
        {
            Barcodedetailcriteria entity = new Barcodedetailcriteria();

            entity.coNum     = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum     = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.vendorId  = row.IsNull("vendor_id") ? string.Empty : row.Field <string>("vendor_id");
            entity.barcodeId = row.IsNull("barcode_id") ? string.Empty : row.Field <string>("barcode_id");
            entity.barcodedetailcriteriauserfield = row.IsNull("barcodedetailcriteriauserfield") ? string.Empty : row.Field <string>("barcodedetailcriteriauserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }