Example #1
0
        public static Icwhseproductcopyprods BuildIcwhseproductcopyprodsFromRow(DataRow row)
        {
            Icwhseproductcopyprods entity = new Icwhseproductcopyprods();

            entity.fromwhse  = row.IsNull("fromwhse") ? string.Empty : row.Field <string>("fromwhse");
            entity.fromprod  = row.IsNull("fromprod") ? string.Empty : row.Field <string>("fromprod");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcwhseproductcopyprods(ref DataRow row, Icwhseproductcopyprods entity)
 {
     row.SetField("fromwhse", entity.fromwhse);
     row.SetField("fromprod", entity.fromprod);
     row.SetField("userfield", entity.userfield);
 }