You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using RepoDB in F#, passing Dictionary<string, Object> as an argument to operations does not work.
I think that root cause of the problem lies in method IsDictionaryStringObject where the dictionary object type is compared like this type == StaticType.IDictionaryStringObject.
Library Version:
1.12.7
Example code
letuser= Dictionary<string, Object>()
patch.FirstName |> Option.iter (fun value -> user.Add("FirstName", value))
patch.LastName |> Option.iter (fun value -> user.Add("LastName", value))let!updatedRows= connection.UpdateAsync("User", entity = user, where = where)
TypeExtension.IsDictionaryStringObject() at C:\Users\matej\AppData\Roaming\JetBrains\Rider2020.3\resharper-host\DecompilerCache\decompiler\2B1075D7-B7DF-431E-9AE4-B3722EBBCB1A\56\385aca96\TypeExtension.cs:line 56
DbConnectionExtension.UpdateAsyncInternal<object>() at C:\Users\matej\AppData\Roaming\JetBrains\Rider2020.3\resharper-host\DecompilerCache\decompiler\2B1075D7-B7DF-431E-9AE4-B3722EBBCB1A\0d\fbb91ff4\DbConnectionExtension.cs:line 28113
DbConnectionExtension.UpdateAsync() at C:\Users\matej\AppData\Roaming\JetBrains\Rider2020.3\resharper-host\DecompilerCache\decompiler\2B1075D7-B7DF-431E-9AE4-B3722EBBCB1A\0d\fbb91ff4\DbConnectionExtension.cs:line 28393
...
The text was updated successfully, but these errors were encountered:
Bug Description
When using RepoDB in F#, passing
Dictionary<string, Object>
as an argument to operations does not work.I think that root cause of the problem lies in method IsDictionaryStringObject where the dictionary object type is compared like this
type == StaticType.IDictionaryStringObject
.Library Version:
1.12.7
Example code
type
dataStaticType.IDictionaryStringObject
dataStack trace
The text was updated successfully, but these errors were encountered: