是否有适用于Oracle的F#类型提供程序?
好的,针对Entity Framework上下文有一种类型提供程序,而且EF可以与Oracle一起使用。
#r "FSharp.Data.SqlProvider.dll" // only needed in .fsx script files
open FSharp.Data.Sql
type sql = SqlDataProvider<Common.DatabaseProviderTypes.ORACLE, connectionString, ResolutionPath = resolutionPath>
let ctx = sql.GetDataContext()
let customers = ctx.Customers |> Seq.toArray
ctx.Functions.UfnGetSalesOrderStatusText.Invoke(0uy)