mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-10 06:25:00 +03:00
Code optimization, function asynchrony
This commit is contained in:
@@ -64,21 +64,11 @@ namespace ServiceLib.Common
|
||||
return await _dbAsync.ExecuteAsync(sql);
|
||||
}
|
||||
|
||||
public List<T> Query<T>(string sql) where T : new()
|
||||
{
|
||||
return _db.Query<T>(sql);
|
||||
}
|
||||
|
||||
public async Task<List<T>> QueryAsync<T>(string sql) where T : new()
|
||||
{
|
||||
return await _dbAsync.QueryAsync<T>(sql);
|
||||
}
|
||||
|
||||
public TableQuery<T> Table<T>() where T : new()
|
||||
{
|
||||
return _db.Table<T>();
|
||||
}
|
||||
|
||||
public AsyncTableQuery<T> TableAsync<T>() where T : new()
|
||||
{
|
||||
return _dbAsync.Table<T>();
|
||||
|
||||
Reference in New Issue
Block a user