asp.net mvc - A dependent property in a ReferentialConstraint is mapped to a store-generated column. Column: -
i having 2 table
[tblmaincheckpoint]( [id] [int] identity(1,1) not null, [checkpointname] [nchar](100) null, [checkpointdescription] [nchar](1000) null )
and
[dbo].[tblsubcheckpoint]( [subcheckpointid] [int] identity(1,1) not null, [maincheckpointid] [int] not null, [subcheckpointname] [nchar](500) null ) on [primary]
id maincheckpoint primary key , maincheckpointid foreign key in subcheckpoint table
whenever trying save subcheckpoint entity throws below error
"a dependent property in referentialconstraint mapped store-generated column. column: 'subcheckpointid'."
i dont want set subcheckpointid manually code made identity column in database throws error.
please me
Comments
Post a Comment