0
Dans Subsonic 2.1, comment obtenir le type T à partir de Find?Dans Subsonic 2.1, comment trouver un objet fortement typé?
Animal criteria = new Animal();
IDataReader result = Animal.Find(criteria);
Je souhaite que le résultat soit de type Animal non IDataReader. Comment puis-je convertir IDataReader en Animal? J'espère qu'il existe une méthode SubSonic ou Framework pour faire cela pour moi.
Merci pour la grande réponse. Je travaille maintenant sur l'obtenir dans une bonne méthode d'extension: http://stackoverflow.com/questions/8154395/ –