7
I am developing a Windows Form application, with Entity Framework 6 + Mysql.
As is common in systems, I have in each form navigation buttons (First Record, Previous Record, Next Record, Last Record)
The doubt: there is some defined syntax (LINQ or Lambda), which takes me directly to the previous or next EXISTING record?
Example: I have the form displaying the record ID = 6. If I click the previous button, I should display the record 5. Likewise, the next one is record 7. However, if record 7 does not exist, record 8 should be displayed.
I can easily solve with programming logic, but I would like to know if there is a native language way to solve this type of operation.
Thank you.
You will use this function right after you save the record, or you can "browse" through other actions before?
– Randrade
@Randrade, I will use to navigate between the options, for example go to the next record, and return.
– Erico Souza