Hello Richard,
first keep in mind that the connection string you provide in the F#
code is only for compile time, at runtime you'll pass your own
connection.
I'm not acquainted with F# SQLProvider, I'm using SqlClient which is
limited to MSSQL, although looking at the code:
https://github.com/fsprojects/SQLProvider/blob/54436832fae55b44fce215a4272956204221b705/src/SQLProvider/SqlDesignTime.fs#L407
It seems you can pass the connection as a string parameter to
GetDataContext (there are 3 overloads for this method).
so in your production code, you never call GetDataContext without any
parameters, always pass the connection string you need to use.
Does that make sense?
> --
> --
> To post, send email to
fsharp-o...@googlegroups.com
> To unsubscribe, send email to
>
fsharp-opensou...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/fsharp-opensource
> ---
> You received this message because you are subscribed to the Google Groups
> "F# Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
fsharp-opensou...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.