I have a table with a structure like this:
Column1 AS INT,
Column2 AS INT,
Column3 AS INT,
Column4 AS DECIMAL
My LINQ query is this:
var query = from t in context.Table select t;
I want to convert/transform the query to this Dictionary object:
Dictionary<int, Dictionary<int, Dictionary<int, decimal>>>
using only the ToDictionary method of the LINQ query. Can it be done?
Column1...Column4relate to yourDictionary<Employee, Dictionary<int, Dictionary<int, decimal>>>. Please explain what column you want to match with what part of the dictionary. And where doesEmployeecome in? - Kirk Woll