diff --git a/NzbDrone.Core.Test/MockLib.cs b/NzbDrone.Core.Test/MockLib.cs index 0697e9726..b05505196 100644 --- a/NzbDrone.Core.Test/MockLib.cs +++ b/NzbDrone.Core.Test/MockLib.cs @@ -37,7 +37,6 @@ namespace NzbDrone.Core.Test if (enableLogging) { provider.Log = new NlogWriter(); - provider.LogParams = true; } return new SimpleRepository(provider, SimpleRepositoryOptions.RunMigrations); } diff --git a/NzbDrone.Core/CentralDispatch.cs b/NzbDrone.Core/CentralDispatch.cs index 35bb65d18..fb2a8e6b3 100644 --- a/NzbDrone.Core/CentralDispatch.cs +++ b/NzbDrone.Core/CentralDispatch.cs @@ -55,8 +55,7 @@ namespace NzbDrone.Core //dbProvider.ExecuteQuery(new QueryCommand("VACUUM", dbProvider)); dbProvider.Log = new NlogWriter(); - dbProvider.LogParams = true; - + _kernel.Bind().To().InSingletonScope(); _kernel.Bind().To(); _kernel.Bind().To(); diff --git a/NzbDrone.Core/Libraries/SubSonic.Core.XML b/NzbDrone.Core/Libraries/SubSonic.Core.XML index 19f287fbb..e2696c72f 100644 --- a/NzbDrone.Core/Libraries/SubSonic.Core.XML +++ b/NzbDrone.Core/Libraries/SubSonic.Core.XML @@ -4,1446 +4,1348 @@ SubSonic.Core - + - + Summary for the SqlFragment class - + - + A Repository class which wraps the a Database by type - + - + Loads a T object + + The item. + The column. + The value. + - + - Type related helper methods + Loads a T object + + The item. + The expression. + - + - + Returns all T items - + - Initializes a new instance of the class. + Returns a single record - From. - To. - Type of the join. - + - Gets the join type value. + Returns a server-side Paged List - The j. - - - + - Gets or sets the type. + Returns a server-side Paged List - The type. - + - Gets or sets from column. + Returns a server-side Paged List - From column. - + - Gets or sets to column. + Returns an IQueryable based on the passed-in Expression Chinook Database - To column. - + - + Returns an IQueryable based on the passed-in Expression Chinook Database - + - + Adds a T item to the db - + - + Adds a T item to the db - - - + + + Adds a bunch of T items - - - + + + Adds a bunch of T items - + - + Updates the passed-in T - + - + Updates the passed-in T - + - + Updates the passed-in T - + - + Updates the passed-in T - + - Returns Schema instance with empty lists. + Deletes the passed-in T items - + - Defines the language rules for the query provider + Deletes the passed-in T items - + - Defines the language rules for the query provider + Deletes the passed-in T item - + - Determines whether the CLR type corresponds to a scalar data type in the query language + Deletes the passed-in T item - - - + - Determines whether the given expression can be represented as a column in a select expressionss + Deletes the T item by Primary Key - - - + - Provides language specific query translation. Use this to apply language specific rewrites or - to make assertions/validations about the query. + Deletes the T item by Primary Key - - - + - Converts the query expression into text of this query language + Deletes 0 to n T items from the Database based on the passed-in Expression - - - + - Determine which sub-expressions must be parameters + Deletes 0 to n T items from the Database based on the passed-in Expression - - - + - An enumeration value for no options configured. + Finds the first sub-expression that accesses a Query<T> object - + - The default set of options (right now the same as none). + Converts user arguments into named-value parameters - + - Use this flag to let the repository run migrations. + An extended expression visitor including custom DbExpression nodes - + - + Returns the SqlDbType for a give DbType + - + - + Takes the properties of an object and turns them into SubSonic.Query.Constraint + + - + - Initializes a new instance of the class. + Coerces an IDataReader to try and load an object using name/property matching - The provider. - + - Validates the query. + Loads a single primitive value type + - + - Finds the column. + Toes the type of the enumerable value. - Name of the column. + + The IDataReader to read from. - + - Wheres the specified column name. + Determines whether [is core system type] [the specified type]. - Name of the column. - + The type. + + true if [is core system type] [the specified type]; otherwise, false. + - + - Wheres the specified column. + Coerces an IDataReader to load an enumerable of T - The column. - + + + + Invoked when a new item is created - + - Wheres the specified agg. + Creates a typed list from an IDataReader - The agg. - - + - Ors the specified column name. + Builds a SubSonic UPDATE query from the passed-in object - Name of the column. - - + - Ors the specified column. + Builds a SubSonic INSERT query from the passed-in object - The column. - - + - Ors the specified agg. + Builds a SubSonic DELETE query from the passed-in object - The agg. - - + - Ors the expression. + Defines the language rules for the query provider - Name of the column. - - + - Opens the expression. + - - + - Closes the expression. + - + - + - Ands the specified column name. + Generates the command line. - Name of the column. - + - Ands the specified column. + Generates the constraints. - The column. - + - Ands the specified agg. + Generates from list. - The agg. - + - Ands the expression. + Generates the order by. - Name of the column. - + - Returns the currently set SQL statement for this query object + Generates the group by. - + - Builds the SQL statement. + Generates the joins. - + - Froms the specified TBL. + Gets the paging SQL wrapper. - The TBL. - + - Froms the specified TBL. + Gets the select columns. - Name of the table. - + - Froms the specified TBL. + Finds the column. - + Name of the column. - + - Creates an inner join based on the passed-in column names + Builds the select statement. - - - - + - Creates an Inner Join, guessing based on Primary Key matching + Builds the paged select statement. - - + - Inners the join. + Builds the update statement. - From column. - To column. - + - Outers the join. + Builds the insert statement. - From column. - To column. - + - Crosses the join. + Builds the delete statement. - From column. - To column. - + - Lefts the inner join. + Sets the insert query. - From column. - To column. - + The q. - + - Rights the inner join. + SqlFragment. Field values may change depending on the inheriting Generator. - From column. - To column. - - + - Lefts the outer join. + Initializes a new instance of the class. - From column. - To column. - - + - Rights the outer join. + Sets the insert query. - From column. - To column. - + The q. - + - Nots the equal join. + Finds the column. - From column. - To column. + Name of the column. - + - Orders the asc. + Generates the group by. - The columns. - + - Orders the desc. + Generates the command line. - The columns. - + - Pageds the specified current page. + Generates the joins. - The current page. - Size of the page. - + - Pageds the specified current page. + Generates from list. - The current page. - Size of the page. - The id column. - + - Executes this instance. + Generates the constraints. - + - Executes the reader. + Generates the order by. - + - Executes the scalar. + Gets the select columns. - + - Executes the scalar. + Gets the paging SQL wrapper. - The type of the result. - + - Gets the record count. + Builds the paged select statement. - + - Executes the typed list. + Builds the select statement. - - + - Executes the typed list. + Builds the update statement. - - + - Executes the query and returns the result as a single item of T + Builds the insert statement. - The type of item to return + - + - Executes the transaction. + Builds the delete statement. - The queries. + - + - Executes the transaction. + Qualifies the name of the table. - The queries. - Name of the connection string. + The TBL. + - + - Gets or sets the open paren count. + Gets the qualified select. - The open paren count. + The table. + - + - Gets or sets the closed paren count. + Generates the select column list. - The closed paren count. + - + - Initializes a new instance of the class. + Builds the aggregate commands. + - + - Initializes a new instance of the class. + Generates the 'SELECT' part of an - The table. - The provider. + The aggregate to include in the SELECT clause + The portion of the SELECT clause represented by this + + The ToString() logic moved from , rather than + including it in the Aggregate class itself... + - + - + Initializes a new instance of the class. + The query. - + - + Builds the paged select statement. + - + - + Builds the insert statement. + - + - + Where, And, Or - + - + WHERE operator - + - Enum for General SQL Functions + AND operator - + - + OR Operator - + - Counts the specified col. + SQL Comparison Operators - The col. - - + - Counts the specified col. + Summary for the SqlComparison class - The col. - The alias. - - + - Counts the specified column name. + A Class for handling SQL Constraint generation - Name of the column. - - + - Counts the specified column name. + The query that this constraint is operating on - Name of the column. - The alias. - - + - Sums the specified col. + Initializes a new instance of the class. - The col. - + The condition. + Name of the constraint column. - + - Sums the specified column name. + Initializes a new instance of the class. - Name of the column. - + The condition. + Name of the constraint column. + Name of the constraint qualified column. - + - Sums the specified col. + Initializes a new instance of the class. - The col. - The alias. - + The condition. + Name of the constraint column. + Name of the constraint qualified column. + The constraint construction fragment. - + - Sums the specified column name. + Initializes a new instance of the class. - Name of the column. - The alias. - + The condition. + Name of the constraint column. + The SQL query. - + - Groups the by. + Initializes a new instance of the class. - The col. - + The condition. + Name of the constraint column. + Name of the constraint qualified column. + The constraint construction fragment. + The SQL query. - + - Groups the by. + Wheres the specified column name. Name of the column. - + - Groups the by. + Ands the specified column name. - The col. - The alias. + Name of the column. - + - Groups the by. + Ors the specified column name. Name of the column. - The alias. - + - Avgs the specified col. + Gets or sets the name of the table. - The col. - + The name of the table. - + - Avgs the specified column name. + Gets the comparison operator. - Name of the column. + The comp. - + - Avgs the specified col. + Determines whether the specified is equal to the current . - The col. - The alias. - + The to compare with the current . + + true if the specified is equal to the current ; otherwise, false. + + The parameter is null. - + - Avgs the specified column name. + Serves as a hash function for a particular type. - Name of the column. - The alias. - + + A hash code for the current . + - + - Maxes the specified col. + Creates a LIKE statement. - The col. + The val. - + - Maxes the specified column name. + Creates a LIKE statement and appends a wildcard to the end of the passed-in value. - Name of the column. + The val. - + - Maxes the specified col. + Creates a LIKE statement and appends a wildcard to the end of the passed-in value. - The col. - The alias. + The val. + The wild card. - + - Maxes the specified column name. + Creates a LIKE statement and appends a wildcard to the end of the passed-in value. - Name of the column. - The alias. + The val. - + - Mins the specified col. + Creates a NOT LIKE statement - The col. + The val. - + - Mins the specified column name. + Determines whether [is greater than] [the specified val]. - Name of the column. + The val. - + - Mins the specified col. + Determines whether [is greater than] [the specified val]. - The col. - The alias. + The val. - + - Mins the specified column name. + Specifies a SQL IN statement using a nested Select statement - Name of the column. - The alias. + The select query. - + - Variances the specified col. + Specifies a SQL IN statement - The col. + Value array - + - Variances the specified column name. + Specifies a SQL IN statement - Name of the column. + Value array - + - Variances the specified col. + Specifies a SQL IN statement using a nested Select statement - The col. - The alias. + The select query. - + - Variances the specified column name. + Specifies a SQL Not IN statement - Name of the column. - The alias. + Value array - + - Standards the deviation. + Specifies a SQL NOT IN statement - The col. + Value array - + - Standards the deviation. + Determines whether [is less than] [the specified val]. - Name of the column. + The val. - + - Standards the deviation. + Determines whether [is less than] [the specified val]. - The col. - The alias. + The val. - + - Standards the deviation. + Determines whether [is not null] [the specified val]. - Name of the column. - The alias. - + - Initializes a new instance of the class. + Determines whether the specified val is null. - Name of the column. - Type of the aggregate. + - + - Initializes a new instance of the class. + Determines whether [is between and] [the specified val1]. - Name of the column. - The alias. - Type of the aggregate. + The val1. + The val2. + - + - Initializes a new instance of the class. + Determines whether [is equal to] [the specified val]. - The column. - Type of the aggregate. + The val. + - + - Initializes a new instance of the class. + Determines whether [is not equal to] [the specified val]. - The column. - The alias. - Type of the aggregate. + The val. + - + - Gets the type of the function. + Gets or sets the condition. - The agg. - + The condition. - + - Gets the SQL function call without an alias. Example: AVG(UnitPrice). + Gets or sets the name of the column. - + The name of the column. - + - Overrides ToString() to return the SQL Function call - - - - - - Gets or sets the type of the aggregate. - - The type of the aggregate. - - - - Gets or sets the name of the column. + Gets or sets the fully qualified name of the column. The name of the column. - + - Gets or sets the alias. + Gets or sets the string fragment used when assembling the text of query. - The alias. + The construction fragment. - + - returns the set of all aliases produced by a query source + Gets or sets the comparison. + The comparison. - + - An extended expression visitor including custom DbExpression nodes + Gets or sets the parameter value. + The parameter value. - + - Moves order-bys to the outermost select if possible + Gets or sets the start value. + The start value. - + - Add a sequence of order expressions to an accumulated list, prepending so as - to give precedence to the new expressions over any previous expressions + Gets or sets the end value. - + The end value. - + - Rebind order expressions to reference a new alias and add to column declarations if necessary + Gets or sets the in values. + The in values. - + - returns the set of all aliases produced by a query source + Gets or sets the in select. + The in select. - + - Determines if a SelectExpression contains any aggregate expressions + Gets or sets the name of the parameter. + The name of the parameter. - + - Summary for the Dates class + Gets or sets the type of the db. + The type of the db. - + - Returns a date in the past by days. + Gets or sets a value indicating whether this constraint is an Aggregate. - The days. - + + true if this instance is aggregate; otherwise, false. + - + - Returns a date in the future by days. + returns the set of all aliases produced by a query source - The days. - - + - Returns a date in the past by hours. + Removes joins expressions that are identical to joins that already exist - The hours. - - + - Returns a date in the future by hours. + MySQL specific QueryLanguage - The hours. - + - + - Returns a date in the past by minutes + Defines the language rules for the query provider - The minutes. - - + - Returns a date in the future by minutes. + Determines whether the CLR type corresponds to a scalar data type in the query language - The minutes. + - + - Gets a date in the past according to seconds + Determines whether the given expression can be represented as a column in a select expressionss - The seconds. + - + - Gets a date in the future by seconds. + Provides language specific query translation. Use this to apply language specific rewrites or + to make assertions/validations about the query. - The seconds. + - + - Diffs the specified date. + Converts the query expression into text of this query language - The date one. - The date two. + - + - Returns a double indicating the number of days between two dates (past is negative) + Determine which sub-expressions must be parameters - The date one. - The date two. + - + - Returns a double indicating the number of days between two dates (past is negative) + Creates a set of SQL commands for synchronizing your database with your object set - The date one. - The date two. - - + - Returns a double indicating the number of days between two dates (past is negative) + Type related helper methods - The date one. - The date two. - - + - Returns a double indicating the number of days between two dates (past is negative) + SQLite specific QueryLanguage - The date one. - The date two. - - + - Returns a double indicating the number of days between two dates (past is negative) + Adds relationship to query results depending on policy - The date one. - The date two. - - + - Returns a double indicating the number of days between two dates (past is negative) + Holds list of tables, views, stored procedures, etc. - The date one. - The date two. - - + - Displays the difference in time between the two dates. Return example is "12 years 4 months 24 days 8 hours 33 minutes 5 seconds" + - The start time. - The end time. - + - + - Counts the number of weekdays between two dates. + Initializes a new instance of the class. - The start time. - The end time. - + The query. - + - Counts the number of weekends between two dates. + Gets the type of the native. - The start time. - The end time. + Type of the db. - + - Verifies if the object is a date + Generates SQL for all the columns in table - The dt. + Table containing the columns. - true if the specified dt is date; otherwise, false. + SQL fragment representing the supplied columns. - + - Checks to see if the date is a week day (Mon - Fri) + Generates from list. - The dt. - - true if [is week day] [the specified dt]; otherwise, false. - + - + - Checks to see if the date is Saturday or Sunday + Sets the column attributes. - The dt. - - true if [is week end] [the specified dt]; otherwise, false. - + The column. + - + - Displays the difference in time between the two dates. Return example is "12 years 4 months 24 days 8 hours 33 minutes 5 seconds" + Builds the paged select statement. - The start time. - The end time. - + - Given a datetime object, returns the formatted month and day, i.e. "April 15th" + Builds the delete query. - The date to extract the string from + The item. - + - Given a datetime object, returns the formatted day, "15th" + Builds the insert query. - The date to extract the string from + The item. - + - Remove leading strings with zeros and adjust for singular/plural + Builds the update query. - The STR. - The previous STR. - The t. + The item. - - + + + For Jeff Atwood + http://www.codinghorror.com/blog/archives/000989.html + + + A class which wraps an inline SQL call + + Updated to support MySQL user and system variables. + + If the connection string contains "Allow User Variables=true" and the provider + is MySQL, the following syntax is supported: + + @parametername - a command parameter + @@uservariable - a MySQL user variable + @@@servervariable - a MySQL server variable + + eg: UPDATE company SET next_job_id = @@job_id:=next_job_id+1 WHERE company_id=@company_id; + SELECT @@job_id; + + where: @company_id is a command parameter. + @@job_id is a MySql user variable. - + + - + - + Initializes a new instance of the class. + Warning: This method assumes the default provider is intended. + Call InlineQuery(string providerName) if this is not the case. - + The SQL. - + - Generates the command line. + Initializes a new instance of the class. - + The SQL. + The values. - + - Generates the constraints. + Initializes a new instance of the class. - + The provider. - + - Generates from list. + Gets the command. - + - Generates the order by. + Executes the specified SQL. - - + - Generates the group by. + Executes the scalar. + The type of the result. - + - Generates the joins. + Executes the typed list. + - + - Gets the paging SQL wrapper. + Executes the reader. - + - Gets the select columns. + Initializes a new instance of the class. + Warning: This method assumes the default provider is intended. + Call InlineQuery(string providerName) if this is not the case. - + The SQL. - + - Finds the column. + Initializes a new instance of the class. - Name of the column. - + The SQL. + The values. - + - Builds the select statement. + Initializes a new instance of the class. - + The provider. - + - Builds the paged select statement. + A holder for 1 or more queries to be executed together - - + - Builds the update statement. + Builds the SQL statement. - + - Builds the insert statement. + Executes this instance. - + - Builds the delete statement. + Executes the queries in and returns a multiple result set reader. - + - Sets the insert query. + Gets a command containing all the queued queries. - The q. + - + - SqlFragment. Field values may change depending on the inheriting Generator. + Queues the specified query. + The query. - + - Initializes a new instance of the class. + Queues the specified query. + + The query. - + - Sets the insert query. + Queues a query for use in a transaction. - The q. + The qry. - + - Finds the column. + Queues a query for use in a transaction. - Name of the column. - + The CMD. - + - Generates the group by. + Queues a query for use in a transaction. - + The SQL. + The parameters. - + - Generates the command line. + Executes the transaction. - - + - Generates the joins. + TSQL specific QueryLanguage - - + - Generates from list. + Attempts to rewrite cross-apply and outer-apply joins as inner and left-outer joins - - + - Generates the constraints. + Writes out an expression tree (including DbExpression nodes) in a C#-ish syntax - - + - Generates the order by. + Writes out an expression tree in a C#-ish syntax - - + - Gets the select columns. + A basic abstract LINQ query provider - - + - Gets the paging SQL wrapper. + Optional interface for IQueryProvider to implement Query<T>'s QueryText property. - - + - Builds the paged select statement. + Simple implementation of the IGrouping<TKey, TElement> interface - + + - + - Builds the select statement. + Formats a query expression into TSQL language syntax - - + - Builds the update statement. + Formats a query expression into TSQL language syntax - - + - Builds the insert statement. + rewrites nested projections into client-side joins - - + - Builds the delete statement. + Defines mapping information and rules for the query provider - - + - Qualifies the name of the table. + Determines if a give CLR type is mapped as a database entity - The TBL. + - + - Gets the qualified select. + Deterimines is a property is mapped onto a column or relationship - The table. + - + - Generates the select column list. + Determines if a property is mapped onto a column + - + - Builds the aggregate commands. + Determines if a property represents or is part of the entities unique identity (often primary key) + - + - Generates the 'SELECT' part of an + Determines if a property is mapped as a relationship - The aggregate to include in the SELECT clause - The portion of the SELECT clause represented by this - - The ToString() logic moved from , rather than - including it in the Aggregate class itself... - + + - + - Initializes a new instance of the class. + The type of the entity on the other side of the relationship - The query. + + - + - Builds the paged select statement. + The name of the corresponding database table + - + - Builds the insert statement. + The name of the corresponding table column + - + - Summary for the SqlFragment class + A sequence of all the mapped members + + - + - + Determines if a relationship property refers to a single optional entity (as opposed to a collection.) + + - + - Initializes a new instance of the class. + Get a query expression that selects all entities from a table - The provider. - The columns. + + - + - Initializes a new instance of the class. + Gets an expression that constructs an entity instance relative to a root. + The root is most often a TableExpression, but may be any other experssion such as + a ConstantExpression. + + + - + - Initializes a new instance of the class. + Get the members for the key properities to be joined in an association relationship - The aggregates. + + + - + - Initializes a new instance of the class. - - The provider. - The aggregates. - - - - Initializes a new instance of the class. - - The columns. - - - - Initializes a new instance of the class. - WARNING: This overload should only be used with applications that use a single provider! - - The columns. - - - - Alls the columns from. + Get an expression for a mapped property relative to a root expression. + The root is either a TableExpression or an expression defining an entity instance. - + + - + - Expressions the specified SQL expression. + Get a function that coerces an a sequence of one type into another type. + This is primarily used for aggregators stored in ProjectionExpression's, which are used to represent the + final transformation of the entire result set of a query. - The SQL expression. + The expected type. + The actual type. - + - Tops the specified top. + Apply mapping translations to this expression - The top. + - - - Result from calling ColumnProjector.ProjectColumns - - - - - Splits an expression into two parts - 1) a list of column declarations for sub-expressions that must be evaluated on the server - 2) a expression that describes how to combine/project the columns back together into the correct result - - - + - Nominator is a class that walks an expression tree bottom up, determining the set of - candidate expressions that are possible columns of a select expression + The language related to the mapping @@ -1451,16 +1353,6 @@ A LINQ IQueryable query provider that executes database queries over a DbConnection - - - A basic abstract LINQ query provider - - - - - Optional interface for IQueryProvider to implement Query<T>'s QueryText property. - - DbQueryProvider constrcutor that allows for external control of policy @@ -1537,1854 +1429,1854 @@ - + - Parses the object value. + - The expression. - - + - Parses the passed-in Expression into exclusive (WHERE x=y) constraints. + Initializes a new instance of the class. - The exp. - + From. + To. + Type of the join. - + - Parses the passed-in Expression into exclusive (WHERE x=y) constraint. + Gets the join type value. - The expression. + The j. + - + - Determines whether the specified exp is constraint. + Gets or sets the type. - The exp. - - true if the specified exp is constraint; otherwise, false. - + The type. - + - Gets the constant value. + Gets or sets from column. - The exp. - + From column. - + + Gets or sets to column. + To column. - + - Simple implementation of the IGrouping<TKey, TElement> interface + - - - + - Rewrite all column references to one or more aliases to a new single alias + - + - MySQL specific QueryLanguage + + + + + - + - A schema generator for your DB + - + - Builds a CREATE TABLE statement. + - - - + - Builds a DROP TABLE statement. + - Name of the table. - - + - Adds the column. + - Name of the table. - The column. - + - Alters the column. + - The column. - + - Removes the column. + Singles the specified expression. - Name of the table. - Name of the column. + + The expression. - + - Gets the type of the native. + Singles the specified key. - Type of the db. + + The key. - + - Generates the columns. + Retrieves subset of records from the database matching the expression - Table containing the columns. - - SQL fragment representing the supplied columns. - - + - Sets the column attributes. + Gets the paged. - The column. + + Index of the page. + Size of the page. - + - Builds a CREATE TABLE statement. + Gets the paged. - + + The sort by. + Index of the page. + Size of the page. - + - Builds a DROP TABLE statement. + Adds the specified item, setting the key if available. - Name of the table. + + The item. - + - Adds the column. + Adds a lot of the items using a transaction. - Name of the table. - The column. - + + The items. - + - Alters the column. + Updates the specified item. - The column. + + The item. + - + - Removes the column. + Updates lots of items using a transaction. - Name of the table. - Name of the column. + + The items. - + - Gets the type of the native. + Deletes the specified key. - Type of the db. + + The key. - + - Generates the columns. + Deletes 1 or more items. - Table containing the columns. - - SQL fragment representing the supplied columns. - + + The expression. + - + - Sets the column attributes. + Deletes 1 or more items. - The column. + + The items. - + - Gets an ITable from the DB based on name + Migrates this instance. + - + - Creates a list of table names + Formats a query expression into TSQL language syntax - + - Removes the column. + Returns an Object with the specified Type and whose value is equivalent to the specified object. - - - + An Object that implements the IConvertible interface. + + An object whose Type is conversionType (or conversionType's underlying type if conversionType + is Nullable<>) and whose value is equivalent to value. -or- a null reference, if value is a null + reference and conversionType is not a value type. + + + This method exists as a workaround to System.Convert.ChangeType(Object, Type) which does not handle + nullables as of version 2.0 (2.0.50727.42) of the .NET Framework. The idea is that this method will + be deleted once Convert.ChangeType is updated in a future version of the .NET Framework to handle + nullable types, so we want this to behave as closely to Convert.ChangeType as possible. + This method was written by Peter Johnson at: + http://aspalliance.com/author.aspx?uId=1026. + + - + - Sets the column attributes. + Process the passed-in LINQ expression + + + + + + Initializes the shared connection. - The column. - + - Gets the type of the db. + Initializes the shared connection. - Type of the SQL. + The shared connection string. - + - A Repository class which wraps the a Database by type + Resets the shared connection. - + - Loads a T object + Adds the params. - - The item. - The column. - The value. - + The CMD. + The qry. - + - Loads a T object + Converts a data reader into a sequence of objects using a projector function on each row - The item. - The expression. + The reader. + The fn projector. - + - Returns all T items + Gets a value indicating whether [current connection string is default]. + + true if [current connection string is default]; otherwise, false. + - + - Returns a single record + Gets or sets the current shared connection. + The current shared connection. - + - Returns a server-side Paged List + Creates a reusable, parameterized representation of a query that caches the execution plan - + - Returns a server-side Paged List + Summary for the Files class - + - Returns a server-side Paged List + Read a text file and obtain it's contents. + The complete file path to write to. + String containing the content of the file. - + - Returns an IQueryable based on the passed-in Expression Chinook Database + Creates or opens a file for writing and writes text to it. + The complete file path to write to. + A String containing text to be written to the file. - + - Returns an IQueryable based on the passed-in Expression Chinook Database + Update text within a file by replacing a substring within the file. + The complete file path to write to. + A String to be replaced. + A String to replace all occurrences of lookFor. - + - Adds a T item to the db + Writes out a string to a file. + The complete file path to write to. + A String containing text to be written to the file. - + - Adds a T item to the db - - - - - Adds a bunch of T items + Fetches a web page + The URL. + - - - Adds a bunch of T items + + + Gets a value indicating whether this instance is numeric. + + true if this instance is numeric; otherwise, false. + - + - Updates the passed-in T + Gets a value indicating whether this instance is date time. + + true if this instance is date time; otherwise, false. + - + - Updates the passed-in T + Gets a value indicating whether this instance is string. + true if this instance is string; otherwise, false. - + - Updates the passed-in T + Gets a value indicating whether this instance is numeric. + + true if this instance is numeric; otherwise, false. + - + - Updates the passed-in T + Gets a value indicating whether this instance is date time. + + true if this instance is date time; otherwise, false. + - + - Deletes the passed-in T items + Gets a value indicating whether this instance is string. + true if this instance is string; otherwise, false. - + - Deletes the passed-in T items + Summary for the ReservedColumnName class - + - Deletes the passed-in T item + A schema generator for your DB - + - Deletes the passed-in T item + Builds a CREATE TABLE statement. + + - + - Deletes the T item by Primary Key + Builds a DROP TABLE statement. + Name of the table. + - + - Deletes the T item by Primary Key + Adds the column. + Name of the table. + The column. - + - Deletes 0 to n T items from the Database based on the passed-in Expression + Alters the column. + The column. - + - Deletes 0 to n T items from the Database based on the passed-in Expression + Removes the column. + Name of the table. + Name of the column. + - + - Finds the first sub-expression that accesses a Query<T> object + Gets the type of the native. + Type of the db. + - + - Writes out an expression tree in a C#-ish syntax + Generates the columns. + Table containing the columns. + + SQL fragment representing the supplied columns. + - + - SQLite specific QueryLanguage + Sets the column attributes. + The column. + - + - Indicates that a per-thread shared DbConnection object should be used the default DataProvider - (or alternativley a specific DataProvider if one is given) when communicating with the database. - This class is designed to be used within a using () {} block and in conjunction with a TransactionScope object. - It's purpose is to force a common DbConnection object to be used which has the effect of avoiding promotion - of a System.Transaction ambient Transaction to the DTC where possible. - When this class is created, it indicates to the underlying DataProvider that is should use a shared DbConnection - for subsequent operations. When the class is disposed (ie the using() {} block ends) it will indicate to the - underlying provider that it should no longer it's current shared connection and should Dispose() it. + Builds a CREATE TABLE statement. + + - + - Used to support nesting. By keeping a stack of all instances of the class that are created on this thread - thread we know when it is safe to Reset the underlying shared connection. + Builds a DROP TABLE statement. + Name of the table. + - + - Indicates to the default DataProvider that it should use a per-thread shared connection. + Adds the column. + Name of the table. + The column. + - + - Indicates to the default DataProvider that it should use a per-thread shared connection using the given connection string. + Alters the column. - The connection string. - Name of the provider. + The column. - + - Indicates to the specified DataProvider that it should use a per-thread shared connection. - - The data provider. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases unmanaged and - optionally - managed resources - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Provides access to underlying connection that is shared per thread - - The current connection. - - - - Used within SubSonic to automatically manage a SqlConnection. If a shared connection is available - for the specified provider on the current thread, that shared connection will be used. - Otherwise, a new connection will be created. - Note that if a shared connection is used, it will NOT be automatically disposed - that is up to the caller. - Lifetime management of the shared connection is taken care of by using a - If a new connection is created, it will be automatically disposed when this AutomaticConnectionScope object - is disposed. - - - - - Initializes a new instance of the class. + Removes the column. - The provider. + Name of the table. + Name of the column. + - + - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + Gets the type of the native. + Type of the db. + - + - Releases unmanaged and - optionally - managed resources + Generates the columns. - true to release both managed and unmanaged resources; false to release only unmanaged resources. + Table containing the columns. + + SQL fragment representing the supplied columns. + - + - Gets the connection. + Sets the column attributes. - + The column. - - - Gets the connection. - - The connection. - - + - Gets a value indicating whether this instance is using shared connection. + Gets an ITable from the DB based on name - - true if this instance is using shared connection; otherwise, false. - - + - Type related helper methods + Creates a list of table names - + - Formats a query expression into TSQL language syntax + Sets the column attributes. + The column. + - + - Formats a query expression into TSQL language syntax + Gets the type of the db. + Type of the SQL. + - + - Attempts to rewrite cross-apply and outer-apply joins as inner and left-outer joins + Returns Schema instance with empty lists. - + - Summary for the Validation class + Rewrites nested singleton projection into server-side joins - + - Determines whether the specified eval string contains only alpha characters. + Initializes the class. - The eval string. - - true if the specified eval string is alpha; otherwise, false. - - + - Determines whether the specified eval string contains only alphanumeric characters + Strips the last specified chars from a string. - The eval string. - - true if the string is alphanumeric; otherwise, false. - + The source string. + The remove from end. + - + - Determines whether the specified eval string contains only alphanumeric characters + Strips the last specified chars from a string. - The eval string. - if set to true [allow spaces]. - - true if the string is alphanumeric; otherwise, false. - + The source string. + The back down to. + - + - Determines whether the specified eval string contains only numeric characters + Plurals to singular. - The eval string. - - true if the string is numeric; otherwise, false. - + The source string. + - + - Determines whether the specified email address string is valid based on regular expression evaluation. + Singulars to plural. - The email address string. - - true if the specified email address is valid; otherwise, false. - + The source string. + - + - Determines whether the specified string is lower case. + Make plural when count is not one - The input string. - - true if the specified string is lower case; otherwise, false. - + The number of things + The source string. + - + - Determines whether the specified string is upper case. + Removes the specified chars from the beginning of a string. - The input string. - - true if the specified string is upper case; otherwise, false. - + The source string. + The remove from beginning. + - + - Determines whether the specified string is a valid GUID. + Removes chars from the beginning of a string, up to the specified string - The GUID. - - true if the specified string is a valid GUID; otherwise, false. - + The source string. + The remove up to. + - + - Determines whether the specified string is a valid US Zip Code, using either 5 or 5+4 format. + Strips the last char from a a string. - The zip code. - - true if it is a valid zip code; otherwise, false. - + The source string. + - + - Determines whether the specified string is a valid US Zip Code, using the 5 digit format. + Strips the last char from a a string. - The zip code. - - true if it is a valid zip code; otherwise, false. - + The source string. + - + - Determines whether the specified string is a valid US Zip Code, using the 5+4 format. + Fasts the replace. - The zip code. - - true if it is a valid zip code; otherwise, false. - + The original. + The pattern. + The replacement. + - + - Determines whether the specified string is a valid Social Security number. Dashes are optional. + Fasts the replace. - The Social Security Number - - true if it is a valid Social Security number; otherwise, false. - + The original. + The pattern. + The replacement. + Type of the comparison. + - + - Determines whether the specified string is a valid IP address. + Returns text that is located between the startText and endText tags. - The ip address. - - true if valid; otherwise, false. - + The source string. + The text from which to start the crop + The endpoint of the crop + - + - Determines whether the specified string is a valid US phone number using the referenced regex string. + Removes excess white space in a string. - The telephone number. - - true if valid; otherwise, false. - + The source string. + - + - Determines whether the specified string is a valid currency string using the referenced regex string. + Removes all non-alpha numeric characters in a string - The currency string. - - true if valid; otherwise, false. - + The source string. + - + - Determines whether the specified string is a valid URL string using the referenced regex string. + Creates a string array based on the words in a sentence - The URL string. - - true if valid; otherwise, false. - + The source string. + - + - Determines whether the specified string is consider a strong password based on the supplied string. + Strips all HTML tags from a string - The password. - - true if strong; otherwise, false. - + The HTML string. + - + - Determines whether the specified string is a valid credit, based on matching any one of the eight credit card strings + Strips all HTML tags from a string and replaces the tags with the specified replacement - The credit card. - - true if valid; otherwise, false. - + The HTML string. + The HTML place holder. + - + - Determines whether the specified string is an American Express, Discover, MasterCard, or Visa + Converts a generic List collection to a single comma-delimitted string. - The credit card. - - true if valid; otherwise, false. - + The list. + - + - Determines whether the specified string is an American Express card + Converts a generic List collection to a single string using the specified delimitter. - The credit card. - - true if valid; otherwise, false. - + The list. + The delimiter. + - + - Determines whether the specified string is an Carte Blanche card + Strips the specified input. - The credit card. - - true if valid; otherwise, false. - + The source string. + The strip value. + - + - Determines whether the specified string is an Diner's Club card + Converts ASCII encoding to Unicode - The credit card. - - true if valid; otherwise, false. - + The ASCII code. + - + - Determines whether the specified string is a Discover card + Converts Text to HTML-encoded string - The credit card. - - true if valid; otherwise, false. - + The text string. + - + - Determines whether the specified string is an En Route card + Converts HTML-encoded bits to Text - The credit card. - - true if valid; otherwise, false. - + The entity text. + - + - Determines whether the specified string is an JCB card + Formats the args using String.Format with the target string as a format string. - The credit card. - - true if valid; otherwise, false. - + The format string passed to String.Format + The args passed to String.Format + - + - Determines whether the specified string is a Master Card credit card + Strings to enum. - The credit card. - - true if valid; otherwise, false. - + + The value. + - + - Determines whether the specified string is Visa card. + Fills the entities. - The credit card. - - true if valid; otherwise, false. - - + - Cleans the credit card number, returning just the numeric values. + Converts US State Name to it's two-character abbreviation. Returns null if the state name was not found. - The credit card. + US State Name (ie Texas) - + - Determines whether the credit card number, once cleaned, passes the Luhn algorith. - See: http://en.wikipedia.org/wiki/Luhn_algorithm + Converts a two-character US State Abbreviation to it's official Name Returns null if the abbreviation was not found. - The credit card number. + US State Name (ie Texas) - + - Determines whether the specified int array passes the Luhn algorith + Fills the US States. - The int array to evaluate - - true if it validates; otherwise, false. - - + - Determine whether the passed string is numeric, by attempting to parse it to a double + Type related helper methods - The string to evaluated for numeric conversion - - true if the string can be converted to a number; otherwise, false. - - + - Builds the delete query. + Removes the column. - The item. + + - + - Builds the insert query. + Sets the column attributes. - The item. + The column. - + - Builds the update query. + Gets the type of the db. - The item. + Type of the SQL. - + - Duplicate the query expression by making a copy with new table aliases + - + - Writes out an expression tree (including DbExpression nodes) in a C#-ish syntax + - + - Gets a value indicating whether this instance is numeric. + Initializes a new instance of the class. - - true if this instance is numeric; otherwise, false. - + The provider. - + - Gets a value indicating whether this instance is date time. + Validates the query. - - true if this instance is date time; otherwise, false. - - + - Gets a value indicating whether this instance is string. + Finds the column. - true if this instance is string; otherwise, false. + Name of the column. + - + - + Wheres the specified column name. - + Name of the column. + - + - Initializes a new instance of the class. + Wheres the specified column. - The query. + The column. + - + - Gets the type of the native. + Wheres the specified agg. - Type of the db. + The agg. - + - Generates SQL for all the columns in table + Ors the specified column name. - Table containing the columns. - - SQL fragment representing the supplied columns. - + Name of the column. + - + - Generates from list. + Ors the specified column. + The column. - + - Sets the column attributes. + Ors the specified agg. - The column. + The agg. - + - Builds the paged select statement. + Ors the expression. + Name of the column. - + - Creates a set of SQL commands for synchronizing your database with your object set + Opens the expression. + - + + + Closes the expression. + + + + - Creates a reusable, parameterized representation of a query that caches the execution plan + Ands the specified column name. + Name of the column. + - + - Common interface for controlling defer-loadable types + Ands the specified column. + The column. + - + - A list implementation that is loaded the first the contents are examined + Ands the specified agg. - + The agg. + - + - Holds list of tables, views, stored procedures, etc. + Ands the expression. + Name of the column. + - + - Initializes the shared connection. + Returns the currently set SQL statement for this query object - + - Initializes the shared connection. + Builds the SQL statement. - The shared connection string. - + - Resets the shared connection. + Froms the specified TBL. + The TBL. + - + - Adds the params. + Froms the specified TBL. - The CMD. - The qry. + Name of the table. + - + - Converts a data reader into a sequence of objects using a projector function on each row + Froms the specified TBL. - The reader. - The fn projector. - + - Gets a value indicating whether [current connection string is default]. + Creates an inner join based on the passed-in column names - - true if [current connection string is default]; otherwise, false. - + + + + - + - Gets or sets the current shared connection. + Creates an Inner Join, guessing based on Primary Key matching - The current shared connection. + + - + - Gets the type of the native. + Inners the join. - Type of the db. + From column. + To column. - + - Generates the columns. + Outers the join. - Table containing the columns. - - SQL fragment representing the supplied columns. - + From column. + To column. + - + - Builds a CREATE TABLE statement. + Crosses the join. - + From column. + To column. - + - Sets the column attributes. + Lefts the inner join. - The column. + From column. + To column. - + - Gets the type of the db. + Rights the inner join. - Type of my SQL. + From column. + To column. - + - + Lefts the outer join. + From column. + To column. + - + - Equals to. + Rights the outer join. - The value. + From column. + To column. - + - Determines whether the specified is equal to the current . + Nots the equal join. - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - The parameter is null. + From column. + To column. + - + - Serves as a hash function for a particular type. + Orders the asc. - - A hash code for the current . - + The columns. + - + - Returns a that represents the current . + Orders the desc. - - A that represents the current . - + The columns. + - + - Initializes a new instance of the class. + Pageds the specified current page. + The current page. + Size of the page. + - + - Initializes a new instance of the class. + Pageds the specified current page. - The table. + The current page. + Size of the page. + The id column. + - + - Sets the specified column name. + Executes this instance. - Name of the column. - + - Sets the expression. + Executes the reader. - The column. - + - Executes this instance. + Executes the scalar. - + - + Executes the scalar. + The type of the result. + - + - Initializes a new instance of the class. + Gets the record count. - The provider. + - + - Sets the specified columns. + Executes the typed list. - The columns. + - + - Rewrites nested singleton projection into server-side joins + Executes the typed list. + + - + - A simple query mapping that attempts to infer mapping from naming conventionss + Executes the query and returns the result as a single item of T + The type of item to return - + - Defines mapping information and rules for the query provider + Executes the transaction. + The queries. - + - Determines if a give CLR type is mapped as a database entity + Executes the transaction. - - + The queries. + Name of the connection string. - + - Deterimines is a property is mapped onto a column or relationship + Gets or sets the open paren count. - - + The open paren count. - + - Determines if a property is mapped onto a column + Gets or sets the closed paren count. - - + The closed paren count. - + - Determines if a property represents or is part of the entities unique identity (often primary key) + Initializes a new instance of the class. - - - + - Determines if a property is mapped as a relationship + Initializes a new instance of the class. - - + The table. + The provider. - + - The type of the entity on the other side of the relationship + - - - + - The name of the corresponding database table + - - - + - The name of the corresponding table column + - - - + - A sequence of all the mapped members + - - - + - Determines if a relationship property refers to a single optional entity (as opposed to a collection.) + - - - + - Get a query expression that selects all entities from a table + Removes one or more SelectExpression's by rewriting the expression tree to not include them, promoting + their from clause expressions and rewriting any column expressions that may have referenced them to now + reference the underlying data directly. - - - + - Gets an expression that constructs an entity instance relative to a root. - The root is most often a TableExpression, but may be any other experssion such as - a ConstantExpression. + Rewrites take and skip expressions into uses of TSQL row_number function - - - - + - Get the members for the key properities to be joined in an association relationship + Translates accesses to relationship members into projections or joins - - - - + - Get an expression for a mapped property relative to a root expression. - The root is either a TableExpression or an expression defining an entity instance. + Determines if two expressions are equivalent. Supports DbExpression nodes. - - - - + - Get a function that coerces an a sequence of one type into another type. - This is primarily used for aggregators stored in ProjectionExpression's, which are used to represent the - final transformation of the entire result set of a query. + Compare two expressions to determine if they are equivalent - The expected type. - The actual type. - - + - Apply mapping translations to this expression + - - - + - The language related to the mapping + Initializes a new instance of the class. + The provider. + The columns. - + - Returns the SqlDbType for a give DbType + Initializes a new instance of the class. - - + - Takes the properties of an object and turns them into SubSonic.Query.Constraint + Initializes a new instance of the class. - - + The aggregates. - + - Coerces an IDataReader to try and load an object using name/property matching + Initializes a new instance of the class. + The provider. + The aggregates. - + - Loads a single primitive value type + Initializes a new instance of the class. - + The columns. - + - Toes the type of the enumerable value. + Initializes a new instance of the class. + WARNING: This overload should only be used with applications that use a single provider! - - The IDataReader to read from. - + The columns. - + - Determines whether [is core system type] [the specified type]. + Alls the columns from. - The type. - - true if [is core system type] [the specified type]; otherwise, false. - + + - + - Coerces an IDataReader to load an enumerable of T + Expressions the specified SQL expression. - - - - Invoked when a new item is created + The SQL expression. + - + - Creates a typed list from an IDataReader + Tops the specified top. + The top. + - + - Builds a SubSonic UPDATE query from the passed-in object + Gets the type of the native. + Type of the db. + - + - Builds a SubSonic INSERT query from the passed-in object + Generates the columns. + Table containing the columns. + + SQL fragment representing the supplied columns. + - + - Builds a SubSonic DELETE query from the passed-in object + Builds a CREATE TABLE statement. + + - + Sets the column attributes. The column. - + Gets the type of the db. - Type of the SQL. + Type of my SQL. - + - + Rewrite aggregate expressions, moving them into same select expression that has the group-by clause - + - Initializes a new instance of the class. + Replaces references to one specific instance of an expression node with another node. + Supports DbExpression nodes - + - Initializes a new instance of the class. + Summary for the Dates class - The provider. - + - Builds the SQL statement. + Returns a date in the past by days. + The days. - + - Adds the specified columns into a new Insert object. + Returns a date in the future by days. - - The columns. + The days. - + - Adds the specified columns into a new Insert object. + Returns a date in the past by hours. - - The TBL. + The hours. - + - Inits this instance. + Returns a date in the future by hours. + The hours. - + - Values the specified column. + Returns a date in the past by minutes - The column. - The column value. + The minutes. - + - Values the specified column. + Returns a date in the future by minutes. - The column. - The column value. - Type of the db. + The minutes. - + - Valueses the specified values. + Gets a date in the past according to seconds - The values. + The seconds. - + - Values the expression. + Gets a date in the future by seconds. - The values. + The seconds. - + - Returns a that represents the current . + Diffs the specified date. - - A that represents the current . - + The date one. + The date two. + - + - Executes this instance. + Returns a double indicating the number of days between two dates (past is negative) + The date one. + The date two. - + + + Returns a double indicating the number of days between two dates (past is negative) + + The date one. + The date two. + + + - rewrites nested projections into client-side joins + Returns a double indicating the number of days between two dates (past is negative) + The date one. + The date two. + - + - Formats a query expression into TSQL language syntax + Returns a double indicating the number of days between two dates (past is negative) + The date one. + The date two. + - + - Where, And, Or + Returns a double indicating the number of days between two dates (past is negative) + The date one. + The date two. + - + - WHERE operator + Returns a double indicating the number of days between two dates (past is negative) + The date one. + The date two. + - + - AND operator + Displays the difference in time between the two dates. Return example is "12 years 4 months 24 days 8 hours 33 minutes 5 seconds" + The start time. + The end time. + - + - OR Operator + Counts the number of weekdays between two dates. + The start time. + The end time. + - + - SQL Comparison Operators + Counts the number of weekends between two dates. + The start time. + The end time. + - + - Summary for the SqlComparison class + Verifies if the object is a date + The dt. + + true if the specified dt is date; otherwise, false. + - + - A Class for handling SQL Constraint generation + Checks to see if the date is a week day (Mon - Fri) + The dt. + + true if [is week day] [the specified dt]; otherwise, false. + - + - The query that this constraint is operating on + Checks to see if the date is Saturday or Sunday + The dt. + + true if [is week end] [the specified dt]; otherwise, false. + - + - Initializes a new instance of the class. + Displays the difference in time between the two dates. Return example is "12 years 4 months 24 days 8 hours 33 minutes 5 seconds" - The condition. - Name of the constraint column. + The start time. + The end time. + - + - Initializes a new instance of the class. + Given a datetime object, returns the formatted month and day, i.e. "April 15th" - The condition. - Name of the constraint column. - Name of the constraint qualified column. + The date to extract the string from + - + - Initializes a new instance of the class. + Given a datetime object, returns the formatted day, "15th" - The condition. - Name of the constraint column. - Name of the constraint qualified column. - The constraint construction fragment. + The date to extract the string from + - + - Initializes a new instance of the class. + Remove leading strings with zeros and adjust for singular/plural - The condition. - Name of the constraint column. - The SQL query. + The STR. + The previous STR. + The t. + - + - Initializes a new instance of the class. + Replaces references to one specific instance of an expression node with another node - The condition. - Name of the constraint column. - Name of the constraint qualified column. - The constraint construction fragment. - The SQL query. - + - Wheres the specified column name. + Moves order-bys to the outermost select if possible - Name of the column. - - + - Ands the specified column name. + Add a sequence of order expressions to an accumulated list, prepending so as + to give precedence to the new expressions over any previous expressions - Name of the column. - + - + - Ors the specified column name. + Rebind order expressions to reference a new alias and add to column declarations if necessary - Name of the column. - - + - Gets or sets the name of the table. + Defines query execution and materialization policies. - The name of the table. - + - Gets the comparison operator. + Determines if a relationship property is to be included in the results of the query - The comp. + - + - Determines whether the specified is equal to the current . + Determines if a relationship property is included, but the query for the related data is + deferred until the property is first accessed. - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - The parameter is null. + + - + - Serves as a hash function for a particular type. + Provides policy specific query translations. This is where choices about inclusion of related objects and how + heirarchies are materialized affect the definition of the queries. - - A hash code for the current . - + + - + - Creates a LIKE statement. + Converts a query into an execution plan. The plan is an function that executes the query and builds the + resulting objects. - The val. + + - + - Creates a LIKE statement and appends a wildcard to the end of the passed-in value. + The mapping related to the policy. - The val. - - + - Creates a LIKE statement and appends a wildcard to the end of the passed-in value. + A simple query mapping that attempts to infer mapping from naming conventionss - The val. - The wild card. - - + - Creates a LIKE statement and appends a wildcard to the end of the passed-in value. + Summary for the Numbers class - The val. - - + - Creates a NOT LIKE statement + Determines whether a number is a natural number (positive, non-decimal) - The val. - + The s item. + + true if [is natural number] [the specified s item]; otherwise, false. + - + - Determines whether [is greater than] [the specified val]. + Determines whether [is whole number] [the specified s item]. - The val. - + The s item. + + true if [is whole number] [the specified s item]; otherwise, false. + - + - Determines whether [is greater than] [the specified val]. + Determines whether the specified s item is integer. - The val. - + The s item. + + true if the specified s item is integer; otherwise, false. + - + - Specifies a SQL IN statement using a nested Select statement + Determines whether the specified s item is number. - The select query. - + The s item. + + true if the specified s item is number; otherwise, false. + - + - Specifies a SQL IN statement + Determines whether the specified value is an even number. - Value array - + The value. + + true if the specified value is even; otherwise, false. + - + - Specifies a SQL IN statement + Determines whether the specified value is an odd number. - Value array - + The value. + + true if the specified value is odd; otherwise, false. + - + - Specifies a SQL IN statement using a nested Select statement + Generates a random number with an upper bound - The select query. + The high. - + - Specifies a SQL Not IN statement + Generates a random number between the specified bounds - Value array + The low. + The high. - + - Specifies a SQL NOT IN statement + Generates a random double - Value array - + - Determines whether [is less than] [the specified val]. + This set of classes abstracts out commands and their parameters so that + the DataProviders can work their magic regardless of the client type. The + System.Data.Common class was supposed to do this, but sort of fell flat + when it came to MySQL and other DB Providers that don't implement the Data + Factory pattern. Abstracts out the assignment of parameters, etc - The val. - - + - Determines whether [is less than] [the specified val]. + Gets or sets the size. - The val. - + The size. - + - Determines whether [is not null] [the specified val]. + Gets or sets the mode. - + The mode. - + - Determines whether the specified val is null. + Gets or sets the name of the parameter. - + The name of the parameter. - + - Determines whether [is between and] [the specified val1]. + Gets or sets the parameter value. - The val1. - The val2. - + The parameter value. - + - Determines whether [is equal to] [the specified val]. + Gets or sets the type of the data. - The val. - + The type of the data. - + - Determines whether [is not equal to] [the specified val]. + Summary for the QueryParameterCollection class - The val. - - + - Gets or sets the condition. + Checks to see if specified parameter exists in the current collection - The condition. + + - + - Gets or sets the name of the column. + returns the specified QueryParameter, if it exists in this collection - The name of the column. + + - + - Gets or sets the fully qualified name of the column. + Adds the specified parameter name. - The name of the column. + Name of the parameter. + The value. - + - Gets or sets the string fragment used when assembling the text of query. + Adds the specified parameter name. - The construction fragment. + Name of the parameter. + The value. + Type of the data. - + - Gets or sets the comparison. + Adds the specified parameter name. - The comparison. + Name of the parameter. + The value. + Type of the data. + The mode. - + - Gets or sets the parameter value. + Summary for the QueryCommandCollection class - The parameter value. - + - Gets or sets the start value. + Summary for the QueryCommand class - The start value. - + - Gets or sets the end value. + - The end value. - + - Gets or sets the in values. + Initializes a new instance of the class. - The in values. + The SQL. + The provider. - + - Gets or sets the in select. + Determines whether [has output params]. - The in select. + + true if [has output params]; otherwise, false. + - + - Gets or sets the name of the parameter. + Adds the parameter. The public AddParameter methods should call this one. - The name of the parameter. + Name of the parameter. + The parameter value. + Size of the max. + Type of the db. + The direction. - + - Gets or sets the type of the db. + Adds the parameter. - The type of the db. + Name of the parameter. + The parameter value. + Type of the data. + The parameter direction. - + - Gets or sets a value indicating whether this constraint is an Aggregate. + Adds the parameter. - - true if this instance is aggregate; otherwise, false. - + Name of the parameter. + The parameter value. + Type of the data. - + - Translates accesses to relationship members into projections or joins + Adds the parameter. + Name of the parameter. + The parameter value. - + - Defines query execution and materialization policies. + Adds the output parameter. + Name of the parameter. + Size of the max. + Type of the db. - + - Determines if a relationship property is to be included in the results of the query + Adds the output parameter. - - + Name of the parameter. + Size of the max. - + - Determines if a relationship property is included, but the query for the related data is - deferred until the property is first accessed. + Adds the output parameter. - - + Name of the parameter. - + - Provides policy specific query translations. This is where choices about inclusion of related objects and how - heirarchies are materialized affect the definition of the queries. + Adds the output parameter. - - + Name of the parameter. + Type of the db. - + - Converts a query into an execution plan. The plan is an function that executes the query and builds the - resulting objects. + Adds a return parameter (RETURN_VALUE) to the command. + - - - - + - The mapping related to the policy. + Suggested by feroalien@hotmail.com + Issue 11 fix + - + - Determines if two expressions are equivalent. Supports DbExpression nodes. + Gets or sets the command timeout (in seconds). + The command timeout. - + - Compare two expressions to determine if they are equivalent + Gets or sets the type of the command. + The type of the command. - + - Returns an Object with the specified Type and whose value is equivalent to the specified object. + Gets or sets the command SQL. - An Object that implements the IConvertible interface. - - An object whose Type is conversionType (or conversionType's underlying type if conversionType - is Nullable<>) and whose value is equivalent to value. -or- a null reference, if value is a null - reference and conversionType is not a value type. - - - This method exists as a workaround to System.Convert.ChangeType(Object, Type) which does not handle - nullables as of version 2.0 (2.0.50727.42) of the .NET Framework. The idea is that this method will - be deleted once Convert.ChangeType is updated in a future version of the .NET Framework to handle - nullable types, so we want this to behave as closely to Convert.ChangeType as possible. - This method was written by Peter Johnson at: - http://aspalliance.com/author.aspx?uId=1026. - - + The command SQL. - + - Executes the specified SQL. + Gets or sets the parameters. + The parameters. - + - Executes the scalar. + A default implementation of IQueryable for use with QueryProvider - The type of the result. - - + - Executes the typed list. + Removes column declarations in SelectExpression's that are not referenced - - - + - Executes the reader. - @@ -3417,379 +3309,412 @@ be part of an evaluated sub-tree. - + - Removes select expressions that don't add any additional semantic value + Removes column declarations in SelectExpression's that are not referenced - + - Replaces references to one specific instance of an expression node with another node. - Supports DbExpression nodes + Converts LINQ query operators to into custom DbExpression's - + - Converts the string method calls Contains,EndsWith and StartsWith into queries + returns the set of all aliases produced by a query source - The MethodCall we are attempting to map to a query. - an expression tree. - + - A holder for 1 or more queries to be executed together + Result from calling ColumnProjector.ProjectColumns - + - Builds the SQL statement. + Splits an expression into two parts + 1) a list of column declarations for sub-expressions that must be evaluated on the server + 2) a expression that describes how to combine/project the columns back together into the correct result - - + - Executes this instance. + Nominator is a class that walks an expression tree bottom up, determining the set of + candidate expressions that are possible columns of a select expression - - + - Executes the queries in and returns a multiple result set reader. + Converts the string method calls Contains,EndsWith and StartsWith into queries + + The MethodCall we are attempting to map to a query. + an expression tree. + + + + Executes the specified SQL. + + + + + Executes the scalar. + The type of the result. - + - Gets a command containing all the queued queries. + Executes the typed list. + - + - Queues the specified query. + Executes the reader. - The query. + - + - Queues the specified query. + Enum for General SQL Functions - - The query. - + - Queues a query for use in a transaction. + - The qry. - + - Queues a query for use in a transaction. + Counts the specified col. - The CMD. + The col. + - + - Queues a query for use in a transaction. + Counts the specified col. - The SQL. - The parameters. + The col. + The alias. + - + - Executes the transaction. + Counts the specified column name. + Name of the column. + - + - Rewrites take and skip expressions into uses of TSQL row_number function + Counts the specified column name. + Name of the column. + The alias. + - + - returns the list of SelectExpressions accessible from the source expression + Sums the specified col. + The col. + - + - Builds an execution plan for a query expression + Sums the specified column name. + Name of the column. + - + - columns referencing the outer alias are turned into special named-value parameters + Sums the specified col. + The col. + The alias. + - + - Initializes the class. + Sums the specified column name. + Name of the column. + The alias. + - + - Strips the last specified chars from a string. + Groups the by. - The source string. - The remove from end. + The col. - + - Strips the last specified chars from a string. + Groups the by. - The source string. - The back down to. + Name of the column. - + - Plurals to singular. + Groups the by. - The source string. + The col. + The alias. - + - Singulars to plural. + Groups the by. - The source string. + Name of the column. + The alias. - + - Make plural when count is not one + Avgs the specified col. - The number of things - The source string. + The col. - + - Removes the specified chars from the beginning of a string. + Avgs the specified column name. - The source string. - The remove from beginning. + Name of the column. - + - Removes chars from the beginning of a string, up to the specified string + Avgs the specified col. - The source string. - The remove up to. + The col. + The alias. - + - Strips the last char from a a string. + Avgs the specified column name. - The source string. + Name of the column. + The alias. - + - Strips the last char from a a string. + Maxes the specified col. - The source string. + The col. - + - Fasts the replace. + Maxes the specified column name. - The original. - The pattern. - The replacement. + Name of the column. - + - Fasts the replace. + Maxes the specified col. - The original. - The pattern. - The replacement. - Type of the comparison. + The col. + The alias. - + - Returns text that is located between the startText and endText tags. + Maxes the specified column name. - The source string. - The text from which to start the crop - The endpoint of the crop + Name of the column. + The alias. - + - Removes excess white space in a string. + Mins the specified col. - The source string. + The col. - + - Removes all non-alpha numeric characters in a string + Mins the specified column name. - The source string. + Name of the column. - + - Creates a string array based on the words in a sentence + Mins the specified col. - The source string. + The col. + The alias. - + - Strips all HTML tags from a string + Mins the specified column name. - The HTML string. + Name of the column. + The alias. - + - Strips all HTML tags from a string and replaces the tags with the specified replacement + Variances the specified col. - The HTML string. - The HTML place holder. + The col. - + - Converts a generic List collection to a single comma-delimitted string. + Variances the specified column name. - The list. + Name of the column. - + - Converts a generic List collection to a single string using the specified delimitter. + Variances the specified col. - The list. - The delimiter. + The col. + The alias. - + - Strips the specified input. + Variances the specified column name. - The source string. - The strip value. + Name of the column. + The alias. - + - Converts ASCII encoding to Unicode + Standards the deviation. - The ASCII code. + The col. - + - Converts Text to HTML-encoded string + Standards the deviation. - The text string. + Name of the column. - + - Converts HTML-encoded bits to Text + Standards the deviation. - The entity text. + The col. + The alias. - + - Formats the args using String.Format with the target string as a format string. + Standards the deviation. - The format string passed to String.Format - The args passed to String.Format + Name of the column. + The alias. - + - Strings to enum. + Initializes a new instance of the class. - - The value. - + Name of the column. + Type of the aggregate. - + - Fills the entities. + Initializes a new instance of the class. + Name of the column. + The alias. + Type of the aggregate. - + - Converts US State Name to it's two-character abbreviation. Returns null if the state name was not found. + Initializes a new instance of the class. - US State Name (ie Texas) - + The column. + Type of the aggregate. - + - Converts a two-character US State Abbreviation to it's official Name Returns null if the abbreviation was not found. + Initializes a new instance of the class. - US State Name (ie Texas) - + The column. + The alias. + Type of the aggregate. - + - Fills the US States. + Gets the type of the function. + The agg. + - + - Summary for the RegexPattern class + Gets the SQL function call without an alias. Example: AVG(UnitPrice). + - + - Removes column declarations in SelectExpression's that are not referenced + Overrides ToString() to return the SQL Function call + - + - A default implementation of IQueryable for use with QueryProvider + Gets or sets the type of the aggregate. + The type of the aggregate. - + - Replaces references to one specific instance of an expression node with another node + Gets or sets the name of the column. + The name of the column. - + - TSQL specific QueryLanguage + Gets or sets the alias. + The alias. - + - Removes column declarations in SelectExpression's that are not referenced + Common interface for controlling defer-loadable types - + - Converts LINQ query operators to into custom DbExpression's + A list implementation that is loaded the first the contents are examined + - + - Rewrite aggregate expressions, moving them into same select expression that has the group-by clause + returns the list of SelectExpressions accessible from the source expression - + - Removes joins expressions that are identical to joins that already exist + Builds an execution plan for a query expression - + - Removes duplicate column declarations that refer to the same underlying column + columns referencing the outer alias are turned into special named-value parameters @@ -3848,739 +3773,852 @@ SQL select expression - + - For Jeff Atwood - http://www.codinghorror.com/blog/archives/000989.html + Summary for the Validation class + + - A class which wraps an inline SQL call + Determines whether the specified eval string contains only alpha characters. + The eval string. + + true if the specified eval string is alpha; otherwise, false. + - + - Initializes a new instance of the class. - Warning: This method assumes the default provider is intended. - Call InlineQuery(string providerName) if this is not the case. + Determines whether the specified eval string contains only alphanumeric characters - The SQL. + The eval string. + + true if the string is alphanumeric; otherwise, false. + - + - Initializes a new instance of the class. + Determines whether the specified eval string contains only alphanumeric characters - The SQL. - The values. + The eval string. + if set to true [allow spaces]. + + true if the string is alphanumeric; otherwise, false. + + + + + Determines whether the specified eval string contains only numeric characters + + The eval string. + + true if the string is numeric; otherwise, false. + + + + + Determines whether the specified email address string is valid based on regular expression evaluation. + + The email address string. + + true if the specified email address is valid; otherwise, false. + + + + + Determines whether the specified string is lower case. + + The input string. + + true if the specified string is lower case; otherwise, false. + + + + + Determines whether the specified string is upper case. + + The input string. + + true if the specified string is upper case; otherwise, false. + + + + + Determines whether the specified string is a valid GUID. + + The GUID. + + true if the specified string is a valid GUID; otherwise, false. + + + + + Determines whether the specified string is a valid US Zip Code, using either 5 or 5+4 format. + + The zip code. + + true if it is a valid zip code; otherwise, false. + + + + + Determines whether the specified string is a valid US Zip Code, using the 5 digit format. + + The zip code. + + true if it is a valid zip code; otherwise, false. + + + + + Determines whether the specified string is a valid US Zip Code, using the 5+4 format. + + The zip code. + + true if it is a valid zip code; otherwise, false. + + + + + Determines whether the specified string is a valid Social Security number. Dashes are optional. + + The Social Security Number + + true if it is a valid Social Security number; otherwise, false. + - + - Initializes a new instance of the class. + Determines whether the specified string is a valid IP address. - The provider. + The ip address. + + true if valid; otherwise, false. + - + - Gets the command. + Determines whether the specified string is a valid US phone number using the referenced regex string. - + The telephone number. + + true if valid; otherwise, false. + - + - Executes the specified SQL. + Determines whether the specified string is a valid currency string using the referenced regex string. + The currency string. + + true if valid; otherwise, false. + - + - Executes the scalar. + Determines whether the specified string is a valid URL string using the referenced regex string. - The type of the result. - + The URL string. + + true if valid; otherwise, false. + - + - Executes the typed list. + Determines whether the specified string is consider a strong password based on the supplied string. - - + The password. + + true if strong; otherwise, false. + - + - Executes the reader. + Determines whether the specified string is a valid credit, based on matching any one of the eight credit card strings - + The credit card. + + true if valid; otherwise, false. + - + - Adds relationship to query results depending on policy + Determines whether the specified string is an American Express, Discover, MasterCard, or Visa + The credit card. + + true if valid; otherwise, false. + - + - Converts user arguments into named-value parameters + Determines whether the specified string is an American Express card + The credit card. + + true if valid; otherwise, false. + - + - Summary for the Numbers class + Determines whether the specified string is an Carte Blanche card + The credit card. + + true if valid; otherwise, false. + - + - Determines whether a number is a natural number (positive, non-decimal) + Determines whether the specified string is an Diner's Club card - The s item. + The credit card. - true if [is natural number] [the specified s item]; otherwise, false. + true if valid; otherwise, false. - + - Determines whether [is whole number] [the specified s item]. + Determines whether the specified string is a Discover card - The s item. + The credit card. - true if [is whole number] [the specified s item]; otherwise, false. + true if valid; otherwise, false. - + - Determines whether the specified s item is integer. + Determines whether the specified string is an En Route card - The s item. + The credit card. - true if the specified s item is integer; otherwise, false. + true if valid; otherwise, false. - + - Determines whether the specified s item is number. + Determines whether the specified string is an JCB card - The s item. + The credit card. - true if the specified s item is number; otherwise, false. + true if valid; otherwise, false. - + - Determines whether the specified value is an even number. + Determines whether the specified string is a Master Card credit card - The value. + The credit card. - true if the specified value is even; otherwise, false. + true if valid; otherwise, false. - + - Determines whether the specified value is an odd number. + Determines whether the specified string is Visa card. - The value. + The credit card. - true if the specified value is odd; otherwise, false. + true if valid; otherwise, false. - + - Generates a random number with an upper bound + Cleans the credit card number, returning just the numeric values. - The high. + The credit card. - + - Generates a random number between the specified bounds + Determines whether the credit card number, once cleaned, passes the Luhn algorith. + See: http://en.wikipedia.org/wiki/Luhn_algorithm - The low. - The high. + The credit card number. - + - Generates a random double + Determines whether the specified int array passes the Luhn algorith - + The int array to evaluate + + true if it validates; otherwise, false. + - + - Process the passed-in LINQ expression + Determine whether the passed string is numeric, by attempting to parse it to a double - + The string to evaluated for numeric conversion + + true if the string can be converted to a number; otherwise, false. + - + - Gets a value indicating whether this instance is numeric. + Summary for the RegexPattern class - - true if this instance is numeric; otherwise, false. - - + - Gets a value indicating whether this instance is date time. + An enumeration value for no options configured. - - true if this instance is date time; otherwise, false. - - + - Gets a value indicating whether this instance is string. + The default set of options (right now the same as none). - true if this instance is string; otherwise, false. - + - Summary for the ReservedColumnName class + Use this flag to let the repository run migrations. - + - This set of classes abstracts out commands and their parameters so that - the DataProviders can work their magic regardless of the client type. The - System.Data.Common class was supposed to do this, but sort of fell flat - when it came to MySQL and other DB Providers that don't implement the Data - Factory pattern. Abstracts out the assignment of parameters, etc + - + - Gets or sets the size. + - The size. - + - Gets or sets the mode. + - The mode. - + - Gets or sets the name of the parameter. + Summary for the Inflector class - The name of the parameter. - + - Gets or sets the parameter value. + Initializes the class. - The parameter value. - + - Gets or sets the type of the data. + Adds the irregular rule. - The type of the data. + The singular. + The plural. - + - Summary for the QueryParameterCollection class + Adds the unknown count rule. + The word. - + - Checks to see if specified parameter exists in the current collection + Adds the plural rule. - + The rule. + The replacement. + + + + Adds the singular rule. + + The rule. + The replacement. + + + + Makes the plural. + + The word. - + - returns the specified QueryParameter, if it exists in this collection + Makes the singular. - + The word. + + + + + Applies the rules. + + The rules. + The word. - + - Adds the specified parameter name. + Converts the string to title case. - Name of the parameter. - The value. + The word. + - + - Adds the specified parameter name. + Converts the string to human case. - Name of the parameter. - The value. - Type of the data. + The lowercase and underscored word. + - + - Adds the specified parameter name. + Convert string to proper case - Name of the parameter. - The value. - Type of the data. - The mode. + The source string. + - + - Summary for the QueryCommandCollection class + Converts the string to pascal case. + The lowercase and underscored word. + - + - Summary for the QueryCommand class + Converts text to pascal case... + The text. + if set to true [remove underscores]. + - + - + Converts the string to camel case. + The lowercase and underscored word. + - + - Initializes a new instance of the class. + Adds the underscores. - The SQL. - The provider. + The pascal cased word. + - + - Determines whether [has output params]. + Makes the initial caps. - - true if [has output params]; otherwise, false. - + The word. + - + - Adds the parameter. The public AddParameter methods should call this one. + Makes the initial lower case. - Name of the parameter. - The parameter value. - Size of the max. - Type of the db. - The direction. + The word. + - + - Adds the parameter. + Adds the ordinal suffix. - Name of the parameter. - The parameter value. - Type of the data. - The parameter direction. + The number. + - + - Adds the parameter. + Converts the underscores to dashes. - Name of the parameter. - The parameter value. - Type of the data. + The underscored word. + - + - Adds the parameter. + Summary for the InflectorRule class - Name of the parameter. - The parameter value. - + - Adds the output parameter. + - Name of the parameter. - Size of the max. - Type of the db. - + - Adds the output parameter. + - Name of the parameter. - Size of the max. - + - Adds the output parameter. + Initializes a new instance of the class. - Name of the parameter. + The regex pattern. + The replacement text. - + - Adds the output parameter. + Applies the specified word. - Name of the parameter. - Type of the db. + The word. + - + - Adds a return parameter (RETURN_VALUE) to the command. - + - Suggested by feroalien@hotmail.com - Issue 11 fix + Equals to. - + The value. + - + - Gets or sets the command timeout (in seconds). + Determines whether the specified is equal to the current . - The command timeout. + The to compare with the current . + + true if the specified is equal to the current ; otherwise, false. + + The parameter is null. - + - Gets or sets the type of the command. + Serves as a hash function for a particular type. - The type of the command. + + A hash code for the current . + - + - Gets or sets the command SQL. + Returns a that represents the current . - The command SQL. + + A that represents the current . + - + - Gets or sets the parameters. + Initializes a new instance of the class. - The parameters. - + - + Initializes a new instance of the class. - + The table. - + - Initializes a new instance of the class. + Sets the specified column name. - The query. + Name of the column. + - + - Builds the paged select statement. + Sets the expression. + The column. - + - Builds the insert statement. + Executes this instance. - + - Singles the specified expression. + - - The expression. - - + - Singles the specified key. + Initializes a new instance of the class. - - The key. - + The provider. - + - Retrieves subset of records from the database matching the expression + Sets the specified columns. + The columns. + - + - Gets the paged. + Parses the object value. - - Index of the page. - Size of the page. + The expression. - + - Gets the paged. + Parses the passed-in Expression into exclusive (WHERE x=y) constraints. - - The sort by. - Index of the page. - Size of the page. + The exp. - + - Adds the specified item, setting the key if available. + Parses the passed-in Expression into exclusive (WHERE x=y) constraint. - - The item. + The expression. - + - Adds a lot of the items using a transaction. + Determines whether the specified exp is constraint. - - The items. + The exp. + + true if the specified exp is constraint; otherwise, false. + - + - Updates the specified item. + Gets the constant value. - - The item. + The exp. - + - Updates lots of items using a transaction. + - - The items. - + - + - Deletes the specified key. + Initializes a new instance of the class. - - The key. - + The query. - + - Deletes 1 or more items. + Builds the paged select statement. - - The expression. - + - Deletes 1 or more items. + Builds the insert statement. - - The items. - + - Migrates this instance. + - - + - Removes one or more SelectExpression's by rewriting the expression tree to not include them, promoting - their from clause expressions and rewriting any column expressions that may have referenced them to now - reference the underlying data directly. + Initializes a new instance of the class. - + - Summary for the Inflector class + Initializes a new instance of the class. + The provider. - + - Initializes the class. + Builds the SQL statement. + - + - Adds the irregular rule. + Adds the specified columns into a new Insert object. - The singular. - The plural. + + The columns. + - + - Adds the unknown count rule. + Adds the specified columns into a new Insert object. - The word. + + The TBL. + - + - Adds the plural rule. + Inits this instance. - The rule. - The replacement. + - + - Adds the singular rule. + Values the specified column. - The rule. - The replacement. + The column. + The column value. + - + - Makes the plural. + Values the specified column. - The word. + The column. + The column value. + Type of the db. - + - Makes the singular. + Valueses the specified values. - The word. + The values. - + - Applies the rules. + Values the expression. - The rules. - The word. + The values. - + - Converts the string to title case. + Returns a that represents the current . - The word. - + + A that represents the current . + - + - Converts the string to human case. + Executes this instance. - The lowercase and underscored word. - + - Convert string to proper case + Removes select expressions that don't add any additional semantic value - The source string. - - + - Converts the string to pascal case. + Removes duplicate column declarations that refer to the same underlying column - The lowercase and underscored word. - - + - Converts text to pascal case... + Duplicate the query expression by making a copy with new table aliases - The text. - if set to true [remove underscores]. - - + - Converts the string to camel case. + Rewrite all column references to one or more aliases to a new single alias - The lowercase and underscored word. - - + - Adds the underscores. + Determines if a SelectExpression contains any aggregate expressions - The pascal cased word. - - + - Makes the initial caps. + Indicates that a per-thread shared DbConnection object should be used the default DataProvider + (or alternativley a specific DataProvider if one is given) when communicating with the database. + This class is designed to be used within a using () {} block and in conjunction with a TransactionScope object. + It's purpose is to force a common DbConnection object to be used which has the effect of avoiding promotion + of a System.Transaction ambient Transaction to the DTC where possible. + When this class is created, it indicates to the underlying DataProvider that is should use a shared DbConnection + for subsequent operations. When the class is disposed (ie the using() {} block ends) it will indicate to the + underlying provider that it should no longer it's current shared connection and should Dispose() it. - The word. - - + - Makes the initial lower case. + Used to support nesting. By keeping a stack of all instances of the class that are created on this thread + thread we know when it is safe to Reset the underlying shared connection. - The word. - - + - Adds the ordinal suffix. + Indicates to the default DataProvider that it should use a per-thread shared connection. - The number. - - + - Converts the underscores to dashes. + Indicates to the default DataProvider that it should use a per-thread shared connection using the given connection string. - The underscored word. - + The connection string. + Name of the provider. - + - Summary for the InflectorRule class + Indicates to the specified DataProvider that it should use a per-thread shared connection. + The data provider. - + - + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - + - + Releases unmanaged and - optionally - managed resources + true to release both managed and unmanaged resources; false to release only unmanaged resources. - + - Initializes a new instance of the class. + Provides access to underlying connection that is shared per thread - The regex pattern. - The replacement text. + The current connection. - + - Applies the specified word. + Used within SubSonic to automatically manage a SqlConnection. If a shared connection is available + for the specified provider on the current thread, that shared connection will be used. + Otherwise, a new connection will be created. + Note that if a shared connection is used, it will NOT be automatically disposed - that is up to the caller. + Lifetime management of the shared connection is taken care of by using a + If a new connection is created, it will be automatically disposed when this AutomaticConnectionScope object + is disposed. - The word. - - + - Summary for the Files class + Initializes a new instance of the class. + The provider. - + - Read a text file and obtain it's contents. + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - The complete file path to write to. - String containing the content of the file. - + - Creates or opens a file for writing and writes text to it. + Releases unmanaged and - optionally - managed resources - The complete file path to write to. - A String containing text to be written to the file. + true to release both managed and unmanaged resources; false to release only unmanaged resources. - + - Update text within a file by replacing a substring within the file. + Gets the connection. - The complete file path to write to. - A String to be replaced. - A String to replace all occurrences of lookFor. + + - + - Writes out a string to a file. + Gets the connection. - The complete file path to write to. - A String containing text to be written to the file. + The connection. - + - Fetches a web page + Gets a value indicating whether this instance is using shared connection. - The URL. - + + true if this instance is using shared connection; otherwise, false. + diff --git a/NzbDrone.Core/Libraries/SubSonic.Core.dll b/NzbDrone.Core/Libraries/SubSonic.Core.dll index cb44927f6..f342c91de 100644 Binary files a/NzbDrone.Core/Libraries/SubSonic.Core.dll and b/NzbDrone.Core/Libraries/SubSonic.Core.dll differ diff --git a/NzbDrone.Core/Libraries/UPnP.dll b/NzbDrone.Core/Libraries/UPnP.dll deleted file mode 100644 index f0a1a7131..000000000 Binary files a/NzbDrone.Core/Libraries/UPnP.dll and /dev/null differ