I have the following stored procedure DB.GetData() that returns a result of type:
IEnumerable<GetData_Result>
From the DB.GetData(), how to get the Data Type of the IEnumerable, which in this case GetDataResult_Result, and then pass it as SomeType_Result as follow:
var model = new SomeViewModel() {
var names = typeof(SomeType_Result).GetProperties().Select(i => i.Name);
}