Пример #1
0
        public static Notemovepagenoresults BuildNotemovepagenoresultsFromRow(DataRow row)
        {
            Notemovepagenoresults entity = new Notemovepagenoresults();

            entity.pageno     = row.IsNull("pageno") ? 0 : row.Field <int>("pageno");
            entity.notesRowid = row.Field <byte[]>("notes-rowid").ToStringEncoded();
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Пример #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromNotemovepagenoresults(ref DataRow row, Notemovepagenoresults entity)
 {
     row.SetField("pageno", entity.pageno);
     row.SetField("notes-rowid", entity.notesRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }