Hi!
I have an entity X, which I validate with a dependency injected validator.
The entity X is mapped to a table in my database.
In this entity I have a xml-field. This xml-field is serialized, deserialized to my custom entity Y.
The class structure could be the following:
class X
Id as integer
Data as string
MiscStuff as double
MyXmlField as string
end class
My custom entity Y which I serialize to the MyXMLField could be:
class Y
Id as integer
Type as string
OtherData as string
end class
So to my problem, I want to validate the Y entity as well as the X entity.
So how do I make my Y entity look like a llblgen database-mapped entity which can take advantage of for example the validation functionality in llblgen?
I know that I should call this in the constructor:
DependencyInjectionInfoProviderSingleton.PerformDependencyInjection(Me)
Is there a class I can inherit?
If I inherit CommonEntityBase there are alot of methods I have to override.
The optimal thing would be to create a CustomEntityBase class which I can inherit in my custom entities.
/Christian