public static Iceandfltoffsetacctcriteria BuildIceandfltoffsetacctcriteriaFromRow(DataRow row) { Iceandfltoffsetacctcriteria entity = new Iceandfltoffsetacctcriteria(); entity.jrnlno = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno"); entity.icenhRowid = row.Field <byte[]>("icenh-rowid").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 UpdateRowFromIceandfltoffsetacctcriteria(ref DataRow row, Iceandfltoffsetacctcriteria entity) { row.SetField("jrnlno", entity.jrnlno); row.SetField("icenh-rowid", entity.icenhRowid.ToByteArray()); row.SetField("userfield", entity.userfield); }