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
Added Abp.ZeroCore.EntityFramework #2625
Conversation
Thank you very much. Will review and merge it soon. |
Dears, And many other functionalities. I tried to implement Thanks, |
@iyhammad Is that .NET Core 1 or 2? EF6 cannot target .NET Core 2; this PR targets |
@acjh I think It doesn't matter here. @ryancyq is implementing Abp.ZeroCore.EntityFramework to be able to use it with Abp.ZeroCore What I'm saying is, there are classes and methods in Abp.ZeroCore will break because of the dependency on |
|
So, we just want to keep in mind that Lazy Loading is a must while using the new library. I believe It will be better if we null-check |
No, lazy-loading is not a must, but it is a given in EF6 for this case. Redundant code isn't better. |
From your link, there are no "similar cases" in |
Hi @acjh , Will break or not ? |
As mentioned, lazy-loading is not a must "in this particular case" and can be safely disabled if |
We are calling EnsureCollectionLoaded which loads collections where lazy loading is not available. |
I really love that. Thank you |
You're welcome :) |
@ryancyq @hikalkan Do you have a working example of this package using the vanilla ASP.NET Boilerplate template with ASP.NET Core? I have tried making a .EntityFramework project at the template based on code taken from the ASP.NET MVC 5 template, I get it to build but I get entity model validation exceptions when I try to create the initial migration. Edit - This is the exception I get when I try to create the initial migration:
This is the EntityFramework project I created at the AspNetCore vanilla template for ASP.NET Boilerplate |
As mention in #2600, i created
Abp.ZeroCore.EntityFramework