I need to create an entity with filtered results.
eg.
I have one table Student.
Through designer I am able to create student entity.
When I delete a student the requirement is to just change a field deleted=true instead of actual delete.
So the problem is whenever I try to access student it gives entire list including the deleted student.
So I have to add code as .where(c=> c.deleted=false) wherever the list is used.
So the requirement is to create an entity with a filter.
I tried to use view but it has its own problems. Like it need a primary key and is readonly, etc.
You could use conditional mappings: http://www.codeproject.com/Articles/94784/Using-Conditional-Mapping-in-Entity-Framework