Hi
I'm new to DNN.
I have a class that is similar to this:
What is the correct way in DDN to set the UnitTasks property. This is a List<T> of objects. Should I just create a method myself that sets this property or is there a DNN method that would be more efficient.
Thanks
A
public class Unit:ContentItem{
public int UnitId {get;set;}
public String UnitName {get;set;}
public String UnitDescription {get;set;}
public List<Tasks> UnitTasks {get;set}
public override void Fill(System.Data.IDataReader dr)
{
base.FillInternal(dr);
UnitId=Null.SetNullInteger(dr["UnitId"]);
UnitId=Null.SetNulIString(dr["UnitName"]);
UnitId=Null.SetNullString(dr["UnitDescription"]);
}
public override int KeyId{
..............
}
}