F
F
fan92rus2019-07-21 11:54:49
C++ / C#
fan92rus, 2019-07-21 11:54:49

How to use IEnumerable with primitive types in Entety framework?

I'm starting a project. ran into the performance of litedb and decided to use EF core and SQLite.
There was a problem with collections of basic types.
Found options to break into lines, serialize to json. or make a wrap. if we make a wrapper, then we spend performance on creating dbo (each model will need dbo and converting back and forth). with serialization resources go to serialization. Does anyone have information on performance and what other ways you can map collections of basic types.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#, 2019-07-21
@fan92rus

since we got to EF, then go through the tutorials, everything is just shekoladno in terms of development comfort. in terms of performance, there will always be someone better, but it will not be trivial. and definitely no multi-layer serializations are required
https://docs.microsoft.com/ru-ru/ef/core/
https://habr.com/ru/post/324272/
https://docs.microsoft.com/ ru-ru/ef/core/get-start...
https://metanit.com/sharp/entityframeworkcore/
ps personal memories of litedb - I don't remember performance issues. I remember a cruel trick with types - we save int[,] and restore int[]. which does not correspond to the declared object orientation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question