Esempio n. 1
0
        public static Icssforproductlookupcriteria BuildIcssforproductlookupcriteriaFromRow(DataRow row)
        {
            Icssforproductlookupcriteria entity = new Icssforproductlookupcriteria();

            entity.prod       = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.activeonly = row.Field <bool>("activeonly");
            entity.unit       = row.IsNull("unit") ? string.Empty : row.Field <string>("unit");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Esempio n. 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcssforproductlookupcriteria(ref DataRow row, Icssforproductlookupcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("activeonly", entity.activeonly);
     row.SetField("unit", entity.unit);
     row.SetField("userfield", entity.userfield);
 }