Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple way to make one column populated
Message
 
 
À
Tous
Information générale
Forum:
C#
Catégorie:
LINQ
Titre:
Simple way to make one column populated
Divers
Thread ID:
01658602
Message ID:
01658602
Vues:
58
Hi everybody,

I have a model class with one extra not-mapped property. I want to return back my result with this property populated.

Here is one way I know of to make it happen:
searchViewModel.Result.List = searchViewModel.Result.List.
                Select(x=> new AdjustmentList {... }
            )
In the select I would need to list every column.

I am wondering what is the easier syntax? Should I go with foreach instead?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform