New Posts New Posts RSS Feed: Concurrency Complex Type
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Concurrency Complex Type

 Post Reply Post Reply
Author
smi-mark View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 24-Feb-2009
Location: Dallas, Texas
Posts: 343
Post Options Post Options   Quote smi-mark Quote  Post ReplyReply Direct Link To This Post Topic: Concurrency Complex Type
    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?
Back to Top
smi-mark View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 24-Feb-2009
Location: Dallas, Texas
Posts: 343
Post Options Post Options   Quote smi-mark Quote  Post ReplyReply Direct Link To This Post Posted: 26-Jan-2012 at 1:10pm
For now I'm just handling this in my save interceptor and it is working fine.
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down