I am current using LLBLGen version 3.0
i am trying to work with relations across two tables . The concerened tables are
Category and RelatedCategory. Category has a one to many relation with RelatedCategory.
I am using this code to deep save my CategoryEntity
CategoryEntity category;
if (_currentCategoryId == null)
{
category = new CategoryEntity();
}
else
{
category = new CategoryEntity((int) _currentCategoryId);
}
category.CategoryName = txtCategoryName.Text.Trim();
category.CategoryNotes = txtCategoryNote.RichText;
category.IsDeleted = radCheckBoxIsDeleted.Checked;
category.ParentCategoryId = _currentParentId;
category.RelatedCategories.DeleteMulti();
foreach (var i in RelatedCategoryId)
{
RelatedCategoryEntity relatedCategory = category.RelatedCategories.AddNew();
relatedCategory.CategoryId = i;
}
category.Save(true);
but unfortunately, the code above is not saving the RelatedCategoryInformation.
please see the attached database diagram !
Somebody,some help please!
Thanks and Regards
Gj