**LLBLGen Pro version + buildnr: **v3.0 Final (Sept 8, 2010)
Post the template group + .NET version you're using: Adapter with .NET 4.0
Post the database type and version you're using: SQL Server 2008 R2
Previously I worked with v2.6 with the self servicing templates. I am now switching to v3 with the Adapter templates.
Since the adapter model is totally different than the selfservicing model that I was accustom to, I have been testing some code recently utilizing the SQL Profile to ensure that the transactions were working as I expected. The problem is that I can't seem to capture the transaction statements in the SQL Server Profiler.
Below is a snippet from a sample unit test:
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
adapter.StartTransaction(System.Data.IsolationLevel.ReadUncommitted, "test1");
var learner = (from l in new LinqMetaData(adapter).Learner
select l).First();
learner.LastName = "NewLastName";
adapter.SaveEntity(learner);
adapter.Rollback();
}
The profiler ONLY captured the SELECT and the UPDATE. I expected to see the Set Isolation level, Begin transaction and the _Rollback _statements. The data did not get committed (as expected because of the rollback) but I can't seem to figure out WHY I can't see the transaction statements in the profiler.
I use the same profiler on a SQL SERVER 2000 database that has SelfServicing v2.6 code running and I see the transaction statements under the SQL:BatchCompleted event:
SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;BEGIN TRANSACTION
go
...dowork...
COMMIT TRANSACTION
go
Has anyone else encountered this issue? Does the Adapter model in v3 manage transactions at a database level differently than SelfServicing did in v2.6?
As a side note, while writing this message I downloaded the latest LLBLGen version to first see if whatever my issue is above has been corrected. In doing so I think I encountered a bug regarding the .typeimports feature. Before installing the latest build for v3 I had a .typeimports file that described enumeration types that I was using the in my entities. This worked great (_I love not having to write my own typeconverters - awesome_). After updating to the new version I get warnings when I open the project that say that the "Type shortcut for "DockType" has been reverted to System.String because its original type "... my awesome type here ..." wasn't found among the loadable TypeConverters nor the imported enum types..." I didn't change anything else, just updated LLBLGen to the latest build. I double checked the project settings and it still has my path defined to the **AdditionalTypeConverterFolder** and my** .typeimports** file hasn't changed. Can you _also _help me with this problem? -- Scratch that... I remember I had to modify the .config file for .NET 4 support.