/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPdspvcrecnoresults(ref DataRow row, Pdspvcrecnoresults entity) { row.SetField("lMaintmode", entity.lMaintmode); row.SetField("cType", entity.cType); row.SetField("iPDRecno", entity.iPDRecno); row.SetField("rowid-pdsvc", entity.rowidPdsvc.ToByteArray()); row.SetField("userfield", entity.userfield); }
public static Pdspvcrecnoresults BuildPdspvcrecnoresultsFromRow(DataRow row) { Pdspvcrecnoresults entity = new Pdspvcrecnoresults(); entity.lMaintmode = row.Field <bool>("lMaintmode"); entity.cType = row.IsNull("cType") ? string.Empty : row.Field <string>("cType"); entity.iPDRecno = row.IsNull("iPDRecno") ? 0 : row.Field <int>("iPDRecno"); entity.rowidPdsvc = row.Field <byte[]>("rowid-pdsvc").ToStringEncoded(); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }