Entity Framework doesn't like 0..1 to * relationships.
        Posted  
        
            by Orion Adrian
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Orion Adrian
        
        
        
        Published on 2010-03-11T19:33:30Z
        Indexed on 
            2010/03/11
            19:39 UTC
        
        
        Read the original article
        Hit count: 363
        
I have a database framework where I have two tables. The first table has a single column that is an identity and primary key. The second table contains two columns. One is a nvarchar primary key and the other is a nullable foreign key to the first table.
On the default import of the database I get the following error:
Condition cannot be specified for Column member 'ForeignKeyId' because it is marked with a 'Computed' or 'Identity' StoreGeneratedPattern.
where ForeignKeyId is the second foreign key reference in the second table.
Is this just something the entity model doesn't do? Or am I missing something?
© Stack Overflow or respective owner