Search code examples
nhibernatetypesmultiple-databases

Different Datatypes in multiple databases using Fluent Nhibernate


I have an application which uses multiple database (Oracle, SQL Server , Informix) and need to mapping a class to different datatypes. For example:

COLUMN: DOCUMENTDATA

ORACLE    DATATYPE: BLOB
SQLSERVER DATATYPE: VARBINARY(MAX)
INFORMIX  DATATYPE: TEXT

How I do it in my classmap?


Solution

  • You do not need to put it in your mapping, just leave it.