CreateTable function is used to create a new table in a database.
This method may needs some privilege according to the database product and its version.
Tables are created according to the SchemaPrefix specified at connection's options.
(Exm. Name="table-name" , NameWithPrefix="[pfx]table-name").
Examples
Following section demonstrates creating a table.
using(var exc = cn.Executer())
{
// by table alias
var t0 = new Orders().AsQueryable();
exc.CreateTable(t0);
// by table type
exc.CreateTable<Orders>();
}
lYQxL5