Questions tagged [database-first]
171 questions
0
votes
3 answers
Relationships not replicated in a model created using entity framework in visual studio 2010
I'm having problems with entity framework
The problem is pretty simple, I have a database in sql server 2008. When I import the tables for creating the edmx file in a visual studio 2010 project (using ADO.NET Entity Data Model), not all of…

Miguel
- 1
- 2
0
votes
1 answer
Modify Model structure without changing existing EF 4.x Generated Model in Database First Approach
I'm using ASP.NET MVC 3.0 Database First approach with EF 4.x. Models are generated with EF 4.x DBContext Generator. Now I want to change model structure but don't want to change existing model because if database is modified I have to generate…

Brij
- 6,086
- 9
- 41
- 69
-1
votes
1 answer
EF model not updated in azure?
I have set up a working asp.net mvc6 web-app in azure using an SQL database and EF (db-first). Everything worked fine untill I added some columns and tables to the database. After regenerating the model everything still works fine on my local…

Arne G
- 1
- 2
-1
votes
1 answer
EntityType 'UserLogins' has no key defined. Define the key for this EntityType
I'm trying to map my ASP.NET identity classes to my database tables but I get a ModelValidationException that says
"TestJam.UserLogins: : EntityType 'UserLogins' has no key defined. Define the key for this EntityType.
UserLogins: EntityType:…

Totati
- 1,489
- 12
- 23
-1
votes
1 answer
Using own employee table to manage users in mvc using roles and identity
I am currently new to ASP .Net MVC and I'm working on a project. I already created my database which has a Employees table (which will consist of the users of the system) where I would want to manage all employees. I know mvc comes with a built in…

Camaal
- 3
- 1
-1
votes
1 answer
ASP .NET Web API 2 Individual Accounts with MSSQL Not LocalDB
I'm using Web API 2 for mobile clients. Web API uses "Individual Accounts" for authenticate in my project. I created database with MSSQL on remote server and my API 's structe likes "Wep API 2 + MSSQL" (Database First). But "Individual Accounts"…

mypolat
- 197
- 1
- 1
- 8