igor-tkachev / bltoolkit

Business Logic Toolkit for .NET
MIT License
297 stars 113 forks source link

MapValue on Boolean not working! #359

Closed Neon4eg closed 9 years ago

Neon4eg commented 9 years ago

Such mapping:

[MapField("REF_TYPE")] [MapValue(true, 10)] [MapValue(false, 20)] public bool IsProduced { get; set; }

after insert allways results true = 1, false = 0. MapValue attribute is ignored. Database is Oracle, column type is number

В принципе можно по-русски. Атрибут MapValue полностью игнорируется