I have a strange problem:
There is an entity (Table) called "Filters" in my .edmx which has all my tables and stuff in it (to use it for LINQ queries)
I have created a class called "CustomFilters" which inherits "Filters". So now my cutom class has all the properties of the original "Filters" class (table) and 1 more additional property that i wanted which is a List of "CustomFilters":
List<CustomFilters> children = new List<CustomFilters>();
Now i get all my records into:
List<CustomFilters> theOriginalList = new List<CustomFilters>();
NOTE: first all records are tken into a List<Filters> and then these are added into List<CustomFilters> where List<CustomFilters> for children of that record is added, and then children of the child records, and so on......
so now, every record is an instance of CustomFilters which has a property named "children" which is a list again; and each child again has instanaces of "CustomFilters", and each instance again has children...and on and on and on.....
(basiacally its a data source for a treeview in my silverlight control)
every thing is good and working as expected.
View Complete Post