Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcproductunitlookupcriteria(ref DataRow row, Icproductunitlookupcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("units", entity.units);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Icproductunitlookupcriteria BuildIcproductunitlookupcriteriaFromRow(DataRow row)
        {
            Icproductunitlookupcriteria entity = new Icproductunitlookupcriteria();

            entity.prod             = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.units            = row.IsNull("units") ? string.Empty : row.Field <string>("units");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }