Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasggstvatcopy(ref DataRow row, Sasggstvatcopy entity)
 {
     row.SetField("fromstate", entity.fromstate);
     row.SetField("tostate", entity.tostate);
     row.SetField("rowid", entity.rowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Sasggstvatcopy BuildSasggstvatcopyFromRow(DataRow row)
        {
            Sasggstvatcopy entity = new Sasggstvatcopy();

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