enterprise-library

Installing Microsoft Enterprise Libraries and DatabaseFactory

对着背影说爱祢 提交于 2019-12-21 12:57:58
问题 I'm attempting to use the DatabaseFactory method from the Microsoft Enterprise Library. using Microsoft.Practices.EnterpriseLibrary.Data; The error I get is: The type or namespace 'Practices' does not exist in the namespace Microsoft I tried going to Microsoft's site to install the Enterprise Library, worked through the installation process and it still doesn't work. Did I install it to the wrong location? Any ideas? Edit: I followed Kev's directions and got everything working. Thanks for

Database Logging with Enterprise Library 5

廉价感情. 提交于 2019-12-21 05:26:14
问题 Anybody knows how to implement database exception logging using EL 5.0? Thanks! 回答1: You will need to run a script against the database so that it creates a specific table structure for you. Also, there will be a stored procedure that will be created that you will have to reference in the Trace Listener's configuration section. You should be able to find this script file here: C:\EntLib41Src\Blocks\Logging\Src\DatabaseTraceListener\Scripts folder. I know this is for version 4 of the library,

Does Fluent-NHibernate support mapping to procedures?

耗尽温柔 提交于 2019-12-20 19:39:02
问题 I've been wondering if it's possible to have Fluent-NHibernate communicate with stored procedures that already exist and assign mapping from the result set to my own domain objects. Also is Fluent-NHibernate able to directly execute procedures with no result set returned? Basically I've been considering the implications of using Fluent-NHibernate to replace a dated TypedDataSet model with a domain driven design that can return simple objects from the DAL. If Fluent-NHibernate cannot work with

Are you using the Microsoft Enterprise Library? [closed]

青春壹個敷衍的年華 提交于 2019-12-20 10:06:21
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . In my shop we currently develop what I would consider small to medium sized projects. We have been investigating the Enterprise

Advantages and disadvantages of using Enterprise Library

倖福魔咒の 提交于 2019-12-20 09:46:09
问题 Im just starting a project and since this project is personal I was wondering what are the advantages of using Enterprise Library? We use the version 2 for several projects in the office but im not quite sure (aside of the good practices) of the advantages of it, especially in the database component. Any advice? Thanks 回答1: For the database application block, the main advantage is that it makes it easier to produce database-agnostic code. The developer interacts mainly with generic Database

Invalid character in a Base-64 string for connection string

若如初见. 提交于 2019-12-20 05:44:15
问题 I have a Sql Server 2008 R2 connection string that looks like <add name="DBConnectionString" providerName="System.Data.SqlClient" connectionString="Data Source=AYZ;Initial Catalog=AYZ;User ID=AYZ;Password=AYZ;"/> When trying to create a new instance of SQLDatabase using EnterpriseLibrary.Data I get the above error. connString =ConnectionStrings.ConnectionStrings["DBConnectionString"]; Database objDB = new SqlDatabase(connString); connString has the following Data Source=AYZ;Initial Catalog

Enterprise Library Application Blocks OR Home Grown Framework?

自作多情 提交于 2019-12-19 10:27:12
问题 We are currently looking to adopt some type of "standard" developer framework and have looked into using the Enterprise Library. Would you recommend using these blocks as the foundation for software development, or should we do something home grown ? 回答1: Like all good answers to architecture and programming questions, the answer is "it depends". It depends on how unique your data access and object design needs are. It may also depend on how you plan on supporting your application in the long

Unity application block 2.0 - The given assembly name or codebase was invalid

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 19:05:19
问题 Interfaces (In the assembly named "Interfaces". In project :- Interfaces) namespace Interfaces { public interface IDoSomeWork1 { string DoSomeWork1(); } } namespace Interfaces { public interface IDoSomeWork2 { string DoSomeWork2(); } } Dependencies (In the assembly named "Entities". In project :- Entities) namespace Entities { public class ClassB : IDoSomeWork1 { public string DoSomeWork1() { return this.ToString(); } } } namespace Entities { public class ClassC : IDoSomeWork2 { public string

Open Microsoft.practices.EnterpriseLibrary database with just a connection string

梦想的初衷 提交于 2019-12-18 09:12:29
问题 I am using the Microsoft.Practices.EnterpriseLibrary Database tools and I'm having trouble creating a new database using just the connection string information. Ideally I would like to do the following: Database dbEngine = DatabaseFactory.CreateDatabase( "Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;"); Is it possible to create a database using just the connection string? If so, how can it be achieved? 回答1: You can also do Database mydb = new

Azure Autoscaling works locally but not when deployed

强颜欢笑 提交于 2019-12-17 20:01:57
问题 Problem I am trying to deploy a worker role which will autoscale a few target sites. I am able to run the autoscaler locally and it works (I installed the certificates on my machine). However, it won't autoscale once I deploy it to Azure as a cloud app. (However, the worker role is running because I can see my non-autoscaling processes working in the same worker role.) What I tried I have followed the Deploying the Autoscaling Application Block instructions. Added the "CN=Windows Azure Tools"