I am new to the whole ASP and C# thing and have been experimenting by coding some very simple applications. An example of this is an extremly simple library application, it can function in 1 of the 2 follow ways:

The can be a Genre and a Book Model, each Genre contains many books, the Book has the GenreID as a foreign key. When a book is created it must be added to a specific Genre.


There is only a Book Model and each Book model contains a string that is the Genre of that book. When a Book is created the Genre is set in the Model, to enumerate all Genres all Books in the database must be checked and any Genre that is found is listed.

Both of these options have their pros and cons but which one is really best for a very simple application, Thanks for any help.

Related posts

Recent Viewed