Comments (4)
Is there a work around for this? I tried copy this code into my project, but it uses internal types.
Edit: I used a combo of http://stackoverflow.com/questions/15405875/ef5-migrations-seed-addorupdate-with-a-nullable-selection-criteria/29339351#29339351 modified with http://stackoverflow.com/questions/17710769/can-you-get-the-dbcontext-from-a-dbset/17712575#17712575 to make it a drop-in replacement
from ef6.
Ported from CodePlex https://entityframework.codeplex.com/workitem/2907
from ef6.
Great that you are working on this, hopefully it should also solve https://entityframework.codeplex.com/workitem/2486 which might be a duplicate of the other codeplex item
from ef6.
Yeah, just adding the property's type to the constant expression should do it (see my corresponding Stack Overflow answer).
I could find some time for this next week or the week after. Please let me know, if I should look into it and prepare a PR if successfully.
from ef6.
Related Issues (20)
- When having an inheritance hierarchy, EF creates a redundat foreign Key column. HOT 1
- EntityFramework 6.4.4 Add-Migration "Unrecognized command or argument 'VB'" HOT 1
- Changing connection string is not reflected in Package Manager Console HOT 1
- Include SetAfterSaveBehavior as attribute [DatabaseGenerated] parameter HOT 3
- Entity Framework 6 Package Manager Error - Unrecognized command or argument 'C#' HOT 1
- edmx HOT 1
- Simple Bug Solution Path is LowerCase: HOT 1
- Visual Studio DB Save Changes HOT 1
- Bulk Insert/Update from C# .Net 4.8 HOT 1
- Package Manager Console doesn't take configuration from project only always compiles with ANY CPU option HOT 1
- add-migrations does not add Migrations folder HOT 1
- Nuget does not pull the dll's HOT 1
- Error when updating code to .NET 8 HOT 3
- After upgrading to the latest version of vs, running DbMigrator reports an error HOT 1
- Add-Migration not recognized after install of Microsoft.EntityFrameworkCore.Tools HOT 1
- To match the data types of columns in the database and in the class HOT 1
- Entity Framework not able to import stored procedures HOT 1
- Entity Framework not importing stored procedures HOT 1
- Thread.CurrentThread.CurrentCulture settings are leaked into the generated SQL causing invalid SQL HOT 7
- Next Release for Microsoft.Data.SqlClient HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ef6.