-
Notifications
You must be signed in to change notification settings - Fork 53
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
Does Option work with Entity Framework? #7
Comments
Hi @zyx3nzh7 I haven't tried. Have you tried and are experiencing problems? |
No, but I can try and report back on Thursday. |
I tried and it doesn't work since LINQ to Entity only supports some (primitive?) types like (Int32, String, int? and Guid) and Nullable. Maybe a few more but for Option an Exception is thrown at runtime. Unfortunately this makes this great library less useful for me. |
Where do you wish to use the Option value? In the query expression or the select projection? (or both?) |
Actually, if you can post an example query that'd help. I'm wondering how you're using the value? Perhaps there's some cunning that can be done by projecting to IEnumerable and doing an 'in'. |
//relevant part in the model Entity Framework tries to translates the lamda function to SQL at runtime and fails. Unfortunately i have no clue how the translation works internally and how one could extend it. |
Not sure if issues is the right place to ask a question. Please do tell me if that's not the case.
I just wanted to know if "Option" works with LINQ for Entity Framework.
The text was updated successfully, but these errors were encountered: