Questions tagged [enterprise-library-5]

Microsoft Enterprise Library is a collection of application blocks designed to assist developers with common enterprise development challenges.

Microsoft Enterprise Library is a collection of application blocks designed to assist developers with common enterprise development challenges. Application blocks are a type of guidance, provided as source code that can be used "as is," extended, or modified by developers for use in enterprise development projects.

This release of Enterprise Library includes the following new features and updates:

  • Major architectural refactoring that provides improved testability and maintainability through full support of the dependency injection style of development
  • Dependency injection container independence (Unity ships with Enterprise Library, but you can replace it with a container of your choice)
  • Programmatic configuration support, including a fluent configuration interface and an XSD schema to enable IntelliSense
  • Redesign of the configuration tool to provide:
    • A more usable and intuitive look and feel
    • Extensibility improvements through meta-data driven configuration visualizations that replace the requirement to write design time code
    • A wizard framework that can help to simplify complex configuration tasks
  • Data accessors for more intuitive processing of data query results
  • Asynchronous data access support
  • Honoring validation attributes between Validation Application Block and DataAnnotations
  • Integration with Windows Presentation Foundation (WPF) validation mechanisms
  • Support for complex configuration scenarios, including additive merge from multiple configuration sources and hierarchical merge
  • Optimized cache scavenging
  • Better performance when logging
  • A reduction of the number of assemblies
  • Support for the .NET 4.0 Framework and integration with Microsoft Visual Studio 2010
  • Improvements to Unity

Resources

152 questions
13
votes
6 answers

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

I am running into some problems while trying to get DAAB from Enterprise library 5.0 running. I have followed the steps as per the tutorial, but am getting errors... 1) Download / install enterprise library 2) Add references to the blocks I need…
11
votes
1 answer

When to use ExternallyControlledLifetimeManager?

I was going through different LifetimeManagers available in Unity and was wondering when will we use ExternallyControlledLifetimeManager? Can somebody give me an real life example? The MSDN doc says "A LifetimeManager that holds a weak reference to…
11
votes
1 answer

How to log in UTF-8 using EnterpriseLibrary.Logging

I am kind of stuck with my searches concerning EnterpriseLibrary.Logging. I have a listener and formatter set up like this:
DrCopyPaste
  • 4,023
  • 1
  • 22
  • 57
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
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

Unit test project fails to read application's App.config

On a build machine running Visual Studio Pro 2013 12.0.21005.1, I have a unit test project that fails to read its App.config file properly (if at all). The following returns null: System.Configuration.ConfigurationManager.GetSection(…
MiloDC
  • 2,373
  • 1
  • 16
  • 25
6
votes
3 answers

SynchronizationLockException + Logging

I just started with v5 of the enterprise lib and seem to encounter some strange issues. As usually I started with logging. I just added the required references and execute the following code: Logger.Write("test"); Nothing special so far. Checking…
Jaster
  • 8,255
  • 3
  • 34
  • 60
5
votes
2 answers

does enterprise library 5.0 cache mappings between datareader and custom classes for accessor methods

Wanted to know if the Accessor methods of Enterprise Library 5.0 cache the fields of datareader as well as custom classes for performance such that it does not look up field names on custom classes using reflections and does not look up field names…
Raj
  • 6,810
  • 6
  • 48
  • 56
5
votes
4 answers

Error in "loggingConfiguration" by EnterpriseLibrary.Logging

I have a WPF app using Enterprise Library.Logging 5, .NET Framework 4.0 Client Profile I used of logging by Database logic. Also add reference to 3 dlls to…
Ehsan
  • 3,431
  • 8
  • 50
  • 70
5
votes
2 answers

Difference Between Logger and LogWriter

I am using the Microsoft Enterprise Library 5.0 Logging block and I wanted to know the difference between the LogWriter and the Logger classes. I have a few custom trace listeners that I have built to be used in my logging and I wanted to know if…
4
votes
2 answers

Is Enterprise Library 5.0 backwards compatible with Enterprise Library 4.1?

Is Enterprise Library 5.0 backwards compatible with Enterprise Library 4.1? Can I just change the reference and have it work?
Matt
  • 25,943
  • 66
  • 198
  • 303
4
votes
1 answer

Aspect oriented programming and/or Enterprise Library 5.0 for Logging/Exception implementation?

I can implement both AOP (using Postsharp) and the EntLib (v5.0) for cross cutting concerns as logging and exception handling/strategies. I'm failing to see if one excludes the other or where they might complement each other. Can somebody please…
ReFocus
  • 1,511
  • 1
  • 18
  • 24
4
votes
2 answers

Enterprise Library Migration - You must configure the container to supply this value

I don't know who else to ask for help. Here in my company we are migrating the system. 2.0 to 3.5 net We use enterprise library 3.1 and we are migrating to 5.0 I used the tool for configuration file The compilation was ok but when I run, i receive…
Gustavo Melo
  • 199
  • 5
  • 11
3
votes
2 answers

Enterprise Library 5 Logging Block: How to write to event viewer?

I'm using Logging Application Block from Enterprise Library 5 trying to log into flat file and event log. My configuration looks like this: I'm using this code to write to logs: Logger.Write("message", "General1"); Logger.Write("message",…
Pompair
  • 7,083
  • 11
  • 60
  • 69
3
votes
2 answers

How should I log the extra details in webexception, soap exception etc?

In enterprise library I wasn't getting enough detail put into my logs, so I started writing this handler to pull out of the exception specific properties and add them to the message…
1
2 3
10 11