Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcserialretrievepo(ref DataRow row, Icserialretrievepo entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("serialno", entity.serialno);
     row.SetField("potext", entity.potext);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Icserialretrievepo BuildIcserialretrievepoFromRow(DataRow row)
        {
            Icserialretrievepo entity = new Icserialretrievepo();

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