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, length and 
not create customsqltype

any solution? 

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to