mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Update sqlite
This commit is contained in:
parent
4a035e63ca
commit
c5f6faa004
@ -289,7 +289,7 @@ namespace SqlSugar
|
||||
cacheKey = GetCacheKey(cacheKey);
|
||||
if (!isCache)
|
||||
{
|
||||
return GetColumnInfosByTableName(tableName);
|
||||
return GetColumnsByTableName(tableName);
|
||||
}
|
||||
return this.Context.Utilities.GetReflectionInoCacheInstance().GetOrCreate(cacheKey,
|
||||
() =>
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@ -13,6 +14,23 @@ namespace OrmTest
|
||||
if (Db.DbMaintenance.IsAnyTable("UnitCodeTest1", false))
|
||||
Db.DbMaintenance.DropTable("UnitCodeTest1");
|
||||
Db.CodeFirst.InitTables<UnitCodeTest1>();
|
||||
Db.CodeFirst.InitTables<TESTA1>();
|
||||
var xx = Db.DbMaintenance.GetColumnInfosByTableName("TESTA1", false);
|
||||
Db.DbMaintenance.AddColumn("TESTA1", new DbColumnInfo()
|
||||
{
|
||||
DbColumnName = "aaa" + new Random().Next(2, 99999),
|
||||
PropertyName = "aaa" + new Random().Next(2, 99999),
|
||||
TableName = "TESTA1",
|
||||
IsNullable = true,
|
||||
DataType = "varchar",
|
||||
Length = 11
|
||||
});
|
||||
// db.Utilities.RemoveCacheAll();
|
||||
var xxxxx = Db.DbMaintenance.GetColumnInfosByTableName("TESTA1", false);
|
||||
}
|
||||
public class TESTA1
|
||||
{
|
||||
public string X { get; set; }
|
||||
}
|
||||
public class UnitCodeTest1
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user