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?
根据 s952163 的评论,我使用 SQLProvider 而不是 SQLEntityConnection。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.