Exemple #1
0
        public static Vaspasmblruledelete BuildVaspasmblruledeleteFromRow(DataRow row)
        {
            Vaspasmblruledelete entity = new Vaspasmblruledelete();

            entity.seqno         = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.rowidVaspsasr = row.Field <byte[]>("rowid-vaspsasr").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 UpdateRowFromVaspasmblruledelete(ref DataRow row, Vaspasmblruledelete entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("rowid-vaspsasr", entity.rowidVaspsasr.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }