public void AfterSetMultiColumnsCantSetSimpleColumn()
 {
     var mapping = new HbmMapKey();
     var mapper = new MapKeyMapper(mapping);
     mapper.Columns(cm => cm.Length(50), cm => cm.SqlType("VARCHAR(10)"));
     mapper.Executing(m => m.Column(cm => cm.Length(50))).Throws<ConfOrm.MappingException>();
 }
Пример #2
0
        public void AfterSetMultiColumnsCantSetSimpleColumn()
        {
            var mapping = new HbmMapKey();
            var mapper  = new MapKeyMapper(mapping);

            mapper.Columns(cm => cm.Length(50), cm => cm.SqlType("VARCHAR(10)"));
            mapper.Executing(m => m.Column(cm => cm.Length(50))).Throws <MappingException>();
        }