Hi,
I am reading the book Modern Software Devlopment With Delphi, and I am trying to use Aurelius with Interbase 2020.
There is this simple Entity:
[Entity]
[Automapping]
TCustomer = class
private
[Column('Address', [], 2000)]
FAddress: string;
FEmail: String;
FId: Integer;
[Column('Name', [TColumnProp.Unique])]
FName: String;
FContact: String;
function GetAddressExcel: String;
public
constructor Create;
property Id: Integer read FId write FId;
property Name: string read FName write FName;
property Contact: String read FContact write FContact;
property Address: string read FAddress write FAddress;
property Email: String read FEmail write FEmail;
property AddressExcel: String read GetAddressExcel;
end;
The error I get:
-- ERROR: ERROR: unsuccessful metadata update
Column: NAME not defined as NOT NULL - cannot be used in PRIMARY KEY/UNIQUE constraint definition
Should the TColumnProp.Unique attribute add the not null by default in case we use Interbase?
Martin