Closed Hameds closed 2 years ago
Since InMemory is "in-memory" there is no need to provide translation or mapping to store type. It just works because NTS is loaded in memory already. You don't need to call anything specific. NTS works for in-memory out of the box.
@smitpatel thanks for the comment. I tried to seed InMemory
in my unit tests with a Point
(from NetTopologySuite.Geometries
namespace) but it didn't work. I assumed it's related to UseNetTopologySuite()
extension method. I will check again.
I used 'InMemory' in my unit tests and I have some spatial data. According to docs there is builtin support for
UseNetTopologySuite()
extension method inSQL Server
andSqlite
. There is also support for this extension method inPostgreSQL
using https://github.com/npgsql/efcore.pg but no support forInMemory
.If you look at EF source code you can see
EFCore.Sqlite.NTS
andEFCore.SqlServer.NTS
projects. It's nice to haveEFCore.InMemory.NTS
project.