AsyncDatabaseConnectionInitTableAsyncT Method (IAsyncDatabaseConnection) |
Creates or migrate a table in the database for the given table mapping, creating indexes if needed.
Namespace: SQLitePCL.pretty.OrmAssembly: SQLitePCL.pretty.Orm (in SQLitePCL.pretty.Orm.dll) Version: 1.0.0.0 (1.0.0)
Syntax public static Task InitTableAsync<T>(
this IAsyncDatabaseConnection This
)
[<ExtensionAttribute>]
static member InitTableAsync :
This : IAsyncDatabaseConnection -> Task
Parameters
- This
- Type: SQLitePCL.prettyIAsyncDatabaseConnection
The database connection
Type Parameters
- T
- The mapped type.
Return Value
Type:
TaskA task that completes once the table is succesfully created and is ready for use.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAsyncDatabaseConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also