473,785 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

2 Question about Enterprise Library 2.0

Well, I guess I did express myself very clearly.

I implemented the Ent Lib 2.0 data block against SQL database
successfully. The system now is a production system. But now we want to
migrate the database to MySQL. From mySQL website you can find
Connector/Net 1.0 and COnnector/ODBC, further more this link talks
aboout
http://dev.mysql.com/tech-resources/...x.html#ADO.NET
different approaches to connect to mySQL.
My question is which one should I use so that my coding change is
minimum. I guess if I use ODBC then what I need to change is the
connectionstrin g in my web.config file. But ODBC may not be the best
choice since it is slow? For Connector/Net1.0 I am not sure wether Ent
Lib 2.0 support it or not.
My second question is how can I encrypt the connectionstrin g in my
web.config file to protect user credential and at the same time the ENt
Lib 2.0 can use the decrypted connectionstrin g. (where should I decrypt
the connectionstrin g?)

Sorry for the confusing first post

Thanks again
-rockdale

Jan 9 '07 #1
1 1532

You want to avoid the ODBC if you can. It introduces more layers, something
affecting performance.

The big scoop with ODBC (circa late 1990's) was that it allowed a common
syntax between different vendors.
But, you paid the price for this generic-ness.

However, you have a bigger question.

Has someone extended the 2.0 Enterprise Library for use with MySql? I don't
know the answer to this.

http://www.aspfree.com/c/a/ASP.NET/C...ing-ASPNET-20/

a.. Database (the abstract class)
a.. SqlDatabase
a.. OracleDatabase
a.. GenericDatabase
You see, someone has created a "concrete" class for Sql Server, called
SqlDatabase.
Someone has created a concrete class for Oracle, called OracleDatabase

the question is... has someone out there in internet-land wrote one for
MySql.
as in, they wrote a concrete class (which works specifically with MySql)
which implements:
Microsoft.Pract ices.Enterprise Library.Data.Da tabase

Or can you use the GenericDatabase object?

I'm not a MySql person, so I don't know the answers.

Your post:
http://dev.mysql.com/tech-resources/...x.html#ADO.NET

This articles shows how to talk to MySql thru DotNet, this is not an
extension of the EnterpriseLibra ry (for MySql)

Try here
http://www.codeproject.com/useritems...th_Ent_Lib.asp

which I found by googling:
"Microsoft.Prac tices.Enterpris eLibrary.Data" MySql
"rockdale" <ro************ @gmail.comwrote in message
news:11******** *************@p 59g2000hsd.goog legroups.com...
Well, I guess I did express myself very clearly.

I implemented the Ent Lib 2.0 data block against SQL database
successfully. The system now is a production system. But now we want to
migrate the database to MySQL. From mySQL website you can find
Connector/Net 1.0 and COnnector/ODBC, further more this link talks
aboout
http://dev.mysql.com/tech-resources/...x.html#ADO.NET
different approaches to connect to mySQL.
My question is which one should I use so that my coding change is
minimum. I guess if I use ODBC then what I need to change is the
connectionstrin g in my web.config file. But ODBC may not be the best
choice since it is slow? For Connector/Net1.0 I am not sure wether Ent
Lib 2.0 support it or not.
My second question is how can I encrypt the connectionstrin g in my
web.config file to protect user credential and at the same time the ENt
Lib 2.0 can use the decrypted connectionstrin g. (where should I decrypt
the connectionstrin g?)

Sorry for the confusing first post

Thanks again
-rockdale

Jan 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2837
by: fdsl ysnh | last post by:
--- python-list-request@python.orgдµÀ: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, > visit > http://mail.python.org/mailman/listinfo/python-list > or, via email, send a message with subject or body > 'help' to
8
4091
by: poifull | last post by:
Is anyone using the Microsoft Enterprise Library? If yes, do you like it or not? Any feedback will be appreciated.
3
3964
by: veera sekhar kota | last post by:
hi, im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to implement DAAB in enterprise library. I said DAAB 2.0 having more performance(data accessing) compare to enterprise library DAAB. And we not using the features of DAAB in enterprise
0
1572
by: veera sekhar kota | last post by:
im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to implement DAAB in enterprise library. I said DAAB 2.0 having more performance(data accessing) compare to enterprise library DAAB. And we not using the features of DAAB in enterprise library.
0
1446
by: veera sekhar kota | last post by:
im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to implement DAAB in enterprise library. I said DAAB 2.0 having more performance(data accessing) compare to enterprise library DAAB. And we not using the features of DAAB in enterprise library.
2
2099
by: bjhogan | last post by:
Hi, I have built an c# asp.net application on my laptop, it uses the Enterprise Library blocks - Data Access Application Block, Configuration Application Block. I now want to deploy my application on a server. It does not have the Enterprise Library installed.
7
1905
by: galico | last post by:
Hi All, We are having a very strange problem with the above. We have designed an application in ASP.NET 2.0 that uses the enterprise library data application blocks amongst others. We seem to be maxing out the number of connections allowed to the sql server 7 server after running a few large queries through the application? There are less than 1000 rows of data in the database and we are at a loss as to how to fix this, does anyone have...
7
2722
by: rockdale | last post by:
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to integrate it into my asp.net application. As i am going to connect to mySQL database, I need to include the source code in my project so that I can debug better. But I all those examples I found are reference the compiled dll only. What are the steps to include the source code of Microsoft Enterprise Library into my project? I created a new dir and copy Microsoft...
2
1991
by: rockdale | last post by:
Hi, all I am using Enterprise Library for .NET Framework 2.0 - January 2006 to access my backend MS SQL database. As now we are consider migrate sql database to mySQL. What engine (ODBC or MySQL for .NET) should I use so that the code change wil be minimum? Also, as the enterprise lib using connectionstrings in web.config to access the database, is there a way to encrypt this connectionstring, do I need to change the Enterprise...
1
1567
by: GaryDean | last post by:
I now have installed (from the same install) Enterprise Library - January 2006 and Enterprise Library - June 2005. The install for these two was called Enterprise Library for .Net 2.0. (not Enterprise Library 2.0). I then discovered that there is an Enterprise Library 3.1 - May 2007. So I want to install that because it is the latest. The instructions, however, say that if I already have Enterprise Library 3.0 installed, I must...
0
10327
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10151
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.