Internal optimization

This commit is contained in:
2881099
2022-05-25 13:46:33 +08:00
parent 27cb11e4a7
commit 71ba136e08
5 changed files with 65 additions and 2 deletions

View File

@ -172,6 +172,14 @@ namespace base_entity
public CommandTimeoutCascade(int timeout) => _asyncLocalTimeout.Value = timeout;
public void Dispose() => _asyncLocalTimeout.Value = 0;
}
class EnterpriseInfo
{
[Column(IsPrimary = true, DbType = "varchar(60)")]
public string id { get; set; }
[Column(DbType = "varchar(128)")]
public string img { get; set; }
}
static void Main(string[] args)
{
#region IFreeSql
@ -217,6 +225,8 @@ namespace base_entity
BaseEntity.Initialization(fsql, () => _asyncUow.Value);
#endregion
var sql122234 = fsql.CodeFirst.GetComparisonDDLStatements<EnterpriseInfo>();
if (fsql.Ado.DataType == DataType.PostgreSQL)
{
fsql.CodeFirst.IsNoneCommandParameter = false;