Open joelvandiver opened 5 years ago
I thought this would have been already working. As a workaround you can use:
query {
for a in db.MySchema.MyTable do
where (a.ObjectId.IsSome && a.ObjectId.Value = myGuid)
select a
} |> List.ofSeq
Thanks for the workaround!
I'm not sure why this isn't working either. I've had this Guid option for several months now and haven't run into until recently.
I guess it was some change in SQL server driver. This should be also now fixed in version 1.1.94 by fe60096c1700ca78f7e8ba5948eda9f7be2ea35c
Description
A Guid option is throwing an exception with a query.
Repro steps
Table Definition:
Example Script
let getDB() = DBSchema.GetDataContext(connectionString)
let db = getDB()
let objectId : Guid option = Guid.NewGuid() |> Some
query { for a in db.MySchema.MyTable do where (a.ObjectId = objectId) select a } |> List.ofSeq