Example #1
0
        public static Omorderexceptionlistcriteria BuildOmorderexceptionlistcriteriaFromRow(DataRow row)
        {
            Omorderexceptionlistcriteria entity = new Omorderexceptionlistcriteria();

            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.exceptionType    = row.IsNull("exception_type") ? string.Empty : row.Field <string>("exception_type");
            entity.carrierList      = row.IsNull("carrier_list") ? string.Empty : row.Field <string>("carrier_list");
            entity.orderList        = row.IsNull("order_list") ? string.Empty : row.Field <string>("order_list");
            entity.customerList     = row.IsNull("customer_list") ? string.Empty : row.Field <string>("customer_list");
            entity.customerNameList = row.IsNull("customer_name_list") ? string.Empty : row.Field <string>("customer_name_list");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOmorderexceptionlistcriteria(ref DataRow row, Omorderexceptionlistcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("exception_type", entity.exceptionType);
     row.SetField("carrier_list", entity.carrierList);
     row.SetField("order_list", entity.orderList);
     row.SetField("customer_list", entity.customerList);
     row.SetField("customer_name_list", entity.customerNameList);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }