You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Sandy Young <ho...@gmail.com> on 2007/10/24 10:38:49 UTC
how to fix lazyload bug?
When I use DataMapper-1.6.1 instead of DataMapper-1.5.1, I find the lazyload
function doesn't work.
If I replace DataMapper-1.6.1 with older DataMapper-1.5.1, it works.
I find this bug is reported as a bug in ibatis.net's Issue Tracker.
Is there anybody can fix it?
Thank you!
My code:
IRegDao dao = new RegDao();
Reg reg = dao.Find(1);
Console.WriteLine("Reg:");
Console.WriteLine("SeqId:{0}", reg.SeqId);
Console.WriteLine("SubjID:{0}\tName:{1}", reg.SubjID,
reg.Subj.Name);
///class Reg
public partial class Reg
{
#region Private Member
private int? _SubjID;
#endregion
#region Private Extend Member
private Subj _Subj;
#endregion
#region Constructor
public Reg()
{
}
#endregion
#region Public Properties
public int? SubjID
{
get {return _SubjID;}
set {_SubjID = value;}
}
#endregion
#region Public Extend Properties
public virtual Subj Subj
{
get { return _Subj; }
set { _Subj = value; }
}
#endregion
}