Setting property of objects in datacontext

Posted by ryudice on Stack Overflow See other posts from Stack Overflow or by ryudice
Published on 2010-05-02T04:33:01Z Indexed on 2010/05/02 4:37 UTC
Read the original article Hit count: 306

Filed under:
|
|

Hi, all my entities have a common property which specifies the company they belong to, I would like to set this property in a method in my datacontext but I do not want to use the partial methods for each of the entity types that the datacontext provides, is there a method that receives any entity that is inserted throught the datacontext so that I can hook to it or override it and set the property using reflection? thanks.

© Stack Overflow or respective owner

Related posts about linq-to-sql

Related posts about c#