1

データベースのデータを更新したいのですが、要素の次の 2 つの「リスト」があります。

  1. データベースから返されるLinqクエリIQueryable<VM_CategoryLabel>(更新する必要があります)
  2. IList<VM_CategoryLabelExtra>(Web インターフェースからのリスト)

ここに私の2つのクラスがあります:

    public class VM_CategoryLabel
{
    public int Id { get; set; }
    public int Order { get; set; }
    public string Label { get; set; }
    public string Unit { get; set; }
    public bool Checked { get; set; }
}

public class VM_CategoryLabelExtra
{
    public int Id { get; set; }
    public int IdCat { get; set; }      
    public int Order { get; set; }
    public string Label { get; set; }
    public string Unit { get; set; }
    public bool Checked { get; set; }
}

とても基本的なようですが、エラーが発生し、Linq を使用して参加しようとしたり、 let を使用しようとして失敗しました。たぶん、私がやっている方法は完全に間違っていますか?

4

0 に答える 0