c# - EF6: How can we remove an unused navigation properties? -
i using entity framework 6 in database first model microsoft sql 2008 server. on every table, there integer field called creationuserid. field part of foreign key table user primary key userid.
when schema generated database, navigation property creation user created every entity. also, make user entity having lot of navigation properties.
i remove navigation properties because not navigate them. when highlighted relation between 2 tables, user , bank pressed delete key, relation , navigation property on both table got removed got message:
error 3023: problem in mapping fragments starting @ line 1494: column bank.creationuserid in table bank must mapped: has no default value , not nullable.
i created scalar integer property called creationuserid on bank entity , mapped field creationuserid property creationuserid. got message:
error 3007: problem in mapping fragments starting @ lines 1504, 1701: column(s) [creationuserid] being mapped in both fragments different conceptual side properties.
what error means? heading toward wrong direction achieve goal?
thank you!
Comments
Post a Comment