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