Often I have a number of Entities that share some methods and properties mapped to database fields (state, error message ...):
I would like to assign to these a common interface in order to standardize the procedures that manages them.
I can not use inheritance because they already come from other classes and Vb.Net does not support multiple inheritance.
For this I thought to define an interface to implement in each of these, but I'm not able to map properties generated by LLBLGen.
The idea is this:
Public Interface ICommon
Property State as Integer
Property ErrorMessage as String
....
end Interface
Public Partial class AEntity
Inherits BEntity
Implements ICommon
Property State as Integer Implements ICommon.State
....
End Class
I Cannot implement in Partial Class this property because it's generated in another file by LLBLGen
Any suggestion on best practices to resolve this situation ?