Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Constraint

 Post Reply Post Reply
Author
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2393
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Topic: Constraint
    Posted: 07 Jul 2014 at 1:28pm
The exporter doesn't handle check constraints. Actually, Aurelius doesn't have such feature, so there is nothing to export.
Back to Top
Araujo Carla View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 May 2014
Posts: 232
Post Options Post Options   Quote Araujo Carla Quote  Post ReplyReply Direct Link To This Post Posted: 07 Jul 2014 at 12:27pm
Hi,
  Generated script from data modeler for firebird:

   CREATE TABLE NewTable (
  Id INTEGER NOT NULL,
  Field1 BIGINT DEFAULT 0 NOT NULL
    CHECK (Field1=-1 or Field1=0 or Field1=1),
  CONSTRAINT PrimaryKey1 PRIMARY KEY (Id)
);

  Export to aurelius from data modeler:
  ...
  TNewTable = class;
  [Entity]
  [Table('NewTable')]
  [Id('FId', TIdGenerator.None)]
  TNewTable = class
  private
    [Column('Id', [TColumnProp.Required])]
    FId: integer;
    [Column('Field1', [TColumnProp.Required])]
    FField1: Int64;
  public
    property Id: integer read FId write FId;
    property Field1: Int64 read FField1 write FField1;
  end;
  ...

   Where is the "CHECK" code in aurelius ".pas" export?
Thanks
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down