New Posts New Posts RSS Feed: StoreGeneratedPattern = Computed in EDMX
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

StoreGeneratedPattern = Computed in EDMX

 Post Reply Post Reply
Author
cefernan View Drop Down
Groupie
Groupie


Joined: 13-Jul-2012
Posts: 70
Post Options Post Options   Quote cefernan Quote  Post ReplyReply Direct Link To This Post Topic: StoreGeneratedPattern = Computed in EDMX
    Posted: 24-Dec-2012 at 5:39am
Hello,

I use database first approach and I'm writing a test method to assert if a specific property has StoreGeneratedPattern set as Computed in my EDMX.
In the test method I have a DataEntityProperty in my hand and I realize that IsAutoIncrementing property is true when StoreGeneratedPattern = Computed, but IsAutoIncrementing is also true when StoreGeneratedPattern = Identity.

How can I check if the StoreGeneratedPattern is really Computed (not Identity) trough a DataEntityProperty object?

Regards.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 24-Dec-2012 at 12:44pm
We don't currently capture this in the DataEntityProperty.  We should be setting IsAutoIncrementing only for Identity properties, so if we're setting it for both Identity and Computed that sounds like a bug.   We can look at fixing this and making both Identity and Computed available on the DataEntityProperty, but for now I'm not sure what you can do as a workaround other than customizing code gen to grab the values from the EDMX.
Back to Top
cefernan View Drop Down
Groupie
Groupie


Joined: 13-Jul-2012
Posts: 70
Post Options Post Options   Quote cefernan Quote  Post ReplyReply Direct Link To This Post Posted: 26-Dec-2012 at 8:33am
Ok, if possible you can include Computed on DataEntityProperty and correct the bug. It will help a lot.

Thanks.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 27-Dec-2012 at 2:28pm
Will do.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down