BaseSqlQueryRepository Class

Summary

Provides a method to execture sql queries against a database
graph BT Type-->Base0["Object"] Type-.->Interface0["ISqlQueryRepository"] click Interface0 "/api/Cake.SqlTools/ISqlQueryRepository" Type["BaseSqlQueryRepository"] class Type type-node Derived0["MySqlQueryRepository"]-->Type click Derived0 "/api/Cake.SqlTools/MySqlQueryRepository" Derived1["NpgsqlQueryRepository"]-->Type click Derived1 "/api/Cake.SqlTools/NpgsqlQueryRepository" Derived2["MsSqlQueryRepository"]-->Type click Derived2 "/api/Cake.SqlTools/MsSqlQueryRepository"

Syntax

public abstract class BaseSqlQueryRepository : ISqlQueryRepository

Constructors

Name Summary
BaseSqlQueryRepository(ICakeLog) Initializes a new instance of the BaseSqlQueryRepository class.

Methods

Name Value Summary
Execute(string, string) bool
Executes a sql query against a database
OpenConnection(string) IDbConnection
Opens a connection to the database

Extension Methods

Name Value Summary
Dump<BaseSqlQueryRepository>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<BaseSqlQueryRepository>(BaseSqlQueryRepository[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<BaseSqlQueryRepository>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<BaseSqlQueryRepository>(string) void
Requires the Cake.Issues addin
ThrowIfNull<BaseSqlQueryRepository>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<BaseSqlQueryRepository>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin