Hi

I have follwing classes in my project

Sample,test, order .. following is the cascade relations...

 [HasMany(typeof(Test), Table = "Test", ColumnKey = "SID", Inverse =
true,
            Cascade = ManyRelationCascadeEnum.All,Lazy = true)]
[HasMany(Table = "Test", ColumnKey = "WID", Inverse = false,
            Cascade = ManyRelationCascadeEnum.SaveUpdate, Lazy =
true)]

when i write the following code

using (new transactionscop())
{
    order.Delete()
   sample.delete();

//Create new...sample  and order
ordernew.Create();
samplenew.Create()...
}

it always creates only row in sample table
if i try to create more test for a given sample.. it always misses row
of test for the first sample

any idea y it is happening so...

regards

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