Questions tagged [enterprise-library]

Microsoft Enterprise Library is a collection of application blocks and core infrastructure designed to assist developers with common enterprise development challenges such as logging, validation, data access, etc.

Microsoft Enterprise Library consists of a collection of application blocks and core infrastructure. All of these are reusable software components designed to assist developers with common enterprise development challenges. It also comes with a lot of guidance, including the Developer's Guide, MSDN documentation, Hands-on Labs, Videos and Demos.

Enterprise Library 6 contains the following:

  • Data Access Application Block
  • Exception Handling Application Block
  • Logging Application Block
  • Validation Application Block
  • Policy Injection Application Block
  • Unity Dependency Injection Container
  • Semantic Logging Application Block (SLAB)
  • Transient Fault Handling Application Block ("Topaz")

Sites

Books

enter image description here

1586 questions
8
votes
4 answers

DbType equivalent to SqlDbType.Bit

Does anyone know what is the DbType equivalent to SqlDbType.Bit? I am trying to convert param[0] = new SqlParameter("@Status", SqlDbType.Bit); param[0].Value = Status; to db.AddInParameter(dbCommand, "@Status", , Status); but I…
Aditi
  • 1,188
  • 2
  • 16
  • 44
8
votes
2 answers

How to get output parameter value from ExecuteNonQuery in enterprise library (c#)?

my stored procedure is : create Procedure spSetUser ( @Name NVarchar(50), @OrganicTitle NVarchar(30), @UserName NVarchar(20), @Password NVarchar(16), @Result Int Output ) As Begin Set @Result = -1 If Not Exists(Select…
Ali Ahmadi
  • 2,387
  • 4
  • 31
  • 48
7
votes
2 answers

The type Database cannot be constructed. You must configure the container to supply this value (EntLib 5 + ODP.NET)

I use ODP.NET and version 4.1 of the Enterprise Library, vs 2008. And all is OK. Now, migrate using ODP.NET Oracle.DataAccess 4.112.2.0 and version 5.0.414.0 of the Enterprise Library, vs 2010, .net 4.0. Oracle.DataAccess 4.112.2.0 EnterpriseLibrary…
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
7
votes
1 answer

Enterprise Library: Logging Block and Email

Does anyone have a tutorial link or an example on how to use the Logging block to send out error email? Jack
Jack
  • 9,843
  • 23
  • 78
  • 111
7
votes
2 answers

log4net vs MS Logging Application Block

I am trying to understand pros and cons of using log4netor enterprise library logging application block (LAB) for logging in application. I know one thing LAB is little difficult to use then log4net.
user65266
  • 217
  • 2
  • 5
  • 10
7
votes
3 answers

Enterprise Library pros and cons

I am developing a complex business application wherein there will be a data access layer. As of now we have two options - either to create our own custom data access layer or to use a Microsoft inbuilt library. I am looking for some basic reasons to…
Mukesh Kumar
  • 166
  • 2
  • 5
  • 13
7
votes
3 answers

Advice on replacing Enterprise Library Data Access Block by Entity Framework

A few year ago, we developed a large ASP.Net application (C# / .net 3.5) that had to be "Database Engine" non-dependent (meaning this application could either use SQL Server, Oracle, MySQL ... as DB engine). For that, we used Enterprise Library Data…
7
votes
2 answers

Obtaining LONG RAW Data (Bytes) from EnterpriseLibrary

I have problem to get image bytes data from oracle. reader("image") always returning 0 length. Is their any workaround? If i used oledb then its working but not working with Microsoft EnterpriseLibrary. using (IDataReader reader =…
shaair
  • 945
  • 12
  • 24
7
votes
2 answers

EventSource/Enterprise Library Logging caches deleted methods, (possibly in a instrumentationManifest!)

Short version If I change this ... EventSource(Name="BasicLogger") public class BasicLogger : EventSource { ... } to this ... EventSource(Name="HardymanDatabaseLog") public class BasicLogger : EventSource { ... } ... I still receive log messages,…
7
votes
3 answers

Microsoft Enterprise Library alternatives

Microsoft Enterprise Library has somewhat controversial feedback. Some developers like it, some say it is overengineered. Are there any alternatives to it? Both free and commercial.
Max
  • 19,654
  • 13
  • 84
  • 122
7
votes
1 answer

"Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Validation" exception

I am currently getting the following exception while trying to use the Enterprise Library Validation Application Block: An error occurred creating the configuration section handler for validation: Could not load file or assembly…
Chris
  • 219
  • 1
  • 4
  • 12
7
votes
1 answer

How to send email in HTML format with Microsoft Enterprise Library?

I know how to send mails using the Microsoft Enterprise Library 2.0 using a text formatter. But these emails are always in plain text. Is there any way with entlib 2.0 to send these mails in HTML format?
Hace
  • 1,421
  • 12
  • 17
7
votes
5 answers

New .NET 3.5 Project: Which DAL technology to use?

I am preparing a new Windows project and wonder what kind of DAL technology to use. Originally I was looking for something simpler to not spending too much time on building it. But I understand also that it has to be efficient and scalable in the…
Houman
  • 64,245
  • 87
  • 278
  • 460
7
votes
2 answers

How to implement graph data structure in java? Is there any existing library available?

I would like to implement a graph data structure in java to maintain a graph of objects. How should I achieve this? Is there a readily available library which could help?
Ankit Zalani
  • 3,068
  • 5
  • 27
  • 47
7
votes
2 answers

Purpose of Unity Application Block in Microsoft Enterprise Library?

Can someone explain to me what is the purpose of the Unity Application Block? I tried looking through the documentation but its all very abstract. What are some practical uses for the Unity block?
Dave
  • 1,910
  • 2
  • 21
  • 27