This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
How can i get all employees by from DB table typeof (Employee) (not by generic argument) ?
Now i can write:
List employeeList = unitOfWork.Query().ToList();
I want have ability to write something like following:
List objectList = unitOfWork.Query(typeof (Employee)).ToList();
List employeeList = objectList.Cast();
It is needed for Dependency injection and Inversion of Control (IoC).
|
|
|
please delete this post (formating problems) |
|