Does anyone know if it is possible to use conditional logic to construct Fluent mappings? Specifically, I would like to take the following mapping:
public class MyFileMap : ClassMap<MyFile> { public WksFileMap() { Id(x => x.Id); Map(x => x.FileData) .CustomSqlTypeIs("varbinary(MAX)"); } } I would like to conditionally specify the custom sql type for the FileData property. When testing, I would like to use SqlLite; thus, I would need to use BLOB as the sql type since SqlLite does not support the varbinary(MAX) sql type. However, in production, I would like to keep the mapping above. Is there a way to do this in a clean way? I came across a blog where ActiveRecord is used, allowing you to plug into the initialization pipeline. However, I'm not using ActiveRecord. Is there some similar event model I can look into? Thanks for any insights! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---