Posts by Rebeca Abrantes • 61 points
1 post
-
6
votes2
answers1573
viewsA: How to access next and previous record with C# using Entity Framework
You can use the following: For item before ID 6: Context.NomeEntidades.where(c=>c.ID<6).OrderByDescending(c=>c.ID).firstOrDefault(); And to the next:…