c# - Fluent NHibernate - How to create a unique index on Upper(column)? -


i'm working oracle 12.1 db.

i need column case insensitive. e.g. if may table contain 'name' column, , inserted row containing "test1" value, when trying insert "test1" fail.

the following sql command trick:

create unique index name_idx on mytable ( upper(name));

the question - how accomplish using fluentnhibernate (c#) ?

map(x => x.name).unique(); // create unique constraint, case sensitive...

also - i'd appreciate input performanece of such index thanks


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -