Servant-Software-LLC / FileBased.DataProviders

ADO.NET & EF Core Data Providers for common serializable formats (JSON, XML, and CSV) stored to disk.
2 stars 1 forks source link

XML ADO provider cannot handle paths with embedded relative paths. #52

Open DaveRMaltby opened 11 months ago

DaveRMaltby commented 11 months ago

For example: C:\Dev\MockDB\Tests\Integration.RemoteFileBasedTables.ClientCodeGeneration\bin\Debug\net7.0**../../../**Sources/GettingStartedWithData.xml was failing.

Workaround: Use Path.GetFullPath() method which removes the embedded relative paths and results in a path of: C:\Dev\MockDB\Tests\Integration.RemoteFileBasedTables.ClientCodeGeneration\Sources/GettingStartedWithData.xml

Fix: Call Path.GetFullPath() in provider.