Database operations on objects

Looking for some thoughts on how to deal with inserting/updating to the database objects which contain other objects. i.e

public class Book { public string Title {get; set;} public List<Author> Authors; } 

I currently have a DAL which has an InsertBook() method. Should this method also handle inserting Authors if they don't exist, or should I make a call to an InsertAuthor() or something else?

by nathanashton via /r/csharp

Leave a Reply