public static Glsbcopyresults BuildGlsbcopyresultsFromRow(DataRow row) { Glsbcopyresults entity = new Glsbcopyresults(); entity.rowid = row.Field <byte[]>("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 UpdateRowFromGlsbcopyresults(ref DataRow row, Glsbcopyresults entity) { row.SetField("rowid", entity.rowid.ToByteArray()); row.SetField("userfield", entity.userfield); }