Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcwarehousecopy(ref DataRow row, Icwarehousecopy entity)
 {
     row.SetField("fromwhse", entity.fromwhse);
     row.SetField("towhse", entity.towhse);
     row.SetField("name", entity.name);
     row.SetField("rowid", entity.rowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Icwarehousecopy BuildIcwarehousecopyFromRow(DataRow row)
        {
            Icwarehousecopy entity = new Icwarehousecopy();

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