The object structure returns only one value, but the list size is correct

Entity structure returns only one value, but list size is correct

I have a table that does not have a primary identifier, and I need to get or select all the values ​​in it.

What I see, when I make a selection using linq, the number of objects is correct, but this is the first line again and again.

I'm just doing something like this

List<MyValueType> valuesInDB = myDb.MyValueTypes.ToList();

The problem is that I can get thousands of rows (this is correct), but all rows have the same exact data.

I am using VS 2010 and used the wizard to create my EF object.

+3
source share
2 answers

, . , , . , EF, .

, , , , (, ), " ". - , Identity. , EF . , ( ). , .

Identity - . - ORM.

.

+5

"" EDM designer.cs. , Entity Framework - .

- . , . :

  • , ID. Entity Framework , , , .
  • . ID. Entity Framework EDM. , . EDM.

, script .

0

All Articles