Last post Sep 20, 2017 03:24 AM by Cathy Zou
Sep 19, 2017 01:56 PM|tapan2017|LINK
please show me small example of selectmany which guide me in which situation people use selectmany. thanks
Sep 20, 2017 03:24 AM|Cathy Zou|LINK
Select and SelectMany are projection operators. Select operator is used to select value from a collection and SelectMany operator is used to select values from a collection of collection i.e. nested collection.
Select many allows you to select a property from your query source that is an IEnumerable<T> collection, but instead of returning a collection of collections (IEnumerable<IEnumerable<T>>) it will flatten the collections into a single collection.
You could get full understanding by referring to following links: