Sounds to me like you're thinking more in terms of your ERM and not your Domain Model. Since the Blog is the aggregate root, there can't be a Post object, without an existing and loaded Blog object.
Am 20.09.2009 um 17:32 schrieb SteamAnger <[email protected]>: > > Was this a difficult issue? Or am I just bad at explaining? :) > > On Sep 19, 7:18 pm, SteamAnger <[email protected]> wrote: >> See code below (from the AR tutorial) >> >> ---------------------------------------------- >> >> currentPost.Blog = parentBlog; >> currentPost.Title = titleText.Text; >> currentPost.Contents = contentsText.Text; >> currentPost.Category = categoryText.Text; >> currentPost.Created = createdDtTime.Value; >> currentPost.Published = publishedCheck.Checked; >> >> currentPost.Save(); >> >> ---------------------------------------------- >> >> In this code I must load the whole object parentBlog to save this >> post. But the only thing I need actually is the Id of the blog. >> >> Is it possible to avoid to load the whole blog object? >> >> Thanks in advance! > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
