Print Page | Close Window

Constraint

Printed From: TMS Software
Category: Business Tools
Forum Name: Data Modeler
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=3963
Printed Date: 15 Nov 2019 at 4:29pm


Topic: Constraint
Posted By: Araujo Carla
Subject: Constraint
Date 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



Replies:
Posted By: Wagner R. Landgraf
Date 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.



Print Page | Close Window