public static Kpgrouplookupresults BuildKpgrouplookupresultsFromRow(DataRow row) { Kpgrouplookupresults entity = new Kpgrouplookupresults(); entity.groupname = row.IsNull("groupname") ? string.Empty : row.Field <string>("groupname"); entity.rowidKpsg = row.Field <byte[]>("rowid-kpsg").ToStringEncoded(); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromKpgrouplookupresults(ref DataRow row, Kpgrouplookupresults entity) { row.SetField("groupname", entity.groupname); row.SetField("rowid-kpsg", entity.rowidKpsg.ToByteArray()); }