I'm using the repository pattern. I'm building up all my objects and I have come to the point where I have an object on a one-to-many relationship.
What im wondering is whether its better to do...
myAssocFile.BlogId = myBlogObject.BlogId;
repository.Add(myAssocFile);
or whether its better to do...
myBlogObject.Add(myAssocFile);
Hope someone can tell me whats better long term?