Open schuettecarsten opened 4 years ago
Hello @schuettecarsten ,
Could you provide your project to make sure we try to debug it with your current setup?
So we will be sure that when the fix will be released, it will work with your model.
You can send it to: info@zzzprojects.com if you need to keep the source private
Best Regards,
Jonathan
Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Entity Framework Classic • Bulk Operations • Dapper Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function
Hello @schuettecarsten,
Since our last conversation, we haven't heard from you.
Could you provide a full example of this issue on our email: info@zzzprojects.com
Looking forward to hearing from you,
Jon
Hello, I am not sure about your configuration, but just in case, try to specify ConfigSection for migrations like this:
internal sealed class Configuration : DbMigrationsConfiguration<YourDBContext> {
static Configuration() {
Z.EntityFramework.Classic.EntityFrameworkManager.ConfigSectionName = "entityFrameworkClassic";
}
If you use default "entityFramework" section - change code above accordingly Regards, Roman
Thank @rmaenk for the answer ;)
It might be exactly the solution.
I will give it a try, thank you.
Meanwhile I moved back to EF6 with EF+ because there were too many side effects. So, testing this might take some time. I will close this issue,
internal sealed class Configuration : DbMigrationsConfiguration<YourDBContext> { static Configuration() { Z.EntityFramework.Classic.EntityFrameworkManager.ConfigSectionName = "entityFrameworkClassic"; }
This did not help, unfortunately.
Hello @schuettecarsten ,
Could you provide your project to make sure we try to debug it with your current setup?
So we will be sure that when the fix will be released, it will work with your model.
You can send it to: info@zzzprojects.com if you need to keep the source private
I sent you an email some days ago...
Hello @schuettecarsten ,
We are sorry for the delay in our answer.
We have received your email and we are currently looking at the issue.
We will contact you via email.
Best regards,
Jon
Thank you for the project,
We can successfully reproduce it. We will need to review the part of the migration under the .NET Standard.
However, it doesn't look to be a quick job as we will need to sync our repo with the official EF versions.
We currently need first to complete our code re-write for EF Core 5 which is coming soon.
When I run “Add-Migration” from the package manager console, I get:
Please note that in my project, I have moved the DbContext and the Migrations into a separate assembly “CMT.DataAccess” and the Model into an assembly “CMT.DataAccess.Model”. This worked fine for EF6. To migrate from EF6 to EFClassic, I removed all EntityFramework packages and installed the EFClassic packages as described in the documentation.