I tested it and it worked beautifully. So unless you post some code probably nobody will be able to help you.
First I defined a rule "OnlyTM":
Code:
@value IN ('T', 'M')
The I defined a type TestType: Data Type "char", Length "1", Rule "dbo.OnlyTM"
Finally I defined a column "Test" with type "TestType"
Here is the mapping property:
Code:
<property name="Test" column="Test" type="System.Char"/>
And here is the C# code
Code:
char m_Test = ' ';
public char Test
{
get { return m_Test; }
set { m_Test = value; }
}
Take care, Christoph