Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Identity Field when Setting Entity to be "Is Database View" #275

Closed
dongjason opened this issue Mar 5, 2021 · 1 comment
Closed

Identity Field when Setting Entity to be "Is Database View" #275

dongjason opened this issue Mar 5, 2021 · 1 comment
Labels
bug Confirmed bug released Issue is resolved in a current release
Milestone

Comments

@dongjason
Copy link

Hi,

I got into an "interlocking" situation. I have an entity, it need to pull the data from a database view. I added the entity and set the entity's "Database\Is Database View" setting to True. The designer warned me "[Entity] can't be mapped to a Sql query since it has identity attribute(s) Id. Set their 'Is Identity' property to false first.". After I set the Id field's "Is Identity" to false, I get a validation error saying "[Entity] Class has no identity property in inheritance chain".

Seems either I have or not have an identity field, there is validation error for it?
View

Jason

@msawczyn msawczyn added the bug Confirmed bug label Mar 9, 2021
@msawczyn msawczyn added this to the 3.0.5 milestone Apr 30, 2021
@msawczyn msawczyn added pending release Issue is resolved in the current codebase, will be published with the next release released Issue is resolved in a current release and removed pending release Issue is resolved in the current codebase, will be published with the next release labels Apr 30, 2021
@msawczyn
Copy link
Owner

msawczyn commented May 6, 2021

3.0.5 released

@msawczyn msawczyn closed this as completed May 6, 2021
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Confirmed bug released Issue is resolved in a current release
Projects
None yet
Development

No branches or pull requests

2 participants