Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey,

I have an MVC-application that is going to drag reports from some SQL-server tables. The one table that consists the largest amount of data has no primary key, since all columns can have NULL values. I've been using Entity framework 4.0 to run my stored procedures so far, and it's been working just fine. Is it possible to include this table that has no PK into the model in some way? Some way to go around this? I really don't want to use the ADO-objects to solve this problem.

Thanks in advance!
suunker
Posted

1 solution

Add a primary key to the table, there is no reason to not have one.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900