public string EntityToUpdateSql <T>(T entity) where T : class { if (CurrentConnection != null) { return(CurrentConnection.EntityToUpdateSql(entity)); } else { using var connection = GetDbConnection(DataSourceEnum.MASTER); return(connection.EntityToUpdateSql(entity)); } }