Hi,
I am getting the Values from DataBase View Table using the EDM Query as
IList<EFModel.EntityModel.vwGetActiveEmployee> Type.
it is giving some Collection of Elements. From this collection, i am tring to filter the data based on One Column but is doesn't giving the filtered data even though the data is present based on condition
The Query is as like below.
For Getting Data form DataBase
// it is fetching some collection of data.
IList<EFModel.EntityModel.vwGetActiveEmployee> activeEmployeelist = TimeOffService.GetActiveEmployees();
Here i want to fileter the data based on Column IsManger(values 1 or 0)
For that i wrote like
IList<EFModel.EntityModel.vwGetActiveEmployee> managerlist = activeEmployeelist.Where(p => p.IsManager == 1).Select(p => p) as IList<EFModel.EntityModel.vwGetActiveEmployee>;
But here the Managerlist showing null values.
When i filter the data using below
var emplistVar = activeEmployeelist.Where(p => p.IsManager.Equals(1)).Select(p => p);
it showing the some collection of data with "var" type but if i give Class type it showing null.
What is the reason here, This data is taken from database View Data.
Thank you.
[edit]unnecessary Code blocks removed[/edit]