简体   繁体   中英

Extending contains LINQ method in NH 3

I have a problem with the integration of NH3 to my project I need to extend the LINQ provider for contains method. As a start point, i have followed this tutorial http://fabiomaulo.blogspot.com/2010/07/nhibernate-linq-provider-exten ... and succeed in the creation of the IsLike method.

My second step was to overload the contains method with a code like the IsLike. But this don't work !

I get an error specifying that a current key already exists.

Is there anything special to do to overload contains ?

Thank's by advance.

Some forms of Contains are already supported (String.Contains, for example). You are probably clashing with that one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM