Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple way to make one column populated
Message
 
 
To
All
General information
Forum:
C#
Category:
LINQ
Title:
Simple way to make one column populated
Miscellaneous
Thread ID:
01658602
Message ID:
01658602
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform