Problems with Transactions


Author
Message
choyt
choyt
StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)StrataFrame Novice (98 reputation)
Group: Forum Members
Posts: 78, Visits: 246

Hi Folks

I am using the following code:

MicroFour.StrataFrame.Business.BusinessLayer.TransactionBegin("", Data.IsolationLevel.ReadCommitted)

The documentation I have only shows one parameter for TransactionBegin but I assume that the first one is going to be the name from  Localization.MessageDataSourceKey in my Global.asax (in my case ""). It appears to be working but I'd hate for this to fail in production. Is this a correct assumption?

Thanks!


StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
The first parameter is the DataSourceKey that you specified when you created your data source (connection string).  So, if you did this:

DataBasics.DataSources.Add(new SqlDataSourceItem("MyDataSourceKey", "Server=localhost..."));

Then you would call this:

BusinessLayer.TransactionBegin("MyDataSourceKey", Data.IsolationLeve.ReadCommitted);

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search