mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-20 00:44:19 +08:00
Update create database
This commit is contained in:
parent
1d0c58681f
commit
a76036864c
@ -334,7 +334,13 @@ namespace SqlSugar.MongoDb
|
||||
string result = string.Format(this.AlterColumnToTableSql, tableName, columnName, dataType, dataSize, nullType, primaryKey, identity);
|
||||
return result;
|
||||
}
|
||||
|
||||
public override bool CreateDatabase(string databaseDirectory = null)
|
||||
{
|
||||
var newdb = this.Context.CopyNew();
|
||||
newdb.Open();
|
||||
newdb.Close();
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
///by current connection string
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user