Fluent NHibernate Enum Property Siletly Breaks Schema Update
===

I am using Fluent NHibernate version 3.1 over Microsoft SQL Server 2005.
I have an entity with a property of an enumeration type. I have used the information from a very similar question [here in stackoverflow][1] to generalize the enum property mapping. 

What I am observing is that the schema is not completely executed - some of the tables are missing. More importantly, the ones that represent entities with enum proeprties are not present. 

This leads me to believe that the generated schema update statement fails on these tables. To further support this suspection, I have commented out the enum properties and excluded them from the mapping class - voila, the entity table is created. 

I am not sure what bothers me more - the fact that I am unable to create tables with enum properties, or the fact that schema update fails **absolutely** silently (no runtime errors). I receive an error for not existing table when I first attempt to query it rather than when the schema is executed. Perhaps the schema is applied on demand rather than when I call `schema.Update()`?

Here is the code I am using (it hardly differs from the question I have linked).

    [Flags,Serializeable]
    public enum MyEnum : short
    {
        A = 0, B = 1, C = 2, D = 4, E = 8, F = 16
    }

    public class MyEntity
    {
        public virtual int ID { get; set; }
        
        public MyEnum EnumValue { get; set; }
    }


    publoc class MyEntityMap : ClassMap
    {
        public MyEntityMap() 
        {
            Id(x => X.Id);
            Map(x => x.EnumValue);
        }
    }

The first query executed over the entity contains enum comparison in its where clause like `.Where(x => x.EnumValue == MyEnum.A)` - maybe this info will be useful to someone more familiar with HNibernate. It is possible that I may have missed something regarding the constructing of the create table statement, but I got the impression using `.CustomType<MyEnum>()`, or the `EnumConvention` class would be sufficient.

  [1]: http://stackoverflow.com/questions/1483044/mapping-enum-with-fluent-nhibernate