Hi,
I am facing a strange issue. Here is description -
I have a Winform, database oriented application written in C# VS 4.0 [VS 2012]. I am using entity framework to communicate with SQL Server 2008 R2. In application i have several related entities. When i first time retrieve related entities the entities are fetched in decreasing order [un-desired way] of UID [Unique ID] of related entities. Now if i close the application and relaunch it, and then again try to access the same related entities, this time it comes in ascending order [Desired way] of UID. It is very strange to me. I debugged and found that while processing related entities, first time order of UID is in descending while on next time [after closing and reopening app] related entities are in ascending order of UID. It happens only once. The issue is reproducible if i backup the database and then restore the backedup DB. The issue again occurs only first time. Closing and again opening the app will not show the issue.
Could any one help me in this regard? Any help would be highly appreciable.
Let me know if more information is needed.
ITChamp