tag:blogger.com,1999:blog-8768186835369852617.post4522813598244737125..comments2024-03-29T00:15:27.045-07:00Comments on Life and Technology: Disassociate an Entity Record From Another Entity Record in Microsoft Dynamics CRM 2011 Using C# in SilverlightJamie Mileyhttp://www.blogger.com/profile/16109612970870135278noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8768186835369852617.post-66550627308034438572012-03-27T11:03:24.755-07:002012-03-27T11:03:24.755-07:00One thing I've come to do is create MyClass fi...One thing I've come to do is create MyClass first and then create a EFMyClass that inherits from MyClass. EFMyClass is the one I associate with EF.<br /><br />After fetching my entities I convert them to MyClass using a constructor in MyClass that has a EFMyClass parameter.<br /><br />public class MyClass<br />{<br /> public MyClass() { }<br /> public MyClass(EFMyClass efMyClass)<br /> {<br /> *copy members*<br /> }<br />}<br /><br />public class EFMyClass : MyClass<br />{<br /><br />}<br /><br />EFMyClass can then implement specific properties to match the database without influencing MyClass which is written to fit the application.Anonymoushttps://www.blogger.com/profile/18168123750839689207noreply@blogger.com