Browsing the archives for the ado.net tag

Transaction exception while using ADO.NET entities

in .NET Development, Uncategorized

The following ADO.NET code will throw following exception “New transaction is not allowed because there are other threads running in the session.”: The exception occurs because the foreach loop opens an transaction to query the order entities. The transaction stays open until the end of the loop is reached. To avoid this exception, just use […]

0 Comments

Reopening model in ADO.NET entity designer impossible?

in .NET Development, Uncategorized

The designer of the ADO.NET entity framework seems to be in very early stadium. One of its known bugs is the reopening issue, which means, if the designer was once openend and closed, it isn’t possible to re-open the model again in the designer view. Double clicking the .edmx file will take no effect. One  […]

0 Comments

Deep Cloning/Copying of ADO.NET Entity Objects

in .NET Development, Uncategorized

This is my first post on urmanet.ch. Today I was experimenting with the ADO.NET Entity Framework and I was really surprised of the lack of support for cloning entity objects. After doing some research in the Internet I finally figured out that this feature might be added in the next release of .NET. However, this […]

6 Comments