Exemple #1
0
        public static Vasplinedelete BuildVasplinedeleteFromRow(DataRow row)
        {
            Vasplinedelete entity = new Vasplinedelete();

            entity.seqno       = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.rowidVaspsl = row.Field <byte[]>("rowid-vaspsl").ToStringEncoded();
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVasplinedelete(ref DataRow row, Vasplinedelete entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("rowid-vaspsl", entity.rowidVaspsl.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }