class impresorasMap : ClassMap<impresoras> 
    {
        public impresorasMap()
        {
            Table("impresoras");
            LazyLoad();     


            CompositeId()
                .KeyProperty(x => x.codigo)
                .KeyProperty(x => x.id);

            Map(x => x.codigo).Column("codigo").CustomSqlType("Int(4)").Not.
Nullable().Default("0");
            Map(x => x.id).Column("id").Length(15).Not.Nullable();

            Map(x => x.nombre).Column("nombre").Not.Nullable().Length(30).
Default("''");
            Map(x => x.impresiones).Column("impresiones").Not.Nullable().
CustomSqlType("Int(10)").Default("1");
        }
    }


Mapping is not respected for: codigo and id, not create default and length

any solution? 

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fluent-nhibernate+unsubscr...@googlegroups.com.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
Visit this group at http://groups.google.com/group/fluent-nhibernate.
For more options, visit https://groups.google.com/d/optout.

Reply via email to