StrataFrame Forum

Problems with Transactions

http://forum.strataframe.net/Topic5770.aspx

By choyt - 1/11/2007

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!

By StrataFrame Team - 1/11/2007

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);