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
5
votes
1 answer

Using abstract factory as injectionfactory in Unity?

I have an abstract factory registered for injection in some controller instances. Can I register that abstract factory and use it as an injection factory? This is what I have: public interface ILevelFactory { Levels…
5
votes
2 answers

Enterprise library logging + dynamic connection string

I am using the enterprise library logging and exception handling. Currently I am adding the connection string in the configuration file, and this means that it is static. My problem is that the user may connect to a different database each time…
Ghyath Serhal
  • 7,466
  • 6
  • 44
  • 60
5
votes
1 answer

Are some Enterprise Library Application Blocks becoming obsolete?

With the introduction of newer paradigms in ASP.Net, are some of the Application Blocks in Enterprise Library becoming obsolete? For example, look at following: ASP.Net Membership, Role & Profile provider as opposed to Security Application…
Kabeer
  • 4,138
  • 7
  • 40
  • 62
5
votes
1 answer

Why does unity return same instance if the type is registered against two different interfaces but with only one as ContainerControlledLifeTimeManager

I have two interfaces both implemented by class Apple interface a { } interface b { } class Apple: a,b { } Now if I register Apple against both the interfaces but only one is with ContainerControlledLifeTimeManager then resolving the other…
Muhammad Hasan Khan
  • 34,648
  • 16
  • 88
  • 131
5
votes
0 answers

Configuring Enterprise Library with .NET Core 2.1

I am in the process of migrating a solution from .NET framework 4.7.1 to .NET Core 2.1 and am having issues with Enterprise Library 6 (Using EnterpriseLibrary.Data.NetCore Nuget Package) I am attempting to create a database from connection string…
5
votes
0 answers

How to solve EnterpriseLibraryCoreExtension issue while upgrade enterprise library version 5.0 to 6.0?

I'm getting the EnterpriseLibraryCoreExtension is not defined error while upgrade Enterprise library version 5.0 to 6.0. Code: container.AddNewExtension(Of EnterpriseLibraryCoreExtension) When I Googled, I got the below solution. Could anyone…
5
votes
3 answers

Relative connection string to AzMan XML store when using security application block

Is it possible to specify a relative connection string for an AzMan XML store? My current connection string is connectionString="msxml://c:/azman.xml" but I really need to make that relative so other developers and automated builds can get the…
David Hall
  • 32,624
  • 10
  • 90
  • 127
5
votes
0 answers

Enterprise library 6.0 configuration editor for Visual studio 2017

For our new project(Using Visual Studio 2017 and .net Framework 4.6), a decision has been taken to use Enterprise Library 6.0 for Logging, Exception Handling and DB access. I have a lot of resources/materials available on Internet on how to use it.…
Thavudu
  • 235
  • 3
  • 13
5
votes
3 answers

Enterprise Library Validation Block - Validate nullable properties?

I am trying to come up with a validation for a nullable property, like int. Example [RangeValidator(0, RangeBoundaryType.Inclusive, 1, RangeBoundaryType.Inclusive)] int? Age { get; set; } However if I set Age to null validation fails because it…
Robert MacLean
  • 38,975
  • 25
  • 98
  • 152
5
votes
2 answers

Differences between MEF, EntLib and Prism

I have a relatively basic question but more than anything just need some clarity really, I have been using Prism (Composite Application Guidance) to create a WPF MVVM desktop application in C#, this bit I am all clear about (or so I thought) along…
jameschinnock
  • 767
  • 6
  • 14
5
votes
2 answers

Enterprise Library Logging Block not logging

I'm having an issue with the 3.1 version of the logging application block... With 3.5 framework my application works fine on my desktop... once it's deployed out to our qa box... the logging ceases to function. The web.config is identical in both…
user38734
  • 342
  • 6
  • 16
5
votes
5 answers

How to use enterprise library logging in a .NET custom action

I have some library code which is used from my application and is also used by a .NET custom action in a Visual Studio installer project. The library code in turn uses the Enterprise Library logging block to do its logging. How can I get…
jlew
  • 10,491
  • 1
  • 35
  • 58
5
votes
1 answer

Enterprise Library Validation Application Block and Internationalization

Scenario A .NET/WPF desktop application should be localized (or in MS terms globalized) to a different language than English. That is, the UI needs to be adopted completely (labels, icons, ...). Log file entries, audit trail entries, and other…
5
votes
2 answers

pattern for logging using enterprise library

on our current project we decide to use enterprise library for logging, upto now we used only log4net, but I can not find any advice how to really use the library in flexible way, what I mean is in log4net this would be the way: //define this in…
zebra
  • 1,330
  • 1
  • 13
  • 26
5
votes
1 answer

How do I make SqlBulkCopy work with MS Enterprise Library?

I've got some code which uses SqlBulkCopy. And now we're refactoring our code to use Enterprise Library database functions instead of standard ones. The question is how can I instantiate SqlBulkCopy? It accepts SqlConnection, and I only have…
HiveHicks
  • 2,294
  • 5
  • 28
  • 42