mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
Sqlite support sql index
This commit is contained in:
parent
7194435de0
commit
1c4838167b
@ -189,7 +189,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return "alter table {0} rename to {1}";
|
return "CREATE {3} INDEX Index_{0}_{2} ON {0}({1})";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
throw new NotSupportedException();
|
return "SELECT count(*) FROM sqlite_master WHERE name = '{0}'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
protected override string AddDefaultValueSql
|
protected override string AddDefaultValueSql
|
||||||
@ -211,7 +211,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
throw new NotSupportedException();
|
return "SELECT count(*) FROM sqlite_master WHERE name = '{0}'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user