Data Dictionaries: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
Jka (talk | contribs)
mNo edit summary
No edit summary
Line 1: Line 1:
DataDictionaries are about the most important thing in the DataFlex world. They provide a class layer between your application and the database tables.
'''Data Dictionaries''' are a class layer between your application and the database tables.  They are considered to be a vital part of any Dataflex development.


The [[Database Builder]] helps you defining the class with visual aid for:
The [[Database Builder]] tool helps you defining the class with visual aid for:
*Field settings like Capslock  
*Field settings like ''Capslock''
*Table settings like calculations on save or save/delete validations
*Table settings like calculations on save or save/delete validations
*Relationship settings like Cascade delete
*Relationship settings like [[Cascade Delete]].


== how to create a new data dictionary from scratch==
The Datadictionary class can also contain and business rules required when records are created, edited or deleted.


*open [[Database Builder]].
==How to create a new Data Dictionary from scratch==
*create a new table
 
*enter some columns (input name, type and width)
#Open [[Database Builder]].
*choose "Maintenance" and "create empty datadictionary"
#Create a new table
#Enter some columns (input name, type and width)
#Choose '''Maintenance''' and '''Create Empty DataDictionary'''.


NOTE: remember to enter a width for your column.
NOTE: remember to enter a width for your column.


== How to create relationships ==
==How to create Relationships==


*both tables should have an index.  
Before creating relationships, make sure that both tables should have an index.  
*use 'the relationship wizard' in the database builder.
*use 'the relationship wizard' in the database builder.


=Supported backends=
=Supported backends=


*native dataflex database
*Native Dataflex database
*[http://wiki.oracle.com/page/Database Oracle]
*[[Oracle]] [http://wiki.oracle.com/page/Database]
*[http://msdn2.microsoft.com/en-us/sql/default.aspx Microsoft SQL server]
*[[Microsoft SQL Server]] [http://msdn2.microsoft.com/en-us/sql/default.aspx]
*pervasive sql
*[[Pervasive]] [[SQL]]
*ODBC
*[[ODBC]]
*MySQL
*[[MySQL]]
 
[[Category:Stub]]
 
 


[[Category:Basics]]
[[Category:Basics]]

Revision as of 11:38, 25 November 2007

Data Dictionaries are a class layer between your application and the database tables. They are considered to be a vital part of any Dataflex development.

The Database Builder tool helps you defining the class with visual aid for:

  • Field settings like Capslock
  • Table settings like calculations on save or save/delete validations
  • Relationship settings like Cascade Delete.

The Datadictionary class can also contain and business rules required when records are created, edited or deleted.

How to create a new Data Dictionary from scratch

  1. Open Database Builder.
  2. Create a new table
  3. Enter some columns (input name, type and width)
  4. Choose Maintenance and Create Empty DataDictionary.

NOTE: remember to enter a width for your column.

How to create Relationships

Before creating relationships, make sure that both tables should have an index.

  • use 'the relationship wizard' in the database builder.

Supported backends