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
teobostrom
NA
5
0
Looking for some advise
Jun 2 2004 1:49 PM
I´m pretty new to .NET. Im looking for some strategic advise on how to build simple, but smart data access components. Im currently developing a simple webform application with multiple items that should handle basic Add/Edit/Delete functionality. Please guide me in the right direction, I have looked at all ASP.NET Starter Kits :) I don´t feel that the right approach is to use a detailed class for almost every item. For example, lets say we need to manage Articles. The StarterKit approach would be. public class ArticleDetails { //encapsulate article logic } public class ArticleDB { //Lots off instanced method that in most cases could have been static methods } Is there anything wrong in using properties like: public class ArticleDB { private string _Article; public string Article { get{}; set{}; } public void Load() //Fill this class with proper data public void Save() //Save article to database public static SqlDataReader GetAllArticles() public static void DeleteArticle() } Hope you get my point, looking forward for some guidence! Best regards Teo
Reply
Answers (
0
)
ADO.NET
Why do I get a 0 value for my @@identity field?