No runtime code generation CLR support (mobile devices)

May 4, 2015 at 12:40 PM
I saw that EF 7 will support devices with no or limited code generation in runtime.

VITA as I saw uses interfaces as base for coding. Is implementation class generated in runtime?

If yes, what is about support for devices which will not be able to generate code in runtime? Like doing compile time code generation.

Just checking limits of VITA.
May 4, 2015 at 6:08 PM
Yes, VITA uses classes IL-generated at startup as things behind interfaces. As for no-IL generation platforms (iOS), this is not a big problem. It can be done by generating classes as c# code at compile time (or manually running a tool) - this is not implemented, but can be done relatively easy.
The bigger unknown is indirect use - VITA uses some .NET facilities that use run-time compilation like compiling expressions into delegates, for things like entity materialization. But I guess if EF can do it (I guess), then I can do it too. When - when this item pops up to the top of TODO list.