Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcipfetchreplcriteria(ref DataRow row, Icipfetchreplcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("unit", entity.unit);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Icipfetchreplcriteria BuildIcipfetchreplcriteriaFromRow(DataRow row)
        {
            Icipfetchreplcriteria entity = new Icipfetchreplcriteria();

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