Best way to implement “ReOrderable Collection” and Persist it to database

前端 未结 6 795
执笔经年
执笔经年 2021-01-03 12:12

My domain object :

public class MyDomainObject
{
    public Guid Id { get; set; }
    public string Name { get; set; }
    public int DisplayOrder { get; set         


        
6条回答
  •  误落风尘
    2021-01-03 12:32

    I know this is a old question, but the comments here and in another question helped me solve a similar issue and I wanted to provide my code in case it helps anyone else out looking for something similar. You can find my code at the following link:

    How to design table that can be re-sequenced?

提交回复
热议问题