Android.Database.DatabaseUtils.CreateDbFromSqlStatements Method
Creates a db and populates it with the sql statements in sqlStatements.

Syntax

[Android.Runtime.Register("createDbFromSqlStatements", "(Landroid/content/Context;Ljava/lang/String;ILjava/lang/String;)V", "")]
public static void CreateDbFromSqlStatements (Android.Content.Context context, string dbName, int dbVersion, string sqlStatements)

Parameters

context
the context to use to create the db
dbName
the name of the db to create
dbVersion
the version to set on the db
sqlStatements
the statements to use to populate the db. This should be a single string of the form returned by sqlite3's .dump command (statements separated by semicolons)

Remarks

Creates a db and populates it with the sql statements in sqlStatements.

[Android Documentation]

Requirements

Namespace: Android.Database
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1