I am using EF4 poco objects and I have changed my t4 template to add a partial method for every property. The partial method is called in the setter. When the objects are materalized the code in the setter gets ran and therefore my code gets ran. I do not want my code to get ran with the objects are being materialized. The way to do this in previous versions of EF was to check the entitystate to see if it was detached. Since I am using poco objects there is no entity state in the business logic layer. Any ideas what I can do to stop my code from getting called on object materialization?
Thanks