I have an expression to evaluate as below
Restrictions.In (criteriaItem.PropertyName, criteriaItem.FilterValues);
Restrictions.Like (criteriaItem.PropertyName, criteriaItem.FilterValues);
I want Contains how to do this?
string.Contains will display like in sql, just with the addition of wildcards. Try:
Restrictions.Like(criteriaItem.PropertyName,"%" + criteriaItem.ContainsValue + "%");
Source: https://habr.com/ru/post/1745156/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1745151/a-good-program-for-designing-2d-textures-to-use-in-xna&usg=ALkJrhgFzEdKh_AhXo72ypG-IKJqKXWbwAvs10 intellisense for jQuery - javascriptPrevent CSS validation for only one line - cssWhat is the best way to access another CakePHP model in a controller? - cakephpIs there any way to make the linux CLI IO redirect permanent? - linuxLimitations of the Apple iTunes app - iosСоздание ehcache для чтения и записи для тестового кода и только для чтения для производственного кода - junitThe default arguments in the template are c ++Problem with Java RMI Proxy - javaUsing a4j: support for event sharing with h: selectOneMenu - jsfAll Articles