question

nimishgoel avatar image
nimishgoel asked

mapping the keyword(UserRole) in entity framework

In entity framework, database first approach, I have 3 tables [userrole], [role],[user]. In that when I am updating edmx file, then [userrole] is not coming in models classes.And [role] table is getting a relationship with [user] table (Which should not happen. It should have a relationship with [userRole]). I guess it is somehow because of [userroles], that is already a keyword in db. I add then all of of my tables individually one by one. First user, userRole, then [role]. I got [userrole] entity, but still relationship is not coming correctly. I am new to EF, Any help Please?
sql serversql server 2012sql server 2008 r2entity-framework
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.