LINQ in Action roller

Diffrent approach to the DeleteOnNull problem

Hi, Here is my scenario: I have 3 tables: Person, Agency and AgencyPerson to represent a m:m relationship. I populate a listbox with Person.AgencyPersons. Add a Agency to the collection using this code: Code Snippet AgencyPerson agencyPerson = new AgencyMemberNatPerson();agencyPerson.Agency = agency; agencyPerson.AgencyId = agency.Id; agencyPerson.PersonId = person.Id; agencyPerson.Person = person; to remove it, i simply remove it from the Person.AgencyPerson.Remove(...) Scenario: I add a agency, Read More...
Published Tuesday, July 29, 2008 5:34 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication