开发者

Should an Entity Framework savepoint have a unique name?

开发者 https://www.devze.com 2022-12-07 20:47 出处:网络
Not r开发者_如何学编程eally a problem, but curiosity. Should a savepoint name in EF be unique? Since I thought each of the names refers to a transaction for each client.

Not r开发者_如何学编程eally a problem, but curiosity. Should a savepoint name in EF be unique? Since I thought each of the names refers to a transaction for each client.

using ShortId;

string uniqueID = ShortId.Generate();

transaction.CreateSavePoint($"Save_{uniqueID}");

I've searched for this case before but haven't found anything.

Should a savepoint be unique?

0

精彩评论

暂无评论...
验证码 换一张
取 消