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,26 +4,1431 @@ 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. + + + + + Loads a T object + + + The item. + The expression. + + + + + Returns all T items + + + + + Returns a single record + + + + + Returns a server-side Paged List + + + + + Returns a server-side Paged List + + + + + Returns a server-side Paged List + + + + + Returns an IQueryable based on the passed-in Expression Chinook Database + + + + + 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 + + + + + Deletes the passed-in T items + + + + + Deletes the passed-in T items + + + + + Deletes the passed-in T item + + + + + Deletes the passed-in T item + + + + + Deletes the T item by Primary Key + + + + + Deletes the T item by Primary Key + + + + + Deletes 0 to n T items from the Database based on the passed-in Expression + + + + + Deletes 0 to n T items from the Database based on the passed-in Expression + + + + + Finds the first sub-expression that accesses a Query<T> object + + + + + Converts user arguments into named-value parameters + + + + + 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 + + + + + + + Coerces an IDataReader to try and load an object using name/property matching + + + + + Loads a single primitive value type + + + + + + Toes the type of the enumerable value. + + + The IDataReader to read from. + + + + + Determines whether [is core system type] [the specified type]. + + The type. + + true if [is core system type] [the specified type]; otherwise, false. + + + + + Coerces an IDataReader to load an enumerable of T + + + + + Invoked when a new item is created + + + + Creates a typed list from an IDataReader + + + + + Builds a SubSonic UPDATE query from the passed-in object + + + + + Builds a SubSonic INSERT query from the passed-in object + + + + + Builds a SubSonic DELETE query from the passed-in object + + + + + Defines the language rules for the query provider + + + - + - - - + + + + Generates the command line. + + + + + + Generates the constraints. + + + + + + Generates from list. + + + + + + Generates the order by. + + + + + + Generates the group by. + + + + + + Generates the joins. + + + + + + Gets the paging SQL wrapper. + + + + + + Gets the select columns. + + + + + + Finds the column. + + Name of the column. + + + + + Builds the select statement. + + + + + + Builds the paged select statement. + + + + + + Builds the update statement. + + + + + + Builds the insert statement. + + + + + + Builds the delete statement. + + + + + + Sets the insert query. + + The q. + + + + SqlFragment. Field values may change depending on the inheriting Generator. - + + + Initializes a new instance of the class. + + + + + Sets the insert query. + + The q. + + + + Finds the column. + + Name of the column. + + + + + Generates the group by. + + + + + + Generates the command line. + + + + + + Generates the joins. + + + + + + Generates from list. + + + + + + Generates the constraints. + + + + + + Generates the order by. + + + + + + Gets the select columns. + + + + + + Gets the paging SQL wrapper. + + + + + + Builds the paged select statement. + + + + + + Builds the select statement. + + + + + + Builds the update statement. + + + + + + Builds the insert statement. + + + + + + Builds the delete statement. + + + + + + Qualifies the name of the table. + + The TBL. + + + + + Gets the qualified select. + + The table. + + + + + Generates the select column list. + + + + + + Builds the aggregate commands. + + + + + + Generates the 'SELECT' part of an + + 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 + + + + + AND operator + + + + + OR Operator + + + + + SQL Comparison Operators + + + + + Summary for the SqlComparison class + + + + + A Class for handling SQL Constraint generation + + + + + The query that this constraint is operating on + + + + + Initializes a new instance of the class. + + The condition. + Name of the constraint column. + + + + Initializes a new instance of the class. + + The condition. + Name of the constraint column. + Name of the constraint qualified column. + + + + Initializes a new instance of the class. + + The condition. + Name of the constraint column. + Name of the constraint qualified column. + The constraint construction fragment. + + + + Initializes a new instance of the class. + + The condition. + Name of the constraint column. + The SQL query. + + + + Initializes a new instance of the class. + + 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. + + Name of the column. + + + + + Ands the specified column name. + + Name of the column. + + + + + Ors the specified column name. + + Name of the column. + + + + + Gets or sets the name of the table. + + The name of the table. + + + + Gets the comparison operator. + + The comp. + + + + + Determines whether the specified is equal to the current . + + 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. + + + A hash code for the current . + + + + + Creates a LIKE statement. + + The val. + + + + + Creates a LIKE statement and appends a wildcard to the end of the passed-in value. + + The val. + + + + + Creates a LIKE statement and appends a wildcard to the end of the passed-in value. + + The val. + The wild card. + + + + + Creates a LIKE statement and appends a wildcard to the end of the passed-in value. + + The val. + + + + + Creates a NOT LIKE statement + + The val. + + + + + Determines whether [is greater than] [the specified val]. + + The val. + + + + + Determines whether [is greater than] [the specified val]. + + The val. + + + + + Specifies a SQL IN statement using a nested Select statement + + The select query. + + + + + Specifies a SQL IN statement + + Value array + + + + + Specifies a SQL IN statement + + Value array + + + + + Specifies a SQL IN statement using a nested Select statement + + The select query. + + + + + Specifies a SQL Not IN statement + + Value array + + + + + Specifies a SQL NOT IN statement + + Value array + + + + + Determines whether [is less than] [the specified val]. + + The val. + + + + + Determines whether [is less than] [the specified val]. + + The val. + + + + + Determines whether [is not null] [the specified val]. + + + + + + Determines whether the specified val is null. + + + + + + Determines whether [is between and] [the specified val1]. + + The val1. + The val2. + + + + + Determines whether [is equal to] [the specified val]. + + The val. + + + + + Determines whether [is not equal to] [the specified val]. + + The val. + + + + + Gets or sets the condition. + + The condition. + + + + Gets or sets the name of the column. + + The name of the column. + + + + Gets or sets the fully qualified name of the column. + + The name of the column. + + + + Gets or sets the string fragment used when assembling the text of query. + + The construction fragment. + + + + Gets or sets the comparison. + + The comparison. + + + + Gets or sets the parameter value. + + The parameter value. + + + + Gets or sets the start value. + + The start value. + + + + Gets or sets the end value. + + The end value. + + + + Gets or sets the in values. + + The in values. + + + + Gets or sets the in select. + + The in select. + + + + Gets or sets the name of the parameter. + + The name of the parameter. + + + + Gets or sets the type of the db. + + The type of the db. + + + + Gets or sets a value indicating whether this constraint is an Aggregate. + + + true if this instance is aggregate; otherwise, false. + + + + + returns the set of all aliases produced by a query source + + + + + Removes joins expressions that are identical to joins that already exist + + + + + MySQL specific QueryLanguage + + + + + + Defines the language rules for the query provider + + + + + Determines whether the CLR type corresponds to a scalar data type in the query language + + + + + + + Determines whether the given expression can be represented as a column in a select expressionss + + + + + + + Provides language specific query translation. Use this to apply language specific rewrites or + to make assertions/validations about the query. + + + + + + + Converts the query expression into text of this query language + + + + + + + Determine which sub-expressions must be parameters + + + + + + + Creates a set of SQL commands for synchronizing your database with your object set + + + Type related helper methods + + + SQLite specific QueryLanguage + + + + + Adds relationship to query results depending on policy + + + + + Holds list of tables, views, stored procedures, etc. + + + + + + + + + + + Initializes a new instance of the class. + + The query. + + + + Gets the type of the native. + + Type of the db. + + + + + Generates SQL for all the columns in table + + Table containing the columns. + + SQL fragment representing the supplied columns. + + + + + Generates from list. + + + + + + Sets the column attributes. + + The column. + + + + + Builds the paged select statement. + + + + + + Builds the delete query. + + The item. + + + + + Builds the insert query. + + The item. + + + + + Builds the update query. + + 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. + + + + Initializes a new instance of the class. + + The SQL. + The values. + + + + Initializes a new instance of the class. + + The provider. + + + + Gets the command. + + + + + + Executes the specified SQL. + + + + + Executes the scalar. + + The type of the result. + + + + + Executes the typed list. + + + + + + + Executes the reader. + + + + + + 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. + + + + Initializes a new instance of the class. + + The SQL. + The values. + + + + Initializes a new instance of the class. + + The provider. + + + + A holder for 1 or more queries to be executed together + + + + + Builds the SQL statement. + + + + + + Executes this instance. + + + + + + Executes the queries in and returns a multiple result set reader. + + + + + + Gets a command containing all the queued queries. + + + + + + Queues the specified query. + + The query. + + + + Queues the specified query. + + + The query. + + + + Queues a query for use in a transaction. + + The qry. + + + + Queues a query for use in a transaction. + + The CMD. + + + + Queues a query for use in a transaction. + + The SQL. + The parameters. + + + + Executes the transaction. + + + + + TSQL specific QueryLanguage + + + + + Attempts to rewrite cross-apply and outer-apply joins as inner and left-outer joins + + + + + Writes out an expression tree (including DbExpression nodes) in a C#-ish syntax + + + + + Writes out an expression tree in a C#-ish syntax + + + + + A basic abstract LINQ query provider + + + + + Optional interface for IQueryProvider to implement Query<T>'s QueryText property. + + + + + Simple implementation of the IGrouping<TKey, TElement> interface + + + + + + + Formats a query expression into TSQL language syntax + + + + + Formats a query expression into TSQL language syntax + + + + + rewrites nested projections into client-side joins + + + + + Defines mapping information and rules for the query provider + + + + + Determines if a give CLR type is mapped as a database entity + + + + + + + Deterimines is a property is mapped onto a column or relationship + + + + + + + Determines if a property is mapped onto a column + + + + + + + Determines if a property represents or is part of the entities unique identity (often primary key) + + + + + + + Determines if a property is mapped as a relationship + + + + + + + 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 + + + + + + + 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. + + + + + + + + Get the members for the key properities to be joined in an association relationship + + + + + + + + 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. + + + + + + + + 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 expected type. + The actual type. + + + + + Apply mapping translations to this expression + + + + + + + The language related to the mapping + + + + + A LINQ IQueryable query provider that executes database queries over a DbConnection + + + + + DbQueryProvider constrcutor that allows for external control of policy + to allow for new types of databases. + + + + + Converts the query expression into text that corresponds to the command that would be executed. + Useful for debugging. + + + + + + + Execute the query expression (does translation, etc.) + + + + + + + Convert the query expression into an execution plan + + + + + + + Do all query translations execpt building the execution plan + + + + + + + Determines whether a given expression can be executed locally. + (It contains no parts that should be translated to the target environment.) + + + + + + + Execute an actual query specified in the target language using the sADO connection + + + + + + + + + Get an IEnumerable that will execute the specified query when enumerated + + + + + + + + + Get an ADO command object initialized with the command-text and parameters + + + + + + + + + Write a command to the log + + + @@ -108,72 +1513,685 @@ + + + Singles the specified expression. + + + The expression. + + + + + Singles the specified key. + + + The key. + + + + + Retrieves subset of records from the database matching the expression + + + + + Gets the paged. + + + Index of the page. + Size of the page. + + + + + Gets the paged. + + + The sort by. + Index of the page. + Size of the page. + + + + + Adds the specified item, setting the key if available. + + + The item. + + + + + Adds a lot of the items using a transaction. + + + The items. + + + + Updates the specified item. + + + The item. + + + + + Updates lots of items using a transaction. + + + The items. + + + + + Deletes the specified key. + + + The key. + + + + + Deletes 1 or more items. + + + The expression. + + + + + Deletes 1 or more items. + + + The items. + + + + + Migrates this instance. + + + + + + Formats a query expression into TSQL language syntax + + + + + 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. + + + + + + Process the passed-in LINQ expression + + + + + + Initializes the shared connection. + + + + + + Initializes the shared connection. + + The shared connection string. + + + + + Resets the shared connection. + + + + + Adds the params. + + The CMD. + The qry. + + + + Converts a data reader into a sequence of objects using a projector function on each row + + + The reader. + The fn projector. + + + + + Gets a value indicating whether [current connection string is default]. + + + true if [current connection string is default]; otherwise, false. + + + + + Gets or sets the current shared connection. + + The current shared connection. + + + + Creates a reusable, parameterized representation of a query that caches the execution plan + + + + + Summary for the Files class + + + + + Read a text file and obtain it's contents. + + 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. + + The complete file path to write to. + A String containing text to be written to the file. + + + + 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. + + + + Writes out a string to a file. + + The complete file path to write to. + A String containing text to be written to the file. + + + + Fetches a web page + + The URL. + + + + + Gets a value indicating whether this instance is numeric. + + + true if this instance is numeric; otherwise, false. + + + + + Gets a value indicating whether this instance is date time. + + + true if this instance is date time; otherwise, false. + + + + + Gets a value indicating whether this instance is string. + + true if this instance is string; otherwise, false. + + + + Gets a value indicating whether this instance is numeric. + + + true if this instance is numeric; otherwise, false. + + + + + Gets a value indicating whether this instance is date time. + + + true if this instance is date time; otherwise, false. + + + + + Gets a value indicating whether this instance is string. + + true if this instance is string; otherwise, false. + + + + Summary for the ReservedColumnName class + + + + + 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. + + Name of the table. + Name of the column. + + + + + Gets the type of the native. + + Type of the db. + + + + + Generates the columns. + + Table containing the columns. + + SQL fragment representing the supplied columns. + + + + + Sets the column attributes. + + The column. + + + + + 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. + + Name of the table. + Name of the column. + + + + + Gets the type of the native. + + Type of the db. + + + + + Generates the columns. + + Table containing the columns. + + SQL fragment representing the supplied columns. + + + + + Sets the column attributes. + + The column. + + + + + Gets an ITable from the DB based on name + + + + + Creates a list of table names + + + + + Sets the column attributes. + + The column. + + + + + Gets the type of the db. + + Type of the SQL. + + Returns Schema instance with empty lists. - + - Defines the language rules for the query provider + Rewrites nested singleton projection into server-side joins - + - Defines the language rules for the query provider + Initializes the class. - + - Determines whether the CLR type corresponds to a scalar data type in the query language + Strips the last specified chars from a string. - + The source string. + The remove from end. - + - Determines whether the given expression can be represented as a column in a select expressionss + Strips the last specified chars from a string. - + The source string. + The back down to. - + - Provides language specific query translation. Use this to apply language specific rewrites or - to make assertions/validations about the query. + Plurals to singular. - + The source string. - + - Converts the query expression into text of this query language + Singulars to plural. - + The source string. - + - Determine which sub-expressions must be parameters + Make plural when count is not one - + The number of things + The source string. - + - An enumeration value for no options configured. + Removes the specified chars from the beginning of a string. + + The source string. + The remove from beginning. + + + + + Removes chars from the beginning of a string, up to the specified string + + The source string. + The remove up to. + + + + + Strips the last char from a a string. + + The source string. + + + + + Strips the last char from a a string. + + The source string. + + + + + Fasts the replace. + + The original. + The pattern. + The replacement. + + + + + Fasts the replace. + + The original. + The pattern. + The replacement. + Type of the comparison. + + + + + Returns text that is located between the startText and endText tags. + + The source string. + The text from which to start the crop + The endpoint of the crop + + + + + Removes excess white space in a string. + + The source string. + + + + + Removes all non-alpha numeric characters in a string + + The source string. + + + + + Creates a string array based on the words in a sentence + + The source string. + + + + + Strips all HTML tags from a string + + The HTML string. + + + + + Strips all HTML tags from a string and replaces the tags with the specified replacement + + The HTML string. + The HTML place holder. + + + + + Converts a generic List collection to a single comma-delimitted string. + + The list. + + + + + Converts a generic List collection to a single string using the specified delimitter. + + The list. + The delimiter. + + + + + Strips the specified input. + + The source string. + The strip value. + + + + + Converts ASCII encoding to Unicode + + The ASCII code. + + + + + Converts Text to HTML-encoded string + + The text string. + + + + + Converts HTML-encoded bits to Text + + The entity text. + + + + + Formats the args using String.Format with the target string as a format string. + + The format string passed to String.Format + The args passed to String.Format + + + + + Strings to enum. + + + The value. + + + + + Fills the entities. - + - The default set of options (right now the same as none). + Converts US State Name to it's two-character abbreviation. Returns null if the state name was not found. + + US State Name (ie Texas) + + + + + Converts a two-character US State Abbreviation to it's official Name Returns null if the abbreviation was not found. + + US State Name (ie Texas) + + + + + Fills the US States. - + - Use this flag to let the repository run migrations. + Type related helper methods + + + Removes the column. + + + + + + + + Sets the column attributes. + + The column. + + + + + Gets the type of the db. + + Type of the SQL. + + @@ -548,6 +2566,814 @@ + + + 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. + + + + + Rewrites take and skip expressions into uses of TSQL row_number function + + + + + Translates accesses to relationship members into projections or joins + + + + + Determines if two expressions are equivalent. Supports DbExpression nodes. + + + + + Compare two expressions to determine if they are equivalent + + + + + + + + + + Initializes a new instance of the class. + + The provider. + The columns. + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + 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. + + + + + + + Expressions the specified SQL expression. + + The SQL expression. + + + + + Tops the specified top. + + The top. + + + + + Gets the type of the native. + + Type of the db. + + + + + Generates the columns. + + Table containing the columns. + + SQL fragment representing the supplied columns. + + + + + Builds a CREATE TABLE statement. + + + + + + + Sets the column attributes. + + The column. + + + + + Gets the type of the db. + + Type of my SQL. + + + + + Rewrite aggregate expressions, moving them into same select expression that has the group-by clause + + + + + Replaces references to one specific instance of an expression node with another node. + Supports DbExpression nodes + + + + + Summary for the Dates class + + + + + Returns a date in the past by days. + + The days. + + + + + Returns a date in the future by days. + + The days. + + + + + Returns a date in the past by hours. + + The hours. + + + + + Returns a date in the future by hours. + + The hours. + + + + + Returns a date in the past by minutes + + The minutes. + + + + + Returns a date in the future by minutes. + + The minutes. + + + + + Gets a date in the past according to seconds + + The seconds. + + + + + Gets a date in the future by seconds. + + The seconds. + + + + + Diffs the specified date. + + 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. + + + + + 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. + + + + + 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. + + + + + Returns a double indicating the number of days between two dates (past is negative) + + 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. + + The start time. + The end time. + + + + + Counts the number of weekends between two dates. + + The start time. + The end time. + + + + + Verifies if the object is a date + + The dt. + + true if the specified dt is date; otherwise, false. + + + + + Checks to see if the date is a week day (Mon - Fri) + + The dt. + + true if [is week day] [the specified dt]; otherwise, false. + + + + + Checks to see if the date is Saturday or Sunday + + The dt. + + true if [is week end] [the specified dt]; otherwise, false. + + + + + 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. + + + + + Given a datetime object, returns the formatted month and day, i.e. "April 15th" + + The date to extract the string from + + + + + Given a datetime object, returns the formatted day, "15th" + + The date to extract the string from + + + + + Remove leading strings with zeros and adjust for singular/plural + + The STR. + The previous STR. + The t. + + + + + Replaces references to one specific instance of an expression node with another node + + + + + Moves order-bys to the outermost select if possible + + + + + Add a sequence of order expressions to an accumulated list, prepending so as + to give precedence to the new expressions over any previous expressions + + + + + + Rebind order expressions to reference a new alias and add to column declarations if necessary + + + + + Defines query execution and materialization policies. + + + + + Determines if a relationship property is to be included in the results of the query + + + + + + + Determines if a relationship property is included, but the query for the related data is + deferred until the property is first accessed. + + + + + + + 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. + + + + + + + Converts a query into an execution plan. The plan is an function that executes the query and builds the + resulting objects. + + + + + + + + The mapping related to the policy. + + + + + A simple query mapping that attempts to infer mapping from naming conventionss + + + + + Summary for the Numbers class + + + + + Determines whether a number is a natural number (positive, non-decimal) + + The s item. + + true if [is natural number] [the specified s item]; otherwise, false. + + + + + Determines whether [is whole number] [the specified s item]. + + The s item. + + true if [is whole number] [the specified s item]; otherwise, false. + + + + + Determines whether the specified s item is integer. + + The s item. + + true if the specified s item is integer; otherwise, false. + + + + + Determines whether the specified s item is number. + + The s item. + + true if the specified s item is number; otherwise, false. + + + + + Determines whether the specified value is an even number. + + The value. + + true if the specified value is even; otherwise, false. + + + + + Determines whether the specified value is an odd number. + + The value. + + true if the specified value is odd; otherwise, false. + + + + + Generates a random number with an upper bound + + The high. + + + + + Generates a random number between the specified bounds + + The low. + The high. + + + + + Generates a random double + + + + + + 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. + + The name of the parameter. + + + + Gets or sets the parameter value. + + The parameter value. + + + + Gets or sets the type of the data. + + The type of the data. + + + + Summary for the QueryParameterCollection class + + + + + Checks to see if specified parameter exists in the current collection + + + + + + + returns the specified QueryParameter, if it exists in this collection + + + + + + + Adds the specified parameter name. + + Name of the parameter. + The value. + + + + Adds the specified parameter name. + + Name of the parameter. + The value. + Type of the data. + + + + Adds the specified parameter name. + + Name of the parameter. + The value. + Type of the data. + The mode. + + + + Summary for the QueryCommandCollection class + + + + + Summary for the QueryCommand class + + + + + + + + + + Initializes a new instance of the class. + + The SQL. + The provider. + + + + Determines whether [has output params]. + + + true if [has output params]; otherwise, false. + + + + + Adds the parameter. The public AddParameter methods should call this one. + + Name of the parameter. + The parameter value. + Size of the max. + Type of the db. + The direction. + + + + Adds the parameter. + + Name of the parameter. + The parameter value. + Type of the data. + The parameter direction. + + + + Adds the parameter. + + Name of the parameter. + The parameter value. + Type of the data. + + + + Adds the parameter. + + 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. + + Name of the parameter. + + + + Adds the output parameter. + + Name of the parameter. + Type of the db. + + + + Adds a return parameter (RETURN_VALUE) to the command. + + + + + + Suggested by feroalien@hotmail.com + Issue 11 fix + + + + + + Gets or sets the command timeout (in seconds). + + The command timeout. + + + + Gets or sets the type of the command. + + The type of the command. + + + + Gets or sets the command SQL. + + The command SQL. + + + + Gets or sets the parameters. + + The parameters. + + + + A default implementation of IQueryable for use with QueryProvider + + + + + Removes column declarations in SelectExpression's that are not referenced + + + + + + + + + Rewrites an expression tree so that locally isolatable sub-expressions are evaluated and converted into ConstantExpression nodes. + + + + + Performs evaluation and replacement of independent sub-trees + + The root of the expression tree. + A function that decides whether a given expression node can be part of the local function. + A new tree with sub-trees evaluated and replaced. + + + + Performs evaluation and replacement of independent sub-trees + + The root of the expression tree. + A new tree with sub-trees evaluated and replaced. + + + + Evaluates and replaces sub-trees when first candidate is reached (top-down) + + + + + Performs bottom-up analysis to determine which nodes can possibly + be part of an evaluated sub-tree. + + + + + Removes column declarations in SelectExpression's that are not referenced + + + + + Converts LINQ query operators to into custom DbExpression's + + + + + returns the set of all aliases produced by a query source + + + + + 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 + + + + + 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. + + + + + Executes the typed list. + + + + + + + Executes the reader. + + + Enum for General SQL Functions @@ -865,1165 +3691,86 @@ The alias. - + - returns the set of all aliases produced by a query source + Common interface for controlling defer-loadable types - + - An extended expression visitor including custom DbExpression nodes - - - - - Moves order-bys to the outermost select if possible - - - - - Add a sequence of order expressions to an accumulated list, prepending so as - to give precedence to the new expressions over any previous expressions - - - - - - Rebind order expressions to reference a new alias and add to column declarations if necessary - - - - - returns the set of all aliases produced by a query source - - - - - Determines if a SelectExpression contains any aggregate expressions - - - - - Summary for the Dates class - - - - - Returns a date in the past by days. - - The days. - - - - - Returns a date in the future by days. - - The days. - - - - - Returns a date in the past by hours. - - The hours. - - - - - Returns a date in the future by hours. - - The hours. - - - - - Returns a date in the past by minutes - - The minutes. - - - - - Returns a date in the future by minutes. - - The minutes. - - - - - Gets a date in the past according to seconds - - The seconds. - - - - - Gets a date in the future by seconds. - - The seconds. - - - - - Diffs the specified date. - - 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. - - - - - 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. - - - - - 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. - - - - - Returns a double indicating the number of days between two dates (past is negative) - - 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. - - The start time. - The end time. - - - - - Counts the number of weekends between two dates. - - The start time. - The end time. - - - - - Verifies if the object is a date - - The dt. - - true if the specified dt is date; otherwise, false. - - - - - Checks to see if the date is a week day (Mon - Fri) - - The dt. - - true if [is week day] [the specified dt]; otherwise, false. - - - - - Checks to see if the date is Saturday or Sunday - - The dt. - - true if [is week end] [the specified dt]; otherwise, false. - - - - - 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. - - - - - Given a datetime object, returns the formatted month and day, i.e. "April 15th" - - The date to extract the string from - - - - - Given a datetime object, returns the formatted day, "15th" - - The date to extract the string from - - - - - Remove leading strings with zeros and adjust for singular/plural - - The STR. - The previous STR. - The t. - - - - - - - - - - - - - - - - Generates the command line. - - - - - - Generates the constraints. - - - - - - Generates from list. - - - - - - Generates the order by. - - - - - - Generates the group by. - - - - - - Generates the joins. - - - - - - Gets the paging SQL wrapper. - - - - - - Gets the select columns. - - - - - - Finds the column. - - Name of the column. - - - - - Builds the select statement. - - - - - - Builds the paged select statement. - - - - - - Builds the update statement. - - - - - - Builds the insert statement. - - - - - - Builds the delete statement. - - - - - - Sets the insert query. - - The q. - - - - SqlFragment. Field values may change depending on the inheriting Generator. - - - - - Initializes a new instance of the class. - - - - - Sets the insert query. - - The q. - - - - Finds the column. - - Name of the column. - - - - - Generates the group by. - - - - - - Generates the command line. - - - - - - Generates the joins. - - - - - - Generates from list. - - - - - - Generates the constraints. - - - - - - Generates the order by. - - - - - - Gets the select columns. - - - - - - Gets the paging SQL wrapper. - - - - - - Builds the paged select statement. - - - - - - Builds the select statement. - - - - - - Builds the update statement. - - - - - - Builds the insert statement. - - - - - - Builds the delete statement. - - - - - - Qualifies the name of the table. - - The TBL. - - - - - Gets the qualified select. - - The table. - - - - - Generates the select column list. - - - - - - Builds the aggregate commands. - - - - - - Generates the 'SELECT' part of an - - 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. - - - - - - Summary for the SqlFragment class - - - - - - - - - - Initializes a new instance of the class. - - The provider. - The columns. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - 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. + A list implementation that is loaded the first the contents are examined - - + - Expressions the specified SQL expression. + returns the list of SelectExpressions accessible from the source expression - The SQL expression. - - + - Tops the specified top. + Builds an execution plan for a query expression - The top. - - + - Result from calling ColumnProjector.ProjectColumns + columns referencing the outer alias are turned into special named-value parameters - + - 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 + Extended node types for custom expressions - + - 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 + A custom expression node that represents a table reference in a SQL query - + - A LINQ IQueryable query provider that executes database queries over a DbConnection + A custom expression node that represents a reference to a column in a SQL query - + - A basic abstract LINQ query provider + A declaration of a column in a SQL SELECT expression - + - Optional interface for IQueryProvider to implement Query<T>'s QueryText property. + An SQL OrderBy order type - + - DbQueryProvider constrcutor that allows for external control of policy - to allow for new types of databases. + A pairing of an expression and an order type for use in a SQL Order By clause - + - Converts the query expression into text that corresponds to the command that would be executed. - Useful for debugging. + A custom expression node used to represent a SQL SELECT expression - - - + - Execute the query expression (does translation, etc.) + A kind of SQL join - - - + - Convert the query expression into an execution plan + A custom expression node representing a SQL join clause - - - + - Do all query translations execpt building the execution plan + Allows is-null tests against value-types like int and float - - - + - Determines whether a given expression can be executed locally. - (It contains no parts that should be translated to the target environment.) - - - - - - - Execute an actual query specified in the target language using the sADO connection - - - - - - - - - Get an IEnumerable that will execute the specified query when enumerated - - - - - - - - - Get an ADO command object initialized with the command-text and parameters - - - - - - - - - Write a command to the log - - - - - - Parses the object value. - - The expression. - - - - - Parses the passed-in Expression into exclusive (WHERE x=y) constraints. - - The exp. - - - - - Parses the passed-in Expression into exclusive (WHERE x=y) constraint. - - The expression. - - - - - Determines whether the specified exp is constraint. - - The exp. - - true if the specified exp is constraint; otherwise, false. - - - - - Gets the constant value. - - The exp. - - - - - - - - - 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. - - Name of the table. - Name of the column. - - - - - Gets the type of the native. - - Type of the db. - - - - - Generates the columns. - - Table containing the columns. - - SQL fragment representing the supplied columns. - - - - - Sets the column attributes. - - The column. - - - - - 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. - - Name of the table. - Name of the column. - - - - - Gets the type of the native. - - Type of the db. - - - - - Generates the columns. - - Table containing the columns. - - SQL fragment representing the supplied columns. - - - - - Sets the column attributes. - - The column. - - - - - Gets an ITable from the DB based on name - - - - - Creates a list of table names - - - - - Removes the column. - - - - - - - - Sets the column attributes. - - The column. - - - - - Gets the type of the db. - - Type of the SQL. - - - - - A Repository class which wraps the a Database by type - - - - - Loads a T object - - - The item. - The column. - The value. - - - - - Loads a T object - - - The item. - The expression. - - - - - Returns all T items - - - - - Returns a single record - - - - - Returns a server-side Paged List - - - - - Returns a server-side Paged List - - - - - Returns a server-side Paged List - - - - - Returns an IQueryable based on the passed-in Expression Chinook Database - - - - - 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 - - - - - Deletes the passed-in T items - - - - - Deletes the passed-in T items - - - - - Deletes the passed-in T item - - - - - Deletes the passed-in T item - - - - - Deletes the T item by Primary Key - - - - - Deletes the T item by Primary Key - - - - - Deletes 0 to n T items from the Database based on the passed-in Expression - - - - - Deletes 0 to n T items from the Database based on the passed-in Expression - - - - - Finds the first sub-expression that accesses a Query<T> object - - - - - Writes out an expression tree in a C#-ish syntax - - - - - SQLite specific QueryLanguage - - - - - 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. - - - - - 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. - - - - - Indicates to the default DataProvider that it should use a per-thread shared connection. - - - - - Indicates to the default DataProvider that it should use a per-thread shared connection using the given connection string. - - The connection string. - Name of the provider. - - - - 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. - - The 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. - - - - Gets the connection. - - - - - - - Gets the connection. - - The connection. - - - - Gets a value indicating whether this instance is using shared connection. - - - true if this instance is using shared connection; otherwise, false. - - - - - Type related helper methods - - - - - Formats a query expression into TSQL language syntax - - - - - Formats a query expression into TSQL language syntax - - - - - Attempts to rewrite cross-apply and outer-apply joins as inner and left-outer joins + A custom expression representing the construction of one or more result objects from a + SQL select expression @@ -2308,2071 +4055,39 @@ true if the string can be converted to a number; otherwise, false. - - - Builds the delete query. - - The item. - - - - - Builds the insert query. - - The item. - - - - - Builds the update query. - - The item. - - - - - 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. - - - true if this instance is numeric; otherwise, false. - - - - - Gets a value indicating whether this instance is date time. - - - true if this instance is date time; otherwise, false. - - - - - Gets a value indicating whether this instance is string. - - true if this instance is string; otherwise, false. - - - - - - - - - - Initializes a new instance of the class. - - The query. - - - - Gets the type of the native. - - Type of the db. - - - - - Generates SQL for all the columns in table - - Table containing the columns. - - SQL fragment representing the supplied columns. - - - - - Generates from list. - - - - - - Sets the column attributes. - - The column. - - - - - Builds the paged select statement. - - - - - - Creates a set of SQL commands for synchronizing your database with your object set - - - - - Creates a reusable, parameterized representation of a query that caches the execution plan - - - - - Common interface for controlling defer-loadable types - - - - - A list implementation that is loaded the first the contents are examined - - - - - - Holds list of tables, views, stored procedures, etc. - - - - - Initializes the shared connection. - - - - - - Initializes the shared connection. - - The shared connection string. - - - - - Resets the shared connection. - - - - - Adds the params. - - The CMD. - The qry. - - - - Converts a data reader into a sequence of objects using a projector function on each row - - - The reader. - The fn projector. - - - - - Gets a value indicating whether [current connection string is default]. - - - true if [current connection string is default]; otherwise, false. - - - - - Gets or sets the current shared connection. - - The current shared connection. - - - - Gets the type of the native. - - Type of the db. - - - - - Generates the columns. - - Table containing the columns. - - SQL fragment representing the supplied columns. - - - - - Builds a CREATE TABLE statement. - - - - - - - Sets the column attributes. - - The column. - - - - - Gets the type of the db. - - Type of my SQL. - - - - - - - - - - Equals to. - - The value. - - - - - Determines whether the specified is equal to the current . - - 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. - - - A hash code for the current . - - - - - Returns a that represents the current . - - - A that represents the current . - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The table. - - - - Sets the specified column name. - - Name of the column. - - - - - Sets the expression. - - The column. - - - - - Executes this instance. - - - - - - - - - - - Initializes a new instance of the class. - - The provider. - - - - Sets the specified columns. - - The columns. - - - - - Rewrites nested singleton projection into server-side joins - - - - - A simple query mapping that attempts to infer mapping from naming conventionss - - - - - Defines mapping information and rules for the query provider - - - - - Determines if a give CLR type is mapped as a database entity - - - - - - - Deterimines is a property is mapped onto a column or relationship - - - - - - - Determines if a property is mapped onto a column - - - - - - - Determines if a property represents or is part of the entities unique identity (often primary key) - - - - - - - Determines if a property is mapped as a relationship - - - - - - - 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 - - - - - - - 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. - - - - - - - - Get the members for the key properities to be joined in an association relationship - - - - - - - - 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. - - - - - - - - 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 expected type. - The actual type. - - - - - Apply mapping translations to this expression - - - - - - - The language related to the mapping - - - - - Returns the SqlDbType for a give DbType - - - - - - Takes the properties of an object and turns them into SubSonic.Query.Constraint - - - - - - - Coerces an IDataReader to try and load an object using name/property matching - - - - - Loads a single primitive value type - - - - - - Toes the type of the enumerable value. - - - The IDataReader to read from. - - - - - Determines whether [is core system type] [the specified type]. - - The type. - - true if [is core system type] [the specified type]; otherwise, false. - - - - - Coerces an IDataReader to load an enumerable of T - - - - - Invoked when a new item is created - - - - Creates a typed list from an IDataReader - - - - - Builds a SubSonic UPDATE query from the passed-in object - - - - - Builds a SubSonic INSERT query from the passed-in object - - - - - Builds a SubSonic DELETE query from the passed-in object - - - - - Sets the column attributes. - - The column. - - - - - Gets the type of the db. - - Type of the SQL. - - - - - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The provider. - - - - Builds the SQL statement. - - - - - - Adds the specified columns into a new Insert object. - - - The columns. - - - - - Adds the specified columns into a new Insert object. - - - The TBL. - - - - - Inits this instance. - - - - - - Values the specified column. - - The column. - The column value. - - - - - Values the specified column. - - The column. - The column value. - Type of the db. - - - - - Valueses the specified values. - - The values. - - - - - Values the expression. - - The values. - - - - - Returns a that represents the current . - - - A that represents the current . - - - - - Executes this instance. - - - - - - rewrites nested projections into client-side joins - - - - - Formats a query expression into TSQL language syntax - - - - - Where, And, Or - - - - - WHERE operator - - - - - AND operator - - - - - OR Operator - - - - - SQL Comparison Operators - - - - - Summary for the SqlComparison class - - - - - A Class for handling SQL Constraint generation - - - - - The query that this constraint is operating on - - - - - Initializes a new instance of the class. - - The condition. - Name of the constraint column. - - - - Initializes a new instance of the class. - - The condition. - Name of the constraint column. - Name of the constraint qualified column. - - - - Initializes a new instance of the class. - - The condition. - Name of the constraint column. - Name of the constraint qualified column. - The constraint construction fragment. - - - - Initializes a new instance of the class. - - The condition. - Name of the constraint column. - The SQL query. - - - - Initializes a new instance of the class. - - 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. - - Name of the column. - - - - - Ands the specified column name. - - Name of the column. - - - - - Ors the specified column name. - - Name of the column. - - - - - Gets or sets the name of the table. - - The name of the table. - - - - Gets the comparison operator. - - The comp. - - - - - Determines whether the specified is equal to the current . - - 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. - - - A hash code for the current . - - - - - Creates a LIKE statement. - - The val. - - - - - Creates a LIKE statement and appends a wildcard to the end of the passed-in value. - - The val. - - - - - Creates a LIKE statement and appends a wildcard to the end of the passed-in value. - - The val. - The wild card. - - - - - Creates a LIKE statement and appends a wildcard to the end of the passed-in value. - - The val. - - - - - Creates a NOT LIKE statement - - The val. - - - - - Determines whether [is greater than] [the specified val]. - - The val. - - - - - Determines whether [is greater than] [the specified val]. - - The val. - - - - - Specifies a SQL IN statement using a nested Select statement - - The select query. - - - - - Specifies a SQL IN statement - - Value array - - - - - Specifies a SQL IN statement - - Value array - - - - - Specifies a SQL IN statement using a nested Select statement - - The select query. - - - - - Specifies a SQL Not IN statement - - Value array - - - - - Specifies a SQL NOT IN statement - - Value array - - - - - Determines whether [is less than] [the specified val]. - - The val. - - - - - Determines whether [is less than] [the specified val]. - - The val. - - - - - Determines whether [is not null] [the specified val]. - - - - - - Determines whether the specified val is null. - - - - - - Determines whether [is between and] [the specified val1]. - - The val1. - The val2. - - - - - Determines whether [is equal to] [the specified val]. - - The val. - - - - - Determines whether [is not equal to] [the specified val]. - - The val. - - - - - Gets or sets the condition. - - The condition. - - - - Gets or sets the name of the column. - - The name of the column. - - - - Gets or sets the fully qualified name of the column. - - The name of the column. - - - - Gets or sets the string fragment used when assembling the text of query. - - The construction fragment. - - - - Gets or sets the comparison. - - The comparison. - - - - Gets or sets the parameter value. - - The parameter value. - - - - Gets or sets the start value. - - The start value. - - - - Gets or sets the end value. - - The end value. - - - - Gets or sets the in values. - - The in values. - - - - Gets or sets the in select. - - The in select. - - - - Gets or sets the name of the parameter. - - The name of the parameter. - - - - Gets or sets the type of the db. - - The type of the db. - - - - Gets or sets a value indicating whether this constraint is an Aggregate. - - - true if this instance is aggregate; otherwise, false. - - - - - Translates accesses to relationship members into projections or joins - - - - - Defines query execution and materialization policies. - - - - - Determines if a relationship property is to be included in the results of the query - - - - - - - Determines if a relationship property is included, but the query for the related data is - deferred until the property is first accessed. - - - - - - - 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. - - - - - - - Converts a query into an execution plan. The plan is an function that executes the query and builds the - resulting objects. - - - - - - - - The mapping related to the policy. - - - - - Determines if two expressions are equivalent. Supports DbExpression nodes. - - - - - Compare two expressions to determine if they are equivalent - - - - - 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. - - - - - - Executes the specified SQL. - - - - - Executes the scalar. - - The type of the result. - - - - - Executes the typed list. - - - - - - - Executes the reader. - - - - - - Rewrites an expression tree so that locally isolatable sub-expressions are evaluated and converted into ConstantExpression nodes. - - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A function that decides whether a given expression node can be part of the local function. - A new tree with sub-trees evaluated and replaced. - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A new tree with sub-trees evaluated and replaced. - - - - Evaluates and replaces sub-trees when first candidate is reached (top-down) - - - - - Performs bottom-up analysis to determine which nodes can possibly - be part of an evaluated sub-tree. - - - - - Removes select expressions that don't add any additional semantic value - - - - - Replaces references to one specific instance of an expression node with another node. - Supports DbExpression nodes - - - - - Converts the string method calls Contains,EndsWith and StartsWith into queries - - The MethodCall we are attempting to map to a query. - an expression tree. - - - - A holder for 1 or more queries to be executed together - - - - - Builds the SQL statement. - - - - - - Executes this instance. - - - - - - Executes the queries in and returns a multiple result set reader. - - - - - - Gets a command containing all the queued queries. - - - - - - Queues the specified query. - - The query. - - - - Queues the specified query. - - - The query. - - - - Queues a query for use in a transaction. - - The qry. - - - - Queues a query for use in a transaction. - - The CMD. - - - - Queues a query for use in a transaction. - - The SQL. - The parameters. - - - - Executes the transaction. - - - - - Rewrites take and skip expressions into uses of TSQL row_number function - - - - - returns the list of SelectExpressions accessible from the source expression - - - - - Builds an execution plan for a query expression - - - - - columns referencing the outer alias are turned into special named-value parameters - - - - - Initializes the class. - - - - - Strips the last specified chars from a string. - - The source string. - The remove from end. - - - - - Strips the last specified chars from a string. - - The source string. - The back down to. - - - - - Plurals to singular. - - The source string. - - - - - Singulars to plural. - - The source string. - - - - - Make plural when count is not one - - The number of things - The source string. - - - - - Removes the specified chars from the beginning of a string. - - The source string. - The remove from beginning. - - - - - Removes chars from the beginning of a string, up to the specified string - - The source string. - The remove up to. - - - - - Strips the last char from a a string. - - The source string. - - - - - Strips the last char from a a string. - - The source string. - - - - - Fasts the replace. - - The original. - The pattern. - The replacement. - - - - - Fasts the replace. - - The original. - The pattern. - The replacement. - Type of the comparison. - - - - - Returns text that is located between the startText and endText tags. - - The source string. - The text from which to start the crop - The endpoint of the crop - - - - - Removes excess white space in a string. - - The source string. - - - - - Removes all non-alpha numeric characters in a string - - The source string. - - - - - Creates a string array based on the words in a sentence - - The source string. - - - - - Strips all HTML tags from a string - - The HTML string. - - - - - Strips all HTML tags from a string and replaces the tags with the specified replacement - - The HTML string. - The HTML place holder. - - - - - Converts a generic List collection to a single comma-delimitted string. - - The list. - - - - - Converts a generic List collection to a single string using the specified delimitter. - - The list. - The delimiter. - - - - - Strips the specified input. - - The source string. - The strip value. - - - - - Converts ASCII encoding to Unicode - - The ASCII code. - - - - - Converts Text to HTML-encoded string - - The text string. - - - - - Converts HTML-encoded bits to Text - - The entity text. - - - - - Formats the args using String.Format with the target string as a format string. - - The format string passed to String.Format - The args passed to String.Format - - - - - Strings to enum. - - - The value. - - - - - Fills the entities. - - - - - Converts US State Name to it's two-character abbreviation. Returns null if the state name was not found. - - US State Name (ie Texas) - - - - - Converts a two-character US State Abbreviation to it's official Name Returns null if the abbreviation was not found. - - US State Name (ie Texas) - - - - - Fills the US States. - - Summary for the RegexPattern class - + - Removes column declarations in SelectExpression's that are not referenced + An enumeration value for no options configured. - + - A default implementation of IQueryable for use with QueryProvider + The default set of options (right now the same as none). - + - Replaces references to one specific instance of an expression node with another node + Use this flag to let the repository run migrations. - - - TSQL specific QueryLanguage - - - - - Removes column declarations in SelectExpression's that are not referenced - - - - - Converts LINQ query operators to into custom DbExpression's - - - - - Rewrite aggregate expressions, moving them into same select expression that has the group-by clause - - - - - Removes joins expressions that are identical to joins that already exist - - - - - Removes duplicate column declarations that refer to the same underlying column - - - - - Extended node types for custom expressions - - - - - A custom expression node that represents a table reference in a SQL query - - - - - A custom expression node that represents a reference to a column in a SQL query - - - - - A declaration of a column in a SQL SELECT expression - - - - - An SQL OrderBy order type - - - - - A pairing of an expression and an order type for use in a SQL Order By clause - - - - - A custom expression node used to represent a SQL SELECT expression - - - - - A kind of SQL join - - - - - A custom expression node representing a SQL join clause - - - - - Allows is-null tests against value-types like int and float - - - - - A custom expression representing the construction of one or more result objects from a - SQL select expression - - - - - For Jeff Atwood - http://www.codinghorror.com/blog/archives/000989.html - - - A class which wraps an inline SQL call - - - - - 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. - - - - Initializes a new instance of the class. - - The SQL. - The values. - - - - Initializes a new instance of the class. - - The provider. - - - - Gets the command. - - - - - - Executes the specified SQL. - - - - - Executes the scalar. - - The type of the result. - - - - - Executes the typed list. - - - - - - - Executes the reader. - - - - - - Adds relationship to query results depending on policy - - - - - Converts user arguments into named-value parameters - - - - - Summary for the Numbers class - - - - - Determines whether a number is a natural number (positive, non-decimal) - - The s item. - - true if [is natural number] [the specified s item]; otherwise, false. - - - - - Determines whether [is whole number] [the specified s item]. - - The s item. - - true if [is whole number] [the specified s item]; otherwise, false. - - - - - Determines whether the specified s item is integer. - - The s item. - - true if the specified s item is integer; otherwise, false. - - - - - Determines whether the specified s item is number. - - The s item. - - true if the specified s item is number; otherwise, false. - - - - - Determines whether the specified value is an even number. - - The value. - - true if the specified value is even; otherwise, false. - - - - - Determines whether the specified value is an odd number. - - The value. - - true if the specified value is odd; otherwise, false. - - - - - Generates a random number with an upper bound - - The high. - - - - - Generates a random number between the specified bounds - - The low. - The high. - - - - - Generates a random double - - - - - - Process the passed-in LINQ expression - - - - - - Gets a value indicating whether this instance is numeric. - - - true if this instance is numeric; otherwise, false. - - - - - Gets a value indicating whether this instance is date time. - - - true if this instance is date time; otherwise, false. - - - - - Gets a value indicating whether this instance is string. - - true if this instance is string; otherwise, false. - - - - Summary for the ReservedColumnName class - - - - - 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. - - The name of the parameter. - - - - Gets or sets the parameter value. - - The parameter value. - - - - Gets or sets the type of the data. - - The type of the data. - - - - Summary for the QueryParameterCollection class - - - - - Checks to see if specified parameter exists in the current collection - - - - - - - returns the specified QueryParameter, if it exists in this collection - - - - - - - Adds the specified parameter name. - - Name of the parameter. - The value. - - - - Adds the specified parameter name. - - Name of the parameter. - The value. - Type of the data. - - - - Adds the specified parameter name. - - Name of the parameter. - The value. - Type of the data. - The mode. - - - - Summary for the QueryCommandCollection class - - - - - Summary for the QueryCommand class - - - + - - - Initializes a new instance of the class. - - The SQL. - The provider. - - - - Determines whether [has output params]. - - - true if [has output params]; otherwise, false. - - - - - Adds the parameter. The public AddParameter methods should call this one. - - Name of the parameter. - The parameter value. - Size of the max. - Type of the db. - The direction. - - - - Adds the parameter. - - Name of the parameter. - The parameter value. - Type of the data. - The parameter direction. - - - - Adds the parameter. - - Name of the parameter. - The parameter value. - Type of the data. - - - - Adds the parameter. - - 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. - - Name of the parameter. - - - - Adds the output parameter. - - Name of the parameter. - Type of the db. - - - - Adds a return parameter (RETURN_VALUE) to the command. - - - - - - Suggested by feroalien@hotmail.com - Issue 11 fix - - - - - - Gets or sets the command timeout (in seconds). - - The command timeout. - - - - Gets or sets the type of the command. - - The type of the command. - - - - Gets or sets the command SQL. - - The command SQL. - - - - Gets or sets the parameters. - - The parameters. - - + + + + - - - - Initializes a new instance of the class. - - The query. - - - - Builds the paged select statement. - - - - - - Builds the insert statement. - - - - - - Singles the specified expression. - - - The expression. - - - - - Singles the specified key. - - - The key. - - - - - Retrieves subset of records from the database matching the expression - - - - - Gets the paged. - - - Index of the page. - Size of the page. - - - - - Gets the paged. - - - The sort by. - Index of the page. - Size of the page. - - - - - Adds the specified item, setting the key if available. - - - The item. - - - - - Adds a lot of the items using a transaction. - - - The items. - - - - Updates the specified item. - - - The item. - - - - - Updates lots of items using a transaction. - - - The items. - - - - - Deletes the specified key. - - - The key. - - - - - Deletes 1 or more items. - - - The expression. - - - - - Deletes 1 or more items. - - - 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. @@ -4541,46 +4256,369 @@ The word. - + - Summary for the Files class + - + - Read a text file and obtain it's contents. + Equals to. - 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. - - The complete file path to write to. - A String containing text to be written to the file. - - - - 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. - - - - Writes out a string to a file. - - The complete file path to write to. - A String containing text to be written to the file. - - - - Fetches a web page - - The URL. + The value. + + + Determines whether the specified is equal to the current . + + 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. + + + A hash code for the current . + + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The table. + + + + Sets the specified column name. + + Name of the column. + + + + + Sets the expression. + + The column. + + + + + Executes this instance. + + + + + + + + + + + Initializes a new instance of the class. + + The provider. + + + + Sets the specified columns. + + The columns. + + + + + Parses the object value. + + The expression. + + + + + Parses the passed-in Expression into exclusive (WHERE x=y) constraints. + + The exp. + + + + + Parses the passed-in Expression into exclusive (WHERE x=y) constraint. + + The expression. + + + + + Determines whether the specified exp is constraint. + + The exp. + + true if the specified exp is constraint; otherwise, false. + + + + + Gets the constant value. + + The exp. + + + + + + + + + + + Initializes a new instance of the class. + + The query. + + + + Builds the paged select statement. + + + + + + Builds the insert statement. + + + + + + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The provider. + + + + Builds the SQL statement. + + + + + + Adds the specified columns into a new Insert object. + + + The columns. + + + + + Adds the specified columns into a new Insert object. + + + The TBL. + + + + + Inits this instance. + + + + + + Values the specified column. + + The column. + The column value. + + + + + Values the specified column. + + The column. + The column value. + Type of the db. + + + + + Valueses the specified values. + + The values. + + + + + Values the expression. + + The values. + + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Executes this instance. + + + + + + Removes select expressions that don't add any additional semantic value + + + + + Removes duplicate column declarations that refer to the same underlying column + + + + + Duplicate the query expression by making a copy with new table aliases + + + + + Rewrite all column references to one or more aliases to a new single alias + + + + + Determines if a SelectExpression contains any aggregate expressions + + + + + 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. + + + + + 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. + + + + + Indicates to the default DataProvider that it should use a per-thread shared connection. + + + + + Indicates to the default DataProvider that it should use a per-thread shared connection using the given connection string. + + The connection string. + Name of the provider. + + + + 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. + + The 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. + + + + Gets the connection. + + + + + + + Gets the connection. + + The connection. + + + + Gets a value indicating whether this instance is using shared connection. + + + 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