Answer Question
What's wrong with mapping file.
I have next classes :
public class TechnoCardItem :
{
public virtual string Name
{
get;
set;
}
public virtual double Proporcion
{
get;
set;
}
public virtual double LowBound
{
get;
set;
}
public virtual double UpBound
{
get;
set;
}
public TechnoCardItem()
{
}
public TechnoCardItem(string element, double proporcion, double lowBound, double upBound)
{
this.Name = element;
this.Proporcion = proporcion;
this.LowBound = lowBound;
this.UpBound = upBound;
}
}
public class TechnoCardItemInput : TechnoCardItem
{
}
public class TechnoCardItemOutput : TechnoCardItem
{
}
public class TechnoCard
{
public string Name
{
get;
set;
}
public IList Input
{
get;
set;
}
public IList Output
{
get;
set;
}
public TechnoCard()
{
ConstructorInits();
}
public TechnoCard(string Name)
{
this.Name = Name;
ConstructorInits();
}
private void ConstructorInits()
{
Input = new List();
Output = new List();
}
}
and next mapping files for NHibernate :
The problem is when I create TechnoCard from dataBase, element Flag in database is not compered with "0" or "1" and every item goes to Input list.
TEXT
Uploading file and scanning for virus...
Please Wait