Description
Description
I can't insert a row in a Postgresql table.
Repro steps
- Create an entity
- Submit changes
Like this:
let ctx = sql.GetDataContext()
let row = ctx.Public.MetaData.Create()
row.Indicator <- int64 10101010
ctx.SubmitUpdates()
Expected behavior
I expect the framework to insert a row in the database.
Actual behavior
I get this error:
System.MissingMethodException: Method 'System.Transactions.TransactionScope..ctor' not found.
at FSharp.Data.Sql.Providers.PostgresqlProvider.FSharp-Data-Sql-Common-ISqlProvider-ProcessUpdates (System.Data.IDbConnection con, System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue] entities, FSharp.Data.Sql.Transactions.TransactionOptions transactionOptions) [0x0001e] in <595cce87de6dfdbfa745038387ce5c59>:0
at <StartupCode$FSharp-Data-SqlProvider>.$SqlRuntime.DataContext.f@1-44 (FSharp.Data.Sql.Runtime.SqlDataContext __, System.Data.IDbConnection con, Microsoft.FSharp.Core.Unit unitVar0) [0x00001] in <595cce87de6dfdbfa745038387ce5c59>:0
at FSharp.Data.Sql.Runtime.SqlDataContext.FSharp-Data-Sql-Common-ISqlDataContext-SubmitPendingChanges () [0x00024] in <595cce87de6dfdbfa745038387ce5c59>:0
Related information
- Used database: Postgresql
- Operating system: OS X Sierra
- SQLProvider 1.1.5, from nuget
- Mono with target framework: 4.6.1