Sqlite 为什么找不到ICustomTypeDescriptor

Sqlite 为什么找不到ICustomTypeDescriptor,sqlite,f#,portable-class-library,Sqlite,F#,Portable Class Library,我用FSharp中的库为Windows、Android和iOS制作了一个PCL。我终于让SqlDataProvider工作了,但每当我编写代码试图访问查询中实体的属性时,模块声明都会显示一个错误,表明在System.ComponentModel上找不到ICustomTypeDescriptor。此外,我没有得到任何关于事务实体属性的intellisense module CashFlowData open FSharp.Data.Sql open System.IO open System o

我用FSharp中的库为Windows、Android和iOS制作了一个PCL。我终于让SqlDataProvider工作了,但每当我编写代码试图访问查询中实体的属性时,模块声明都会显示一个错误,表明在System.ComponentModel上找不到ICustomTypeDescriptor。此外,我没有得到任何关于事务实体属性的intellisense

module CashFlowData

open FSharp.Data.Sql
open System.IO
open System
open CashFlow

let [<Literal>] resolutionPath = __SOURCE_DIRECTORY__ + "\packages\System.Data.SQLite.dll";
let [<Literal>] connectionString = "DataSource=" + __SOURCE_DIRECTORY__ + @"\CashFlowDb.sqlite3;Version=3"

type private sql = SqlDataProvider<
                    ConnectionString = connectionString,
                    DatabaseVendor = Common.DatabaseProviderTypes.SQLITE,
                    SQLiteLibrary = Common.SQLiteLibrary.SystemDataSQLite,
                    ResolutionPath = resolutionPath,
                    UseOptionTypes = true>

let ctx = sql.GetDataContext()

let transactions (period : Period) (budget : Budget) =
query { 
    for transaction in ctx.Main.Transaction do
    where (transaction.Date <= period.End && transaction.Date >= period.End
            && transaction.Fk_BudgetId = budget.Id)
    select transaction
}
模块现金流数据
打开FSharp.Data.Sql
开放系统
开放系统
未结现金流
让[]resolutionPath=\uuuuu源文件\uuuu目录+“\packages\System.Data.SQLite.dll”;
let[]connectionString=“DataSource=“+\uuuuuu SOURCE\u DIRECTORY\uuuuu+@”\ CashFlowDb.sqlite3;Version=3”
键入private sql=SqlDataProvider<
ConnectionString=ConnectionString,
DatabaseVendor=Common.DatabaseProviderTypes.SQLITE,
SQLiteLibrary=Common.SQLiteLibrary.SystemDataSQLite,
ResolutionPath=ResolutionPath,
UseOptionTypes=true>
设ctx=sql.GetDataContext()
let交易记录(期间:期间)(预算:预算)=
查询{
对于ctx.Main.transaction do中的事务
其中(transaction.Date=period.End
&&transaction.Fk_BudgetId=budget.Id)
选择事务
}