/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPdspvdrecnoresults(ref DataRow row, Pdspvdrecnoresults entity) { row.SetField("lMaintmode", entity.lMaintmode); row.SetField("cType", entity.cType); row.SetField("rowid-pdsv", entity.rowidPdsv.ToByteArray()); row.SetField("userfield", entity.userfield); }
public static Pdspvdrecnoresults BuildPdspvdrecnoresultsFromRow(DataRow row) { Pdspvdrecnoresults entity = new Pdspvdrecnoresults(); entity.lMaintmode = row.Field <bool>("lMaintmode"); entity.cType = row.IsNull("cType") ? string.Empty : row.Field <string>("cType"); entity.rowidPdsv = row.Field <byte[]>("rowid-pdsv").ToStringEncoded(); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }