I am wondering if it is possible to define a set of common properties in an ancestor class for my entities (the way EntityFramework lets you work):
I tried the following code but the ID column isn't generated (or used):
TBase = class
property ID: Integer read FID write FID;
TData = class(TBase)
property Name: String read FName write FName;
I will need to map a large number of entities from a legacy application where data is stored in fixed-sized records. All these entities shared a common record header and I would like to avoid having to copy the same fields in all entities.