I'm trying to use SqlEntiyConnection to generate types from a MySql/MariaDb database using:
type UserService = SqlEntityConnection<Provider=provider, ConnectionString=connectionstring, Pluralize = true>
Where provider That declaration gives the following error message
"The provided types generated by this use of a type provider may not be used from other F# assemblies and should be marked internal or private. Consider using 'type internal TypeName = ...' or 'type private TypeName = ...'".
This seems to indicate that I will be unable to use any of the provided types outside the of the scope I declare it in. Is there a way to declare the type provider publicly so that I can use these types in public functions?
As per s952163's comment, I went with with SQLProvider instead of SQLEntityConnection.