Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicBoundaryDatabaseContext/HydraulicBoundarySqLiteDatabaseReader.cs =================================================================== diff -u -r733d0d51adf737c52704cd80705507fdb34a2ba3 -rfc22f4b149d07797f0526f04ca58595bb9446786 --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicBoundaryDatabaseContext/HydraulicBoundarySqLiteDatabaseReader.cs (.../HydraulicBoundarySqLiteDatabaseReader.cs) (revision 733d0d51adf737c52704cd80705507fdb34a2ba3) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.IO/HydraulicBoundaryDatabaseContext/HydraulicBoundarySqLiteDatabaseReader.cs (.../HydraulicBoundarySqLiteDatabaseReader.cs) (revision fc22f4b149d07797f0526f04ca58595bb9446786) @@ -77,7 +77,7 @@ MoveNext(); } - public HydraulicBoundaryLocation ReadLocation() + public HrdLocation ReadLocation() { if (!HasNext) { @@ -86,7 +86,7 @@ try { - return ReadHydraulicBoundaryLocation(); + return ReadHrdLocation(); } catch (InvalidCastException e) { @@ -122,12 +122,12 @@ /// /// Gets the region id from the metadata table. /// - /// The region id found in the database, or -1 if the region id + /// The region id found in the database, or 0 if the region id /// cannot be found. /// Thrown when the database returned incorrect /// values for required properties. /// Thrown when a query could not be executed on the database schema. - public int GetRegionId() + public long GetRegionId() { string versionQuery = HydraulicBoundaryDatabaseQueryBuilder.GetRegionIdQuery(); var sqliteParameter = new SQLiteParameter @@ -138,7 +138,7 @@ { using (SQLiteDataReader dataReader = CreateDataReader(versionQuery, sqliteParameter)) { - return !dataReader.Read() ? 0 : Convert.ToInt32(dataReader[GeneralTableDefinitions.RegionId]); + return !dataReader.Read() ? 0 : Convert.ToInt64(dataReader[GeneralTableDefinitions.RegionId]); } } catch (InvalidCastException exception) @@ -213,12 +213,12 @@ } /// - /// Reads the current row into a new instance of . + /// Reads the current row into a new instance of . /// - /// A new instance of , based upon the current row. + /// A new instance of , based upon the current row. /// Thrown when the database returned incorrect values for /// required properties. - private HydraulicBoundaryLocation ReadHydraulicBoundaryLocation() + private HrdLocation ReadHrdLocation() { try { @@ -227,7 +227,7 @@ var x = Read(HrdLocationsTableDefinitions.XCoordinate); var y = Read(HrdLocationsTableDefinitions.YCoordinate); MoveNext(); - return new HydraulicBoundaryLocation(id, name, x, y); + return new HrdLocation(id, name, x, y); } catch (InvalidCastException) {