I guess I need to clarify.
this is not at all like our database but will do for this example:
--table person--
PersonID
PersonName
FKEmployerID
--table employer--
EmployerID
EmployerName
ok so I fetch an entity collection of type person and it returns 4 rows so
personCollection.Items.Count ==4
now I have this databound to a grid I created. when a new row is added to the grid, a new item is added to the personCollection
the problem comes in when I want to save the new row into the database. Honestly, Im not sure that llblgen was meant to accomodate what Im trying to do or not.
what I want to do is this:
bool recurse = true;
personCollection.Items.Add(new PersonEntity());
personCollection.Items[newRow].Employer.EmployerName = "some grid cell value";
DataAdapter.SaveEntityCollection(personCollection,recurse);
the problem is, that when I add a new item to the collection the related Employer entity inside of person is null and I can't instantiate it. Is there someway around this. If not, I can do it differently but I liked the feel of this.
thanks again.