我尝试按照linux mint上的sqlprovider mysql provider的说明,使用monodevel或vs代码。我有:
let [<Literal>] connString = @"Server=localhost;Database=PriceData;User=root;Password=-----;SslMode=none"
let [<Literal>] connexStringName = "DefaultConnectionString"
let [<Literal>] dbVendor = Common.DatabaseProviderTypes.MYSQL
let [<Literal>] resPath = __SOURCE_DIRECTORY__ + @"/../../../Simulations 2018-07-29/packages/MySqlConnector.0.43.0/lib/net45"
let [<Literal>] indivAmount = 1000
let [<Literal>] useOptTypes = true
和
type SQL = SqlDataProvider< dbVendor,
connString,
ResolutionPath = resPath,
IndividualsAmount = indivAmount,
UseOptionTypes = useOptTypes
Owner = "HR" > ///"PriceData">
此类型声明出错:
The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error:
Invalid attempt to Read when reader is closed.
这件事让我完全困惑。我以前在windows和visualstudio中从未遇到过这样的错误。我找不到任何与f#和类型提供者相关的搜索。
谢谢你的建议。
暂无答案!
目前还没有任何答案,快来回答吧!