public async Task <T> GetFirstAsync <T>(object conditions) { SetSimpleCRUD(); using (var conn = new SqlConnection(_connectionString)) { conn.Open(); var ret = await _simpleCRUD.GetFirstAsync <T>(conn, conditions); conn.Close(); return(ret); } }
public async Task <T> GetFirstAsync <T>(object conditions) { SetSimpleCRUD(); using (var conn = new SqlConnection(_connectionString)) { conn.Open(); var ret = await _simpleCRUD.GetFirstAsync <T>(conn, conditions); conn.Close(); return(ret); } }