Thursday, March 22, 2007
Removing Collection Items by Primary Key
Boy, we've had tons of small improvements lately, quite a few of which are worth blogging about. Here is another one: It is now easily possible to remove items from a business entitie's sub item collection by its primary key. Here is an example:
Invoice.LineItems.RemoveByKey(guid);
This works with all key types (Guids, ints, strings).
Posted @ 4:34 PM by Egger, Markus (markus@code-magazine.com)
Post a Comment:
Comment Title (required):
Your Name (optional):
Your Email (optional):
Your Web Site (optional):
Your Comment (required):