Comments (15)
I'm extremely excited for this. I invested a lot of time a few months ago building an F# web app with no persistence layer, thinking "it's all just .NET under the hood, of course EF will just work when I'm ready for it". I congratulated myself for avoiding the overhead of clobbering/recreating the DB in the early stages when everything was in flux. But then I tried to add EF and everything went immediately and thoroughly pear-shaped. It such a headache trying to figure out what compromises and hacks would be required just for the minimal working prototype that the project withered.
I don't even mind having the separate C# assembly just to generate migrations, but if EFCore.FSharp can get EF to work with records with option fields, I'll weep tears of joy.
from efcore.fsharp.
@bricelam, master
is currently good for an alpha1 release, currently targeting EF 2.2
@RonaldDijks, any help at all is appreciated. I'm particularly interested in any ideas that you may have regarding #20
from efcore.fsharp.
Sorry, swamped trying to land the EF Core 3.0 and EF 6.3 releases...
from efcore.fsharp.
@simontaite Is the code ready to go? (for an alpha1 release) If so, I'll schedule some time to build, sign, and publish it...
from efcore.fsharp.
@bricelam, could you hold off for a couple of hours actually? Think I might have #24 almost working, will let you know soon. Would be good to be able to include automatic registration of converters for option
types
from efcore.fsharp.
lol, hours? I wasn't even thinking about starting for at least a couple of days! 😉
from efcore.fsharp.
That gives me plenty of time then, nice one!
from efcore.fsharp.
See also dotnet/efcore#10731
from efcore.fsharp.
So what's the current state of affairs?
from efcore.fsharp.
Is this still going to happen soon?
from efcore.fsharp.
I can't give a timeframe, currently focussed on targeting .NET Core 3.1
Would hope to have a release soon though, haven't been able to give this project much attention recently but have come back on it now
from efcore.fsharp.
@simontaite I did a lot of the manual work upgrading from (I think) 2.1 -> 3.1 in the repo here.
I think I may have trashed some of the stuff to do with packet etc. However, the main work is located to a few files. I also extended some of the unit testing, including building the generated code. I tried to follow the "spirit" of the OO C# sources as that made/ makes updating far more simple!
I know there are definitely a few more issues with the generated code, although I haven't looked at it in a few months myself.
Thanks.
from efcore.fsharp.
@DurdSoft
No worries about wrecking paket. I've merged your PR and thank you for the work you've done in upgrading to 3.1 and especially around the unit testing!
Working on fixing paket now and I've got it all building almost perfectly on my own machine so will be pushing some updates either later today or tomorrow
from efcore.fsharp.
Any thoughts/feedback on what's left for a NuGet release? Sounds like some very positive progress being made above (and with other recent commits) 💪
from efcore.fsharp.
Any updates for nuget release?
from efcore.fsharp.
Related Issues (20)
- [Single case DUs] The binary operator Equal is not defined for the types `UserId` and `UserId` HOT 1
- DbContextHelpers.fs methods return type obj instead of 'a HOT 1
- [Option] Optional DateTime properties cannot be filtered HOT 1
- Migration not generated due to optional single case DU HOT 1
- Unable to create migration using Pomelo's connector when Option types are already present in model HOT 7
- How do you create an optional navigation property? HOT 3
- Scaffolding fails if a column uses a DEFAULT value
- singleCaseUnionMemberTranslator Translate should return null for non-applicable expressions
- Support for empty discriminated union HOT 2
- Documentation: Guide on how to create a many-to-many relationships HOT 2
- When trying to call registerSingleCaseUnionTypes from C#, I get an InvalidOperationException
- NullReferenceException on second migration HOT 1
- The Getting Started guide does not work well HOT 3
- NullReferenceException when deleting optional fields
- Support EF Core 7 HOT 1
- Scaffolding a `nvarchar NULL` creates a `string` and not a `string option`
- Nullpointer on second migration when having a string option field
- Extension UseFsharpTypes() interferes with the npgsql translation for where statement on jsonb columns
- Subsequent migrations fail with `type 'JsonDocument' is not defined` error for JSONB column HOT 3
- Npgsql JSONB to POCO mapping produces an empty `open` stmt in `Migration/*Snapshot.fs`
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 efcore.fsharp.