- Fluent Nhibernate: How to change field mapping depending on the underlying database?
- public class CommonClassMap<T> : ClassMap<T> where T:Entity
- {
- public CommonClassMap()
- {
- if (SQLITE)
- {
- Version(n => n.Version);
- }
- else
- {
- Version(n => n.Version).CustomSqlType("timestamp").UnsavedValue("null").CustomType("BinaryBlob").
- Generated.Always();
- }