I tried the workaround for views and tables without success.
Message 1 The table/view 'Firebird.Firebird.EMPRESA' does not have a
primary
key defined. The key has been inferred and the definition was created as a
read-only table/view. C:\VStudio2010\Turnos .NET - Sebastian\Desarrollo
5-4
On Sat, Jun 4, 2011 at 19:02, Takeshi Kabuto wrote:
> "Warning 6 Error 6013: The table/view 'Firebird.Firebird.ORDERS' does
> not have a primary key defined and no valid primary key could be inferred.
> This table/view has been excluded. To use the entity, you will need to
> review your sche
I used:
COMMENT ON column Orders.ID IS
'#PK_GEN#'
Orders is a view. When I go to IbExpert application to examine the
view. I can see #PK_GEN# in the description column. It seems that
the view is ok according the specifications.
Then I go to VS2
On Sat, Jun 4, 2011 at 17:18, Takeshi Kabuto wrote:
> Am I doing something wrong or the reason is that #PK_GEN# workaround is
> not supported for views?
You're doing something wrong. It is supported on views.
--
Jiri {x2} Cincura (x2develop.com founder)
http://blog.cincura.net/ | http://www.ID3
Does #PK_GEN# technique work for views in the EF?
I have added '‘#PK_GEN#' as a comment of an integer column of a view.
This column is the primary key of the underlying table.
However, the EF does not infer the primary key.
Am I doing something wrong or the reason is that #PK_GEN# workaround is
n