Do you use MSSQL Identity for your PKs?

-Markus

2009/1/8 Mark Jensen <[email protected]>:
>
> BTW. when I Add a new Post the BlogID is zero when I persist this way
> Blog.Save();
>
> On Jan 8, 3:18 pm, "Markus Zywitza" <[email protected]> wrote:
>> 2009/1/8 Mark Jensen <[email protected]>:
>>
>> >        [HasMany(typeof(Post),
>> >            Table = "Posts",
>> >            ColumnKey = "BlogId",
>> >            Access = PropertyAccess.NosetterCamelcase,
>> >            RelationType = RelationType.Bag,
>> Inverse = true,
>> >            Cascade = ManyRelationCascadeEnum.SaveUpdate
>> >            )]
>> >        private IList<Post> PostList
>> >        {
>> >            get { return postlist; }
>> >        }
>>
>> -Markus
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to