Print Page | Close Window

Concurrency Complex Type

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3236
Printed Date: 13-May-2026 at 11:29am


Topic: Concurrency Complex Type
Posted By: smi-mark
Subject: Concurrency Complex Type
Date Posted: 26-Jan-2012 at 12:25pm
I have a complex type called Audit which holds audit info such as last modified and who by, it also has a RowVersion Int32 property.

RowVersion is set to Concurrency Mode = Fixed and ConcurrencyStrategy = AutoIncrement however it doesn't seem to be incrementing.

I have also set Audit to be Fixed on my actual object, and it still doesn't seem to make a difference.

Any thoughts? Is this a known issue?



Replies:
Posted By: smi-mark
Date Posted: 26-Jan-2012 at 1:10pm
For now I'm just handling this in my save interceptor and it is working fine.


Posted By: DenisK
Date Posted: 26-Jan-2012 at 4:28pm
Hi Mark,

Yes this is a known issue as EF doesn't allow a concurrency property to be defined within a ComplexType.



Print Page | Close Window