Search code examples
c#.netvisual-studio-2010asp.net-mvc-4telerik-open-access

Implementing an interface in partial generated class (OpenAccess, EntityFramework)


I have the following issue. Im using Telerik OpenAccess as my ORM (very similar to Entity Framework), so when I add a Entity to my model, for example "Client", the partial class Client is created (Client.generated.cs). Im trying to implement an interface (IEntity) so I created a new partial class Cilent which implements that interface, and the following error apears: "'Client' does not implement the interface 'IEntity'... bla bla bla." making reference to the generated class.

Any ideas how to solve this?

Thanks in advance.


Solution

  • I would suppose that one or more of the properties/methods defined in the IEntity interface are not implemented in the Client class. Double check that all interface members are implemented, check the casing too.

    If this doesn't help, please post code snippets in order to assist you further.