Row reordering in ASP .NET

Row reordering in ASP .NET

twilightazntwilightazn Posts: 5Questions: 2Answers: 0
edited March 2019 in Free community support

I'm trying to follow the editor datatables reorder server-side example but am stuck on one small piece for the preRemove. I'm not sure how to write:
$order = $editor->db()
->select( 'audiobooks', 'readingOrder', array('id' => $id) )
->fetch();
in ASP .NET MVC. I'm really just stuck on the 3rd parameter of the Select method. Any help would be appreciated. Thanks!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,480Questions: 1Answers: 10,467 Site admin
    Answer ✓
                        var order = e.Editor.Db()
                            .Select("audiobooks", new[] {"readingOrder"}, query => query.Where("id", e.Id))
                            .Fetch();
    

    The .NET download package contains all of the examples available on the Editor web-site, but with C# backend code.

    Allan

  • twilightazntwilightazn Posts: 5Questions: 2Answers: 0

    Ahh, I should've checked there. Thanks!

This discussion has been closed.