Open ghost opened 9 years ago
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
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
//relevant part in the model
[Column("age")]
public Option
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.