I'm trying to use OraceArray / VArray with NHibernate.Fluent mapping.
Based on the http://blog.devart.com/nhibernate_and_oracle.html tutorial I was able to establish the connection to the db and use it with my existing mapping. Only a few mappings e.g.VArray where not working.
How to set my mapping class for NHibernat in order to work this out?
Currently my mapping for the VArray column looks like:
Code: Select all
Map(x => x.PropertyName).Column("COLUMN_NAME")
.CustomType<SomeTypeRepresentingTheList>()
.CustomSqlType("VARRAY_TYPE_IN_ORACLE");
Code: Select all
create or replace TYPE "VARRAY_TYPE_IN_ORACLE" AS VARRAY(10) OF NUMBER(9);
With best regards,
Stefan