If at all possible, use a standard Object / Relational Mapper (ORM) such as NHibernate, LINQ to SQL, or Entity Framework.
Typically, they have wizards that can generate an object model based on a database schema. By default, the default approach is to create a class for the table, which makes a lot of sense.
If your database is patented and you cannot work with standard ORM, I would recommend that you take one of them to understand how they model relational databases. This should quickly answer most of your questions in this regard.
source share