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.
Status:
Open Jul 09, 2008 - 08:00 AM
C#, Databases, NHibernate
2answers
Answers
Jul 19, 2008 - 06:13 PM
The property ID on the TechnoCardItem class is not defined.
Mar 04, 2009 - 06:09 AM
The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.
The Quomon Team
Answer this question
Share Your Own Experience & Expertise
We look to ensure that every question is answered by the best people with relevant expertise and experience, the best answers include multiple perspectives. Do you have relevant expertise or experience to contribute your answer to any of these commonly asked questions?
Add New Comment