Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCreateprodfromcatcriteria(ref DataRow row, Createprodfromcatcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("prodtype", entity.prodtype);
     row.SetField("statustype", entity.statustype);
     row.SetField("countryoforigin", entity.countryoforigin);
     row.SetField("tariffcd", entity.tariffcd);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Createprodfromcatcriteria BuildCreateprodfromcatcriteriaFromRow(DataRow row)
        {
            Createprodfromcatcriteria entity = new Createprodfromcatcriteria();

            entity.prod            = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse            = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.prodtype        = row.IsNull("prodtype") ? string.Empty : row.Field <string>("prodtype");
            entity.statustype      = row.IsNull("statustype") ? string.Empty : row.Field <string>("statustype");
            entity.countryoforigin = row.IsNull("countryoforigin") ? string.Empty : row.Field <string>("countryoforigin");
            entity.tariffcd        = row.IsNull("tariffcd") ? string.Empty : row.Field <string>("tariffcd");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }