Factory Pattern - Question with Auto-wire up -
I am using the generated sections of subsonic2 and want to add an abstract layer to test, I created a basic interface Is ...
Public Interface IController & lt; TCollection & gt; Where TCollection: Class {TCollection FetchAll (); TCollection FetchByID (object ID); TCollection FetchByQuery (query query); Remove boolean (object id); // Insert zero (TNTity unit); // zero updates (TNTity unit); }
Which is great, I created an "expanded" square folder, removed a square there and extended that class ...
Public partial class address controller: iCitroler & lt; Address Calling & gt; {}
There is no problem, yay. Then he killed me - 239 of these classes, and I'm not about hand-making, to do this, there should be a way for software to do this, and I'm lazy, so I saw a factory pattern IC Controller & lt; TCollection> How do I take it? I think a better question is how do I get reflection to take my class and tell me to use a certain interface?
Comments
Post a Comment