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