473,382 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Microsoft Enterprise Library

Is anyone using the Microsoft Enterprise Library? If yes, do you like it or
not?

Any feedback will be appreciated.

Nov 17 '05 #1
8 4069
I'm currently using the MEL Data Access Application Block and find it
very useful. It provides a conveniently abstracted API for common
ADO.NET tasks.

The other blocks, however, i have had trouble configuring and using.

I've also had trouble compiling the designer code with all the required
resources, so my Configuration Manager application throws exceptions
that don't let me access all the design features.

Nov 17 '05 #2

"poifull" <po*******@yahoo.com> wrote in message
news:gg*******************@tornado.texas.rr.com...
Is anyone using the Microsoft Enterprise Library? If yes, do you like it
or not?

Any feedback will be appreciated.


We use the Microsoft Enterprise Library extensively at our organization. We
have found that it really does help us develop our code faster than
previously (mainly because we didn't write a library ourselves that helps
with data access, logging, configuration management, et cetera). Basically,
the Microsoft Enterprise Library has taken giant leaps since the initial
release awhile ago (SQLHelper). There is something missing from the
Enterprise Library that we miss dearly though.

Before we could write our Update methods like the following short snippet:

Public Sub Update(ByVal Row As StrongTypedDataRow)
SqlHelper.ExecuteNonQueryTypedParams( _
ConnectionString, _
"MyUpdateStoredProcName", _
Row _
)
End Sub

But now, I have to do something like the following using the new Enterprise
Library:

Public Sub Update(ByVal Row As StrongTypedDataRow)
Dim db As Database = DatabaseFactory.CreateDatabase()
Dim cmd As DBCommandWrapper = _
db.GetStoredProcedureCommandWrapper("MyUpdateStore dProcName")

cmd.AddInParameter("@CustomerId", DbTypeEnumValueHere, Row.CustomerId)

If Not Row.IsCustomerNameNull
cmd.AddInParameter("@CustomerName", DbTypes.String,
Row.CustomerName)
Else
cmd.AddInParameter("@CustomerName", DbTypes.String, DBNull.Value)
End If

If Not Row.IsCustomerAddressNull
cmd.AddInParameter("@CustomerAddress", DbTypes.String,
Row.CustomerAddress")
Else
cmd.AddInParameter("@CustomerAddress", DbTypes.String, DBNull.Value)
End If

cmd.AddInParameter("@RowVersion", DbTypes.SomethingHere, DBNull.Value)

db.ExecuteNonQuery(cmd)
End Sub

Anywho, method names may be a bit off, but you get the picture :)

The new version of the Data Access Application Blocks makes you write more
code than the old version.

Mythran
End Sub

Nov 17 '05 #3
If you really want to cut down on code for accessing a database you should
use the XmlSerializer object.

Check out what I did using XmlSerializer.
http://www.gbg-development.com/development.aspx
"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:eq**************@TK2MSFTNGP14.phx.gbl...

"poifull" <po*******@yahoo.com> wrote in message
news:gg*******************@tornado.texas.rr.com...
Is anyone using the Microsoft Enterprise Library? If yes, do you like it
or not?

Any feedback will be appreciated.


We use the Microsoft Enterprise Library extensively at our organization.
We have found that it really does help us develop our code faster than
previously (mainly because we didn't write a library ourselves that helps
with data access, logging, configuration management, et cetera).
Basically, the Microsoft Enterprise Library has taken giant leaps since
the initial release awhile ago (SQLHelper). There is something missing
from the Enterprise Library that we miss dearly though.

Before we could write our Update methods like the following short snippet:

Public Sub Update(ByVal Row As StrongTypedDataRow)
SqlHelper.ExecuteNonQueryTypedParams( _
ConnectionString, _
"MyUpdateStoredProcName", _
Row _
)
End Sub

But now, I have to do something like the following using the new
Enterprise Library:

Public Sub Update(ByVal Row As StrongTypedDataRow)
Dim db As Database = DatabaseFactory.CreateDatabase()
Dim cmd As DBCommandWrapper = _
db.GetStoredProcedureCommandWrapper("MyUpdateStore dProcName")

cmd.AddInParameter("@CustomerId", DbTypeEnumValueHere, Row.CustomerId)

If Not Row.IsCustomerNameNull
cmd.AddInParameter("@CustomerName", DbTypes.String,
Row.CustomerName)
Else
cmd.AddInParameter("@CustomerName", DbTypes.String, DBNull.Value)
End If

If Not Row.IsCustomerAddressNull
cmd.AddInParameter("@CustomerAddress", DbTypes.String,
Row.CustomerAddress")
Else
cmd.AddInParameter("@CustomerAddress", DbTypes.String,
DBNull.Value)
End If

cmd.AddInParameter("@RowVersion", DbTypes.SomethingHere, DBNull.Value)

db.ExecuteNonQuery(cmd)
End Sub

Anywho, method names may be a bit off, but you get the picture :)

The new version of the Data Access Application Blocks makes you write more
code than the old version.

Mythran
End Sub

Nov 17 '05 #4
I like the Data Access Block alone better.
It simplier than the Enterprise Library.

"poifull" <po*******@yahoo.com> wrote in message
news:gg*******************@tornado.texas.rr.com...
Is anyone using the Microsoft Enterprise Library? If yes, do you like it
or not?

Any feedback will be appreciated.

Nov 17 '05 #5
I do not like I spent about 2 weeks looking at it and I gave it a no go
at work. First I am not sold on web config base configurations I use
resx files to manage my build regions. It also just seems it is alot of
work to use. I ended up just writing my own Database library it took
less time then learning how to use Enterprise Application Blocks.
Really there is very little power in what they give you no more then
any developer worth his salt could write. I prefer NANT for building
and configuring applications and LOG4NET over they application blocks.
It is far more flexible I think.

Dont get me wrong I am happy that people are writing these things but I
think it is alot of over kill for most applications that I have delt
with.

Nov 17 '05 #6
there is a large learning curve but it pays off fairly well for very large
applications where the client absolutely demands configuration driven
products. I think the benefit (having worked with it) is that it allows
developers to build sophisticated apps that are extremely loosely coupled.
The trade offs are obvious but the gains may not be.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
<pi****@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I do not like I spent about 2 weeks looking at it and I gave it a no go
at work. First I am not sold on web config base configurations I use
resx files to manage my build regions. It also just seems it is alot of
work to use. I ended up just writing my own Database library it took
less time then learning how to use Enterprise Application Blocks.
Really there is very little power in what they give you no more then
any developer worth his salt could write. I prefer NANT for building
and configuring applications and LOG4NET over they application blocks.
It is far more flexible I think.

Dont get me wrong I am happy that people are writing these things but I
think it is alot of over kill for most applications that I have delt
with.

Nov 17 '05 #7
Will we get Enterprise Library for VS .NET 2005?

"Alvin Bruney [MVP - ASP.NET]" <www.lulu.com/owc> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
there is a large learning curve but it pays off fairly well for very large
applications where the client absolutely demands configuration driven
products. I think the benefit (having worked with it) is that it allows
developers to build sophisticated apps that are extremely loosely coupled.
The trade offs are obvious but the gains may not be.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
<pi****@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I do not like I spent about 2 weeks looking at it and I gave it a no go
at work. First I am not sold on web config base configurations I use
resx files to manage my build regions. It also just seems it is alot of
work to use. I ended up just writing my own Database library it took
less time then learning how to use Enterprise Application Blocks.
Really there is very little power in what they give you no more then
any developer worth his salt could write. I prefer NANT for building
and configuring applications and LOG4NET over they application blocks.
It is far more flexible I think.

Dont get me wrong I am happy that people are writing these things but I
think it is alot of over kill for most applications that I have delt
with.


Nov 17 '05 #8
I agree. I have been using the configuration and exception blocks and they
work great. I do have a question thought with portability with VS 2005 / and
or .net 2.0. Is there a enterprise library / application blocks for VS 2005 ?
I have various compiler errors with the 2005 beta version. Thanks for the
help.

"Alvin Bruney [MVP - ASP.NET]" wrote:
there is a large learning curve but it pays off fairly well for very large
applications where the client absolutely demands configuration driven
products. I think the benefit (having worked with it) is that it allows
developers to build sophisticated apps that are extremely loosely coupled.
The trade offs are obvious but the gains may not be.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
<pi****@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I do not like I spent about 2 weeks looking at it and I gave it a no go
at work. First I am not sold on web config base configurations I use
resx files to manage my build regions. It also just seems it is alot of
work to use. I ended up just writing my own Database library it took
less time then learning how to use Enterprise Application Blocks.
Really there is very little power in what they give you no more then
any developer worth his salt could write. I prefer NANT for building
and configuring applications and LOG4NET over they application blocks.
It is far more flexible I think.

Dont get me wrong I am happy that people are writing these things but I
think it is alot of over kill for most applications that I have delt
with.


Nov 17 '05 #9

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

Similar topics

6
by: Mukesh | last post by:
Hi I have Microsoft Enterprise Library 2005 installed on my local system. I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql Server 2000. I am developing a web application...
3
by: Mukesh | last post by:
Hi all As per my earlier conversation with Ciaran (thx for reply) I have installed the MS APplication block on the server , when i ran Build Enterprise Library file and Install Services from...
5
by: lds | last post by:
I am in the process of trying to migrate some of our existing .NET applications from version 1.1 to 2.0. In our 1.1 apps we have a common assembly that uses the sqlhelper.vb class from the...
4
by: Mukesh | last post by:
Hi I m using microsoft application blocks Enterprise Library june 2005 with .net framework 1.1 and VStudio2003 And C# as coding language Sql server 2000 database the project is running...
3
by: Mukesh | last post by:
Thx Sloan for the solution. It is working properly under Full trust When i tried it under Medium trust it was giving error Parser Error Message: Required permissions cannot be acquired....
3
by: Justin Kadima | last post by:
I'm considering porting one of my application in order to use the Microsoft enterprise library and I am contemplating the pros and cons of doing it. Are you guys using the library?
2
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...
1
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...
5
by: Michael Howes | last post by:
I'm upgrading a VS 2003/.Net 1.1 ASP.Net application to VS 2008/.Net 3.0 The application uses an older version of the Microsoft Data Blocks for database access. The version in the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.