views:

286

answers:

3

Does MS have a sample enterprise application that demonstrates the use of different Enterprise library blocks (Logging, Dataaccess, Exception, Validation etc)?

I am looking for something that uses best practices in using and integrating all these blocks in a single application.

A: 

Have you tried this:Hands-On Labs for Enterprise Library 4.1

bechbd
Yes. I am looking for a sample enterprise app (something like StockTrader for WCF) that uses the Enterprise Library
DotnetDude
+1  A: 

I'm not aware of one grand, overarching sample application that shows everything about Enterprise Library.

In terms of fairly straight forward use of the blocks, I recommend installing the source code and taking a look at the Quickstarts that come along with Enterprise Library. It will show many common scenarios, how to use the block and how to set up the configuration. Some of the scenarios will have integration aspects (e.g. Exception Handling block using the Logging block).

Across most of the blocks, Enterprise Library is very flexible so that it can cover a wide variety of usage scenarios. Unfortunately, this also means that there are many ways you can use the blocks. e.g. when using the logging block you need to define your categories (what categories make sense for your application?), will you even use priority, etc. For many of these decisions there is no right or wrong or "best" answer. For many choices it could be personal preference or a specific requirement that needs to be addressed. For example, I rarely see a need for using the Exception Management Block but I can imagine scenarios where it would offer some value.

Tuzo
A: 

I came across this one recently - have you checked out Kigg on CodePlex, which uses the following:

  • ASP.NET MVC
  • Linq To SQL or Entity Framework
  • MS Patterns & Practices – Enterprise Library (Logging & Caching)
  • MS Patterns & Practices - Unity
  • jQuery
Paul