Use Microsoft.EntityFrameworkCore.Abstractions instead of Microsoft.EntityFrameworkCore in client side.
megafetis opened this issue · comments
Use Microsoft.EntityFrameworkCore.Abstractions
instead of Microsoft.EntityFrameworkCore
in client side.
In useful in Blazor Webassembly to make less dependencies. Size of Microsoft.EntityFrameworkCore dll 2.4 mb
The only reason to include Remote.Linq.EntityFrameworkCore package in a client side project is to enable utilization of DB functions in queries via Microsoft.EntityFrameworkCore.DbFunctionsExtensions
. Other than that, Remote.Linq.EntityFrameworkCore is used on server side to apply queries to EFs DbContext
.
Also note that Microsoft.EntityFrameworkCore.DbFunctionsExtensions
are contained in Microsoft.EntityFrameworkCore package.
Thank you. It's a shame
Not at all! I know documentation should be improved ;)
- I Checked. Its. OK! Blazor webassembly trimming mechanizm creates
Microsoft.EntityFrameworkCore
from 2.4mb to 100 kb size. Thanks for work. - I didn't know that this lib contains its own extension methods
Include
andThenInclude
, that i needs