Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromNsinvhdrlookupcriteria(ref DataRow row, Nsinvhdrlookupcriteria entity)
 {
     row.SetField("typecd", entity.typecd);
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("prodcat", entity.prodcat);
     row.SetField("activeonly", entity.activeonly);
     row.SetField("qtycd", entity.qtycd);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Nsinvhdrlookupcriteria BuildNsinvhdrlookupcriteriaFromRow(DataRow row)
        {
            Nsinvhdrlookupcriteria entity = new Nsinvhdrlookupcriteria();

            entity.typecd           = row.IsNull("typecd") ? string.Empty : row.Field <string>("typecd");
            entity.prod             = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse             = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.prodcat          = row.IsNull("prodcat") ? string.Empty : row.Field <string>("prodcat");
            entity.activeonly       = row.Field <bool>("activeonly");
            entity.qtycd            = row.IsNull("qtycd") ? string.Empty : row.Field <string>("qtycd");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }