entity framework - ASP.NET MVC Model First Many To Many -



entity framework - ASP.NET MVC Model First Many To Many -

i have problems working model first many many relationship. since created many-many relationship between town , author via interface builder created table townauthor keys towns_townid , authors_authorid want called townid , authorid, how alter that?

in code first utilize modelbuilder configuration in context have no thought how via model first...

you have alter names of these columns in entity designer ddl script (which generated edmx file , has modelname.edmx.sql name) before executing it.

-- creating table 'townauthor' create table [dbo].[townauthor] ( [townid] int not null, [authorid] int not null ); go

asp.net-mvc entity-framework many-to-many ef-model-first

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -