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

            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.qty       = row.IsNull("qty") ? decimal.Zero : row.Field <decimal>("qty");
            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 UpdateRowFromIcipfetchrollup(ref DataRow row, Icipfetchrollup entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("qty", entity.qty);
     row.SetField("userfield", entity.userfield);
 }