[fluent-nhib] Re: Command Timeout

2011-11-24 Thread tparvi
Use the ExposeConfiguration() call when building sessionfactory. Example below: public static ISessionFactory CreateSessionFactory(IDatabaseConfiguration configurationManager) { try { var connectionString = configurationManager.ConnectionString; var

[fluent-nhib] Re: Mapping non primary key to IDENTITY type column for SQLite

2011-02-02 Thread tparvi
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.

[fluent-nhib] Mapping non primary key to IDENTITY type column for SQLite

2011-02-01 Thread tparvi
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)