LLBLGen Pro Version 1.0.2005.1 Final,
Released on: February 20th, 2006
- LLBLGen Pro .NET 2.0 Dynamic Query Engine for SqlServer (7/2000/2005/MSDE): 1.0.20051.60111
- LLBLGen Pro .NET 2.0 ORM Support Classes Library: 1.0.20051.60216
I have a two-tab form:
first tab is an overview, bound to a TypedView.
The user can then click on a button to view, edit, add or delete an item from the list.
The second tab is a detail-tab, bound to an EntityCollection.
When the user wants to edit, view or delete an item, I get the item using:
IPredicateExpression filter = new PredicateExpression();
filter.Add(MyEntityFields.Id == id);
MyEntitycollection.GetMulti(filter);
When he wants to add an item, I just call:
MyEntity newItem = MyEntitycollection.AddNew();
//Set some hidden fields
newItem.SiteID = 1;
newItem.SetNewFieldValue(MyEntityFields.StreetId.FieldIndex, null);
...
As mentioned before, the showing of existing data works fine. It's just the new entity that isn't shown properly.