Re: Patch for QueryTranslator Invalid Cast to object array

Stefan Simroth <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nhibernate.devel
Message-ID <[email protected]>
@Ayende:

What do you expect me to do, looking at the following code?

   #region IResultTransformer Members

   public object TransformTuple(object[] tuple, string[] aliases)
   {
    object o = CriteriaUtil.RootEntity.TransformTuple(tuple, aliases);
    TrySetDomainModelStore(o);
    return o;
   }

   public IList TransformList(IList collection)
   {
    for (int i = 0; i < collection.Count; i++)
    {
     TrySetDomainModelStore(collection[i]);
    }
    return collection;
   }

   #endregion


TranformTuple is called rarely. TransformList is called after the 
HolderInstantiator call.

I never create a new MyEntity[] { my, domain, entities}, nor a new 
object[] { my, domain, entities} ...


@Fabio:

Sorry. Indeed, I could've done that first. Now, as we already started 
like this, I will do that, once this discussion is finished (and a bug 
report appears clearer).



Best regards,

Stefan

-- 
ifu Hamburg - material flows and software

ifu Institut fuer Umweltinformatik Hamburg GmbH
Grosse Bergstrasse 219, 22767 Hamburg, Germany
Managing Director: Jan Hedemann, Commercial Register: Hamburg, HRB 52629
www.ifu.com - www.umberto.de - www.sabento.com - www.e-sankey.com

>>> e!Sankey - software for easy drawing of Sankey diagrams.
>>> Visit http://www.e-sankey.com

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.