Skip to content
Siminov Framework edited this page Jan 10, 2016 · 16 revisions

Create Table

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:

Android API: Create Table

    public void createTable() throws DatabaseException;
Android Sample: Create Table
	
    Book book = new Book();
	
    try {
        book.createTable();
    } catch(DatabaseException databaseException) {
		//Log It
    }

iOS API: Create Table

    - (void)createTable;
iOS Sample: Create Table
	
    Book *book = [[Book alloc] init];
	
    @try {
        [book createTable];
    } @catch(SICDatabaseException *databaseException) {
		//Log It
    }

Windows API: Create Table

    public void CreateTable();
Windows Sample: Create Table
	
    Book book = new Book();
	
    try 
    {
        book.CreateTable();
    } 
    catch(DatabaseException databaseException) 
    {
		//Log It
    }