Re: [Firebird-net-provider] Setting LockTables in FbTransactionOptions with string[] of Tables to Lock

2015-06-16 Thread Геннадий Забула
Use Linq^ string[] tables = LockTables = tables.ToDictionary(x=x, FbTransactionBehavior.LockRead | FbTransactionBehavior.Exclusive) But this will cause all table to have same FbTransactionBehavior. On Tue, Jun 16, 2015 at 7:50 AM, Jiří Činčura j...@cincura.net wrote: You can’t use

[Firebird-net-provider] Setting LockTables in FbTransactionOptions with string[] of Tables to Lock

2015-06-15 Thread LtColRDSChauhan
Hi, In the under mentioned code, how do I use string[] lockTables instead of lockTable1 and lockTable2 to set LockTables. tx = con.BeginTransaction( new FbTransactionOptions() { TransactionBehavior = FbTransactionBehavior.Consistency | FbTransactionBehavior.NoWait, LockTables

Re: [Firebird-net-provider] Setting LockTables in FbTransactionOptions with string[] of Tables to Lock

2015-06-15 Thread Jiří Činčura
You can’t use string[]. You need to specify the locking, hence the IDictionary. -- Mgr. Jiří Činčura Independent IT Specialist -- ___ Firebird-net-provider mailing list