Create Table
Siminov Framework edited this page Jan 10, 2016
·
16 revisions
Database and its table creation is handled by Core itself. Table structure is defined using entity descriptor file.
Database class also provides API to create table programmatically:
public void createTable() throws DatabaseException;
Book book = new Book();
try {
book.createTable();
} catch(DatabaseException databaseException) {
//Log It
}
- (void)createTable;
Book *book = [[Book alloc] init];
@try {
[book createTable];
} @catch(SICDatabaseException *databaseException) {
//Log It
}
public void CreateTable();
Book book = new Book();
try
{
book.CreateTable();
}
catch(DatabaseException databaseException)
{
//Log It
}