losing the order of list after saving change entity framework

morteza-icu

New Member
I'm using Entity Framework with asp.net 4.In my code I generate a \[code\]list<Question>\[/code\] that contain randomly sorted question from the database then I put it in an object Exam when I use \[code\]SaveChange()\[/code\] it insert the data in different order of the \[code\]list<Question>\[/code\]here are my class (entity)\[code\]public class Question{private int id ;private String Text;....}public class Exam{private int id;private Date dt;private List<Question> Ex;.... }\[/code\]
 
Back
Top