Re: [Firebird-net-provider] EntitiyFramework and Update

2016-10-26 Thread Геннадий Забула
FB.NET doesn't wait on locks, it returns immediately with exception.
All other known for me  are waiting on locks. That's the behavior you
observe.
You need to override creation of transaction. You should use
FbTransaction with TBP in which you specify waiting option and
timeout.

On 26 October 2016 at 12:27, Gerdus van Zyl  wrote:
> I suspect the default transaction option might not be the same in firebird
> and other databases.
> Try setting the IsolationLevel to SERIALIZABLE on the transaction.
>
> On Wed, Oct 26, 2016 at 10:19 AM, Jiří Činčura  wrote:
>>
>> There's really nothing EF related. You can try it with multiple console
>> windows with multiple transactions together. It's fundamental way how
>> transactions work.
>>
>> --
>> Mgr. Jiří Činčura
>> Independent IT Specialist
>>
>>
>>
>> --
>> The Command Line: Reinvented for Modern Developers
>> Did the resurgence of CLI tooling catch you by surprise?
>> Reconnect with the command line and become more productive.
>> Learn the new .NET and ASP.NET CLI. Get your free copy!
>> http://sdm.link/telerik
>> ___
>> Firebird-net-provider mailing list
>> Firebird-net-provider@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>
>
>
>
> --
> 
> Gerdus van Zyl
> www.infireal.com
>
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] EntitiyFramework and Update

2016-10-26 Thread Gerdus van Zyl
I suspect the default transaction option might not be the same in firebird
and other databases.
Try setting the IsolationLevel to SERIALIZABLE on the transaction.

On Wed, Oct 26, 2016 at 10:19 AM, Jiří Činčura  wrote:

> There's really nothing EF related. You can try it with multiple console
> windows with multiple transactions together. It's fundamental way how
> transactions work.
>
> --
> Mgr. Jiří Činčura
> Independent IT Specialist
>
>
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>



-- 

Gerdus van Zyl
www.infireal.com
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] EntitiyFramework and Update

2016-10-26 Thread Jiří Činčura
There's really nothing EF related. You can try it with multiple console
windows with multiple transactions together. It's fundamental way how
transactions work.

-- 
Mgr. Jiří Činčura
Independent IT Specialist


--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] EntitiyFramework and Update

2016-10-26 Thread Roman Patutin
I added one more db connection into app. This time it was PostgreSql and 
Postgres worked with same behavior as MySql. I don't know is Postgres real db 
or not, but it allows to change different fields in one record for concurrent 
queries.

May be I just can't correctly describe the problem. Jiri, I put archive with 
source code into google drive 
https://drive.google.com/file/d/0B8UZY3a6pO3iTkRHZ1NIQVlrS3M/view?usp=sharing . 
Can you review my code, may be I just lost some specific configuration part or 
something similar. 

--
Roman Patutin

-Original Message-
From: Jiří Činčura [mailto:j...@cincura.net] 
Sent: Wednesday, October 26, 2016 7:37 AM
To: firebird-net-provider@lists.sourceforge.net
Subject: Re: [Firebird-net-provider] EntitiyFramework and Update

When the two transactions update same record *at the same time*, there's 
nothing you can do it. One will fail. You can minimize that keeping the 
transactions as short as possible. Comparing TX handling with MySQL is wrong; I 
guess you used MyISAM tables, where TXs are virtually non-existent. Try any 
other real DB and you'll get the same problem.

--
Mgr. Jiří Činčura
Independent IT Specialist





--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider