Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcproductcopy(ref DataRow row, Icproductcopy entity)
 {
     row.SetField("fromprod", entity.fromprod);
     row.SetField("toprod", entity.toprod);
     row.SetField("rowid", entity.rowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Icproductcopy BuildIcproductcopyFromRow(DataRow row)
        {
            Icproductcopy entity = new Icproductcopy();

            entity.fromprod  = row.IsNull("fromprod") ? string.Empty : row.Field <string>("fromprod");
            entity.toprod    = row.IsNull("toprod") ? string.Empty : row.Field <string>("toprod");
            entity.rowid     = row.Field <byte[]>("rowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }