Hi!
I was trying to create my own CharBooleanType, because I represent my True/False values using S/N (in portuguese, it means "Sim" and "Não").
The code is below:
Code:
using System;
using System.Collections.Generic;
using System.Text;
using NHibernate.Type;
using NHibernate.SqlTypes;
namespace MapeamentoOR.Types
{
public class SimNaoType : CharBooleanType
{
internal SimNaoType() : base(new AnsiStringFixedLengthSqlType(1))
{
}
protected override sealed string TrueString
{
get { return "S"; }
}
protected override sealed string FalseString
{
get { return "N"; }
}
public override string Name
{
get { return "SimNao"; }
}
}
}
When I try to build my solution, I get the following message:
Quote:
The type 'NHibernate.Type.CharBooleanType' has no constructors defined
It isn't possible to inherite the CharBooleanType?
Can you help me? :)
Thanks!