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开发者_StackOverflow中文版 a single application.
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.
Have you tried this:Hands-On Labs for Enterprise Library 4.1
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
精彩评论