logo
Tags down

shadow

LINQ support in Enterprise Library Data Access Application Block


By : Shikha
Date : October 17 2020, 11:12 PM
I wish this help you I guess the answer is outdated, 5.0 version has support for linq. The following scenarios are supported:
Using a DataReader to retrieve multiple rows of data Using a DataSet to retrieve multiple rows of data Executing a command and retrieving the output parameters Executing a command and retrieving a single-value item Performing multiple operations within a transaction Updating a database with data contained in a DataSet object Retrieving XML data from a SQL Server database Querying the data returned using client-side techniques such as LINQ Performing asynchronous data access with a callback handler or Lambda expression
code :


Share : facebook icon twitter icon

using older Data Access Application Block alongside newer Enterprise Library


By : Ian Bullock
Date : March 29 2020, 07:55 AM
will be helpful for those in need EnterpriseLibrary is broken up into several different dlls, so you don't even need to reference the parts you don't want. Even if they are referenced, there's nothing at all preventing you from mix and matching.
If you do come across cases where you have multiple classes with the same name referenced in the same class, just explicitly name them (or via a using statement) to make sure you grab the right object type.

Problem when trying to configure enterprise library 5.0 (Data Access Application Block)


By : Achu
Date : March 29 2020, 07:55 AM
Any of those help The answer:
I had accidentaly referenced the assemblies from the src code folder. Which means the public tokens would have = null. I re-referenced to the assemblies in C:\Program Files\Microsoft Enterprise Library 5.0\Bin and the problem is now solved.

Is the Microsoft Enterprise Library Data Access Application Block thread safe?


By : jhlavac
Date : March 29 2020, 07:55 AM
it should still fix some issue Yes, instances of the Database class are thread-safe. However, objects created by it (such as SqlDataReader) are not.

Configuring Enterprise Library 5.0 Data Access Application Block


By : user2938863
Date : March 29 2020, 07:55 AM
To fix this issue Finally figured it out. I use the DAAB in a class-library of my webservice and thought I had to create an app.config in that library. Should have know that this could not work. My mind was probably far far away when doing this...
I did the configuration in the web.config of the webservice and all runs smoothly now.

How the connection is managed by data access application block in Enterprise library?


By : amrosd
Date : March 29 2020, 07:55 AM
Any of those help I'm afraid this is not really the place for detail, however there is a free ebook called "Developer's guide to Microsoft Enterprise Library 5" which has plenty of detail. If you need more you can also download and examine the code for the whole library.
The main advantage of enterprise library is that it's easy to use, and does a lot of things you would otherwise have to re-implement in your code. Enterprise Library is part of Patterns and practices section in MSDN and implements well thought out and reviewed methods of carrying out common tasks.
shadow
Privacy Policy - Terms - Contact Us © bighow.org