Problem / Situation
I have quite complex objects (with binary fields, huge texts,..), that I read from Database with EF Core. For those objects I try to generate insert statements (plain string text) to save them in some file and execute on different database later.
I have a custom insert statement creator written in C#, but I have to implement EACH possible field/data type and of course it is incomplete and faulty. Also I needed to manually combine records somehow to avoid doing an INSERT statement for each record and instead one INSERT with multiple VALUES.
So I would really like to use some library for this task or ideally EntityFramework, since I already use it to read the objects from the database.
What I need
Some library (or feature in EntityFramework) that I can just pass some objects and receive the corresponding INSERT statements for that objects.