/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromNotemovepageno(ref DataRow row, Notemovepageno entity) { row.SetField("movepageno", entity.movepageno); row.SetField("movetype", entity.movetype); row.SetField("notes-rowid", entity.notesRowid.ToByteArray()); row.SetField("userfield", entity.userfield); }
public static Notemovepageno BuildNotemovepagenoFromRow(DataRow row) { Notemovepageno entity = new Notemovepageno(); entity.movepageno = row.IsNull("movepageno") ? 0 : row.Field <int>("movepageno"); entity.movetype = row.Field <bool>("movetype"); entity.notesRowid = row.Field <byte[]>("notes-rowid").ToStringEncoded(); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }