Sorry,

I forgot the most basic thing.

Follows:

public IList<BE> GetList<BE>(BE businessEntity,bool ignoreCase,bool
enabledLike)
{
ICriteria criteria = Session.CreateCriteria(typeof(BE));
NHibernate.Criterion.Example example =
NHibernate.Criterion.Example.Create(businessEntity);

 if (ignoreCase == true)
  {
     example.IgnoreCase();
  }
 if (enableLike == true)
  {
     example.EnableLike();
  }

   criteria.Add(example);

   return criteria.List<BE>();
}


I was using MsOracleProvider and Oracle9Dialect, now i m using
Oracle9iDialect with the same provider.

Both with .NET Framework 2.0

Att,

Victor


On 23 set, 12:14, Fabio Maulo <[email protected]> wrote:
> Try this.Get a break and go to take a coffee.
>
> After 10 minutes come back to read your mail and try to understand the
> problem and give you a solution in the same way can do it somebody haven't
> seen your code.
>
> 2009/9/23 Victor Hugo <[email protected]>
>
>
>
> > I think i ve found a bug. After upgrading from 2.0 to 2.1, my pieces
> > of code with "Query By Example" dont work anymore.
>
> > The code compiles, but at runtime time, the collections dont bring
> > elements.
>
> > Anyone got this problem?
>
> > Att,
>
> > Victor
>
> --
> Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to