Okay guys here is the update. I ran into a whole bunch of errors. Not because of the instructions you gave, but mostly because I had kept different copies of the DLLs on my machine. It was kind of difficult keeping track of the APTC versions of the dlls. Additionally I had to locate all the cached copies of the DLLs and get rid of them.
I am going to post a blog about this issue to show everything that I did to resolve the problem. All in all THE PROBLEM IS RESOLVED!! I took BOTH routes suggested by Jon and David. Meaning, I implemented real classes, instead of allowing IOC to create my instances using Reflection. I also did end up making each of the 3(?) factory classes public. I may change that in the future, now that I know that I may not have had to do that. But I had issues with various versions of the dlls and so I had to take extreme measures to make this work. I will post a blog, and if there is a desperate soul out there reading this post (believe me I have been there), then you are free to contact me for the APTC version of the DLLs or for the actual code. Shoot an email to [email protected] or the one listed on this profile (if it is visible to you). On Jul 15, 10:29 am, "N!cky" <[email protected]> wrote: > Excellent David! That was clearer than Caribbean water :) > > Thank you soooo much. This will be a tremendous help! I will let you > and Jon know how it works out. Thanks again!! > > On Jul 15, 10:11 am, David Gould <[email protected]> wrote: > > > > I am trying to edit the ReflectionObjectFactory's Create(Type t) > > > method to somehow anticipate this error and deal with it accordingly, > > > but I don't fully know what the create method is trying to accomplish. > > > Basically, what this method does is, given an interface type e.g. > > typeof(IExpressionQualifier) as a parameter, it does > > > return new ExpressionQualifier(); > > > Except in the background it goes away, finds all the classes which > > implement IExpressionQualifier, and then instantiates one. > > > As Jonathan suggests, if you go to the top of files like > > ExpressionDispatcher.cs, replace the lines that look like: > > > ExpressionQualifier = ObjectFactory.Get<IExpressionQualifier>(); > > > with > > > ExpressionQualifier = new ExpressionQualifier>(); > > > and you'll be fine (although you may need to add using statements to > > find the relevant classes and hunt for them). > > > You'll need to do a search throughout the project for ObjectFactory.Get... > > > Thanks, > > > David. > > -- You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/dblinq?hl=en.
