ASP.MVC: Repository that reflects IQueryable but not Linq to SQL, DDD How To question
I want to create a DDD repository that returns IQueryable Entities that match the Linq to SQL underlying classes, minus any relations. I can easily return Entities minus the relations with a Linq select new {field, field, ... } projection. How do I code the Repository Entity class? How would I return an object from the repository having the repository class not the Linq to SQL class and still fill it with multiple entities from the Linq selection? How would I reference this returned class in my ViewModel? I am very new to this, thus the obvious mistakes. Am I missing the boat and should only