Using LINQ to Update A Property in a List of Entities

前端 未结 5 1048
耶瑟儿~
耶瑟儿~ 2021-01-31 13:58

Say I have an entity that looks something like this simple example:

MyEntity 
{
   int property1;
   int property2;
   int property3;
}

Now ass

5条回答
  •  -上瘾入骨i
    2021-01-31 14:32

    If you have 100 properties maybe reflection would be most elegant. LINQ's for querying not updating.

提交回复
热议问题