Use the ExposeConfiguration() call when building sessionfactory.
Example below:
public static ISessionFactory
CreateSessionFactory(IDatabaseConfiguration configurationManager)
{
try
{
var connectionString = configurationManager.ConnectionString;
var
Follow up to my own post. It seems that sqlite supports IDENTITY type
of columns but they don't actually mean same thing as with sql server
meaning there is no auto increment happening. I tested this with
latest
sqlite and sqlite shell. With sqlite only the primary key supports
auto
incrementing.
I'm using SQLite in my unit tests and SQL Server 2008 as production
database. I have a requirement to genereate unique integer type of id
and I'm using the IDENTITY feature to do so:
this.Map(x =>
x.BatchId).Access.CamelCaseField().Not.Nullable().Generated.Always().CustomSqlType("int
IDENTITY(1,1)