views:

9

answers:

0

Hi All,

I have the following simple LINQ query (SubSonic 3.0.0.4 and ActiveRecord T4 templates).

from item in PermissionsInRole.All() where item.RoleID == roleID select item

When I iterate through the elements in the list after executing the query, IsNew = true for all of them, so if I make a change to an item and call.Save() it tries to insert the item into the database instead of update it.

Any ideas? This is urgent so would appreciate it if someone could assist ASAP.

TIA - Mike