asp.net mvc 3 - Bridge table with no primary key -
asp.net mvc 3 - Bridge table with no primary key -
i have bridge table in database design , not have primary key. when seek utilize database first approach asp.net mvc 3 create model, creates model warning saying "the table/view 'crm_test_1.dbo.salesorderproduct' not have primary key defined , no valid primary key inferred. table/view has been excluded. utilize entity, need review schema, add together right keys, , uncomment it."
am doing wrong or there way create warning go away??
thanks.
you add together primary key (int, autonumber) if want suppress error message. need primary key. or create compound key of bridged ids, if makes sense in info model.
asp.net-mvc-3 entity-framework database-first ef-database-first
Comments
Post a Comment