mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
Internal optimization
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user