public static Vaspsectionlistcriteria BuildVaspsectionlistcriteriaFromRow(DataRow row) { Vaspsectionlistcriteria entity = new Vaspsectionlistcriteria(); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.rowidVasp = row.Field <byte[]>("rowid-vasp").ToStringEncoded(); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromVaspsectionlistcriteria(ref DataRow row, Vaspsectionlistcriteria entity) { row.SetField("seqno", entity.seqno); row.SetField("rowid-vasp", entity.rowidVasp.ToByteArray()); row.SetField("userfield", entity.userfield); }