How can we insert or retrieve master's details from the below represented Detail
property using LiteDB (LiteDatabase) C#.net library?
class myEntityMaster{
public int ID {get;set;}
public string Name {get;set;}
public List<myEntityDetail> Detail {get;set;} // this is the variable I want to valorize
}
class myEntityDetail{
public int ID {get;set;}
public int MasterID {get;set;}
public string Description {get;set;}
}
Please note that I tried performing LiteDatabase.Insert()
of myEntityMaster
having Detail
property filled with items, however when I call any LiteDatabase.Find
function, the Detail
property will be empty.