adding an interface to my code generated classes e.f 4.1
Posted on 2012-03-17
I have created a load of classes from my .edmx using add code generation item.
I want my classes to implement an interface but to do this I have had to create a partial class.
public partial class Costume : IEntity,IDisposable
This would mean that for every class coming out of my model I would also need to create a partial class within my app.
Is this normal or is there a better way of doing things?
I'd appreciate a swfit reply on this so I don't go too far in the wrong direction.
Thanks in advance.
One other thing to note, I know I could amend the generated classes but then if I have to re-generate for some reason I would lose my changes....