コード例 #1
0
 /// <summary>
 /// Executes a nonquery sql statement and returns boolean if successful
 /// </summary>
 /// <param name="pgSqlFunction"></param>
 /// <returns></returns>
 public virtual async Task <int> ExecuteNonQuery(PgSqlFunction pgSqlFunction)
 {
     return(await ExecuteNonQuery(pgSqlFunction.Name, pgSqlFunction.Parameters.ToListOrNull()));
 }
コード例 #2
0
 /// <summary>
 /// Retrieves a list of objects of type T from the database
 /// Overload of GetDataList that has PgSqlFunction as a paramter instead of name
 /// and parameter list
 /// </summary>
 /// <param name="pgSqlFunction"></param>
 /// <returns></returns>
 public virtual async Task <List <T> > GetDataList <T>(PgSqlFunction pgSqlFunction)
     where T : class, new()
 {
     return(await GetDataList <T>(pgSqlFunction.Name, pgSqlFunction.Parameters.ToListOrNull(removeNulls: false)));
 }