Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdpricesheetlistcriteria(ref DataRow row, Pdpricesheetlistcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("pricesheet", entity.pricesheet);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Pdpricesheetlistcriteria BuildPdpricesheetlistcriteriaFromRow(DataRow row)
        {
            Pdpricesheetlistcriteria entity = new Pdpricesheetlistcriteria();

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