enterprise-library

EnterpriseLibrary Data Access Application Block redirect Section can't find default database

倾然丶 夕夏残阳落幕 提交于 2019-12-06 16:41:44
How can I to get working the Data redirected section for EnterpriseLibrary Data Access Application Block? I would do like to have the definitions for databases removed from app.config and placed on a standalone database.config file. I try to do the same way I am doing with the logging.config and and exception.config files but I can't get it work. using Microsoft.Practices.EnterpriseLibrary.Common.Configuration; using Microsoft.Practices.EnterpriseLibrary.Data; using Microsoft.Practices.EnterpriseLibrary.Data.Sql; using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling; using Microsoft

General Questions about Entity Framework vs. Enterprise Library & a few others [closed]

[亡魂溺海] 提交于 2019-12-06 16:29:14
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Brief blurb, My skill in .net has been called "innovative" but I would prefer it be exemplary. Basically, I need a mentor. I own the domain name codeologist.com and I am going to live up to that name but in order to do so I need a mentor & community. On to the questions: Entity

MS Validation Block or Workflow Rules engine?

牧云@^-^@ 提交于 2019-12-06 15:52:12
问题 For a large application that will be developed, we are in the process of selecting a Validation framework. Although the Workflow Rules engine is not strictly a Validation framework, it can be used by itself without using the Workflow foundation. It appears to give flexibility of specifying the rules in a database that is used at runtime. However, it appears that you cannot specify rules in the code. If greater flexibility is one of the requirements (not necessarily that the rules need to be

How to Integrate Enterprise Library Validation Application Block ValidationResults between WCF and ASP.NET?

岁酱吖の 提交于 2019-12-06 12:43:39
Enterprise Library Validation Application Block (VAB) integrates with ASP.NET and also with WCF. Is there a way to integrate ValidationResults created in WCF with ASP.NET? e.g. an ASP.NET web page invokes a WCF service. The WCF service validates the data using VAB and returns validation information via a FaultContract. The ASP.NET page can take the results and display some error messages. However, a common approach is to indicate which fields have errors (e.g. inline message or asterisk). It seems that most of these approaches will involve being able to correlate the validation result with a

Enterprise Library Strong Naming Guidance Package

微笑、不失礼 提交于 2019-12-06 10:49:32
For the life of me I can not find the Enterprise Library Strong Naming Guidance Package download for Enterprise Library 4.1 I need this to sign the assemblies to add them to the GAC. Does anybody know where I can find it? I can't find it anywhere on the www.codeplex.com/entlib or www.codeplex.com/entlibcontrib websites. HELP! According to this , the shipped binaries are already strong named, so you should be good to go . EDIT: If you modified the source, use this guide . The guidance package was checked in to EntLibContrib: http://entlibcontrib.codeplex.com/SourceControl

Asp.Net MVC 2 Client validation implementation for Enterprise Library Validation Block

[亡魂溺海] 提交于 2019-12-06 10:14:33
I've found a very good article about how to use EntLib Validation Block for server validation in MVC 2. But as there pointed out The current design of EntLib’s Validation Application Block uses the Composite pattern; that is, when we ask for validation for an object, it returns back a single validator object that contains a list of all the validation work to be done. While this is very convenient from a normal usage scenario, the unfortunate side-effect is that we can’t “peek inside” to see what the individual validations are that it’s doing, and therefore can’t generate the appropriate client

Using Enterprise Library Exception Handling Application Block in ASP.NET - Code Review

佐手、 提交于 2019-12-06 09:53:34
问题 I'm implementing the Enterprise Library Exception Handling Application Block in an ASP.NET application that I am building. I'm planning to handle uncaught application exceptions by placing the following code in my Global.asax.cs: protected void Application_Error() { Exception error = Server.GetLastError(); Exception errorToThrow; if (ExceptionPolicy.HandleException(error, "Application Error", out errorToThrow)) { if (errorToThrow != null) throw errorToThrow; } else Server.ClearError(); } I

Should I make Enterprise Library Data Block Database object static?

你离开我真会死。 提交于 2019-12-06 08:10:50
Can anyone clarify if Enterprise Library's Database object can be made static without any thread-safety issues? Yes, an Database instance is thread-safe. It is just a big factory spitting out new objects like connections. The instance itself doesn't change state after it is created. When you look at the source code you can see this clearly. The objects it produces are of course not thread-safe. You can, but there's no significant reason to. Database instances are cheap to create and don't hold any state. No don't do it. I tried it and was sorry that I did. While it was thread safe it slowed

Programmatically access Enterprise Library Logging configuration (object model)?

拜拜、爱过 提交于 2019-12-06 06:39:21
问题 I'm using Enterprise Library 3.1 and want to programmatically access the Logging Block (runtime, object model) specifically its Trace Listeners and Sources. For example, I want to access the Filename property of a trace listener object so I can know where the log file is located on disk. Update: Looking for answers that use the runtime object model, not by parsing the XML configuration. 回答1: You can access the logging configuration programmatically using the object model (used for

Enterprise Library Database Trace Listener?

吃可爱长大的小学妹 提交于 2019-12-06 04:42:04
问题 I'm using EntLib v4 for Logging and currently I'm saving the events to the default text file listener. I would like to use MS SQL database as my event sink and I saw that the database listener is already provided, but I don't know how to create logging database and stored procedures? After googling around I saw that in v3 the database creation scripts were shipped with the EntLib, but I can't find them in v4. 回答1: I just checked and its in the installation for the source. On my machine its in