6bee / Remote.Linq

Simply LINQ your remote resources...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 ;)

  1. I Checked. Its. OK! Blazor webassembly trimming mechanizm creates Microsoft.EntityFrameworkCore from 2.4mb to 100 kb size. Thanks for work.
  2. I didn't know that this lib contains its own extension methods Include and ThenInclude, that i needs