toModelBase method

SqfEntityModelBase toModelBase()

Convert defined constant model into SqfEntityModelBase

Implementation

SqfEntityModelBase toModelBase() {
  return ConvertedModel()
    ..databaseName = model.databaseName
    ..modelName = model.modelName
    ..databaseTables = toTables()
    ..sequences = toSequences()
    ..bundledDatabasePath = model.bundledDatabasePath
    ..preSaveAction = model.preSaveAction
    ..logFunction = model.logFunction
    ..init();
}