New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change namespace of LinqKit.Microsoft.EntityFrameworkCore #81
Comments
If the domain project is also used by other applications which don't use Entity Framework, it makes sense. However if the domain project is always used in applications which are using Entity Framework, it has no use to make a separation. |
The domain project is also used by other applications which doesn't use Entity Framework. |
A solution would be to conditionally include the correct library in the domain project. <ItemGroup Condition="'$(LibraryType)' == 'EF'">
<PackageReference Include="LinqKit.Core" Version="1.1.15" />
</ItemGroup>
<ItemGroup Condition="'$(LibraryType)' != 'EF'">
<PackageReference Include="LinqKit.Microsoft.EntityFrameworkCore" Version="1.1.15" />
</ItemGroup> Where you define See 16934b8 Closing this issue for now. |
I want to be able to use LinqKit.Core in my domain project and Linqkit.EntityFramework.Core in my data project(since I don't want a dependency on EF Core in my domain). However my data layer has a dependency on the domain project therefore I cannot use LinqKit's functions since the calls are ambigious.
Steps to reproduce:
Reference Linqkit.Core in your domain layer (you don't want a EF dependency here)
and LinqKit.Microsoft.EntityFrameworkCore in the data layer.
Please rename the namespaces of the LinqKit.EntityFramework.Core project, so we can have some separation.
The text was updated successfully, but these errors were encountered: