TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
moris caglis
NA
1
0
EnterpriseLibrary 2005 vs 2006... The difference is obvious
Aug 6 2006 8:33 AM
Hi all! I have to migrate code written from the EnterpriseLibrary 01/2005 to EnterpriseLibrary 01/2006 Here an example before/after...
2005 DataSet ds = SqlHelper.ExecuteDataset(ConString, CommandType.StoredProcedure, "MySPName", new SqlParameter("@ParamName", ParamValue);
2006 Database db = DatabaseFactory.CreateDatabase(); DbCommand dbCommand = db.GetSqlStringCommand("MySPName"); dbCommand.CommandType = CommandType.StoredProcedure; db.AddInParameter(dbCommand, "ParamName", DbType.String, ParamValue); DataSet ds = db.ExecuteDataSet(dbCommand);
5 lines instead of 1! Is it a better way or i need to make my own wrapper.
Thanks for help :)
Reply
Answers (
0
)
C# Delete database records without SQL text?
datarelation between more than 2 tables