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
The code for detecting anonymous types just looks to see if the object has a namespace. You can do this from F# by declaring types in a module only file like
moduleParameterstypeByName={
name :string}
but this is not obvious nor optimal.
I have an Stackoverflow question about detecting F# record types from C# at runtime to see if we can maybe add a detection to Marten main. If that's not easy/possible we should consider alternatives.
The text was updated successfully, but these errors were encountered:
TheAngryByrd
changed the title
Figure out sql parameters
Using F# Record types are named parameters
Oct 6, 2017
TheAngryByrd
changed the title
Using F# Record types are named parameters
Using F# Record types as named parameters
Oct 6, 2017
As of now, you can't use named parameter queries easily from F# because the parameter handler looks for anonymous objects which F# doesn't support.
The code for detecting anonymous types just looks to see if the object has a namespace. You can do this from F# by declaring types in a module only file like
but this is not obvious nor optimal.
I have an Stackoverflow question about detecting F# record types from C# at runtime to see if we can maybe add a detection to Marten main. If that's not easy/possible we should consider alternatives.
The text was updated successfully, but these errors were encountered: