nhibernate disable unicode -


in our company using nhibernate our default mapper. write queries using nhibernate criteria - noticed parameters send unicode this:

exec sp_executesql n'select this_.id id23_0_, this_.nazwa nazwa23_0_, this_.opis opis23_0_, this_.typgrupy typgrupy23_0_, this_.czydystrybuowana czydystr5_23_0_, this_.czyaktywna czyaktywna23_0_ grupa this_ this_.nazwa @p0',n'@p0 nvarchar(50)',@p0=n'%something%' 

this not desired behavior. possible disable unicode in nhibernate queries? thanks

romek

i guess have match mapping files use ansi string instead of unicode whcih default value.

check this mapping table between database , nhibernate, , sections between 5.2.2 , 5.4 on nhibernate - basic o/r mapping, notice type attribute guess can explicit define ansistring in there.

hope help.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -