SD.LLBLGen.Pro.DQE.SqlServer.NET20 DynamicQueryEngine for SqlServer. Flag to signal the DQE to generate SET ARITHABORT ON statements prior to INSERT, DELETE and UPDATE Queries. Keep this flag to false in normal usage, but set it to true if you need to write into a table which is part of an indexed view. It will not affect normal inserts/updates that much, leaving it on is not harmful. Please consult SqlServer's Books online for more details on SET ARITHABORT ON. After each statement the setting is turned off if it has been turned on prior to that statement. Setting this flag is a global change. Flag to signal the DQE to tell the SqlServerSpecificCreator to create WITH NOLOCK hints on table references in select queries for FROM clauses. WITH NOLOCK is not recommended though in high volume databases with a lot of rows, it can be a lot of blocking can occur because SqlServer forces readers to block writers and vice versa. Please consult the SqlServer's Book online for more information about this hint and also the downsides for using it. The setting is global and for all select queries. Default is false and it should only be set to true in those situations in which no other option is available. Setting this flag is a global change. Compatibility level used by the DQE. Default is SqlServer2000. To utilize SqlServer 2005 specific features, set this parameter to SqlServer2005, either through a setting in the .config file of your application or by setting this parameter once in your application. Compatibility level influences the query generated for paging, sequence name (@@IDENTITY/SCOPE_IDENTITY()), and usage of newsequenceid() in inserts. Setting this parameter will overrule a similar setting in the .config file Creates a new instance. Static CTor for initializing TraceSwitch and name overwrites Creates a new Insert Query object which is ready to use. Array of EntityFieldCore objects to use to build the insert query Array of IFieldPersistenceInfo objects to use to build the insert query The connection to use for the query Hashtable which will contain after the call for each field the parameter which contains or will contain the field's value. IActionQuery Instance which is ready to be used. Generic version. When fields is null or fieldsPersistenceInfo is null When fields contains no EntityFieldCore instances or fieldsPersistenceInfo is empty. When there are no fields to insert in the fields list. This exception is to prevent INSERT INTO table () VALUES () style queries. Creates a new Delete Query object which is ready to use. Array of IFieldPersistenceInfo objects to use to build the delete query The connection to use for the query A complete IPredicate implementing object which contains the filter for the rows to delete IActionQuery instance which is ready to be used. Generic version When persistenceInfo is null Creates a new Delete Query object which is ready to use. Array of IFieldPersistenceInfo objects to use to build the delete query The connection to use for the query A complete IPredicate implementing object which contains the filter for the rows to delete list of EntityRelation objects, which will be used to formulate a second FROM clause with INNER JOINs. IActionQuery instance which is ready to be used. Generic version When persistenceInfo is null or when deleteFilter is null or when relationsToWalk is null Creates a new Update Query object which is ready to use. Only 'changed' EntityFieldCore fields are included in the update query. Primary Key fields are never updated. EntityFieldCore array to use to build the update query. Array of IFieldPersistenceInfo objects to use to build the update query The connection to use for the query A complete IPredicate implementing object which contains the filter for the rows to update IActionQuery instance which is ready to be used. When fields is null or fieldsPersistenceInfo is null When fields contains no EntityFieldCore instances or fieldsPersistenceInfo is empty. Creates a new Update Query object which is ready to use. Only 'changed' EntityFieldCore are included in the update query. Primary Key fields are never updated. Array of EntityFieldCore objects to use to build the insert query Array of IFieldPersistenceInfo objects to use to build the update query The connection to use for the query A complete IPredicate implementing object which contains the filter for the rows to update list of EntityRelation objects, which will be used to formulate a FROM clause with INNER JOINs. IActionQuery instance which is ready to be used. When fields is null or when updateFilter is null or when relationsToWalk is null or when fieldsPersistence is null When fields contains no EntityFieldCore instances or fieldsPersistenceInfo is empty. Creates a new Select Query which is ready to use, based on the specified select list and the specified set of relations. If selectFilter is set to null, all rows are selected. list of IEntityFieldCore objects to select Array of IFieldPersistenceInfo objects to use to build the select query The connection to use for the query A complete IPredicate implementing object which contains the filter for the rows to select. When set to null, no filtering is done, and all rows are returned. The maximum number of items to return with this retrieval query. If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified. The order by specifications for the sorting of the resultset. When not specified, no sorting is applied. list of EntityRelation objects, which will be used to formulate a FROM clause with INNER JOINs. Flag which forces the inclusion of DISTINCT if set to true. If the resultset contains fields of type ntext, text or image, no duplicate filtering is done. The list of fields to group by on. When not specified or an empty collection is specified, no group by clause is added to the query. A check is performed for each field in the selectList. If a field in the selectList is not present in the groupByClause collection, an exception is thrown. flag to signal if relations are specified, this is a result of a check. This routine should simply assume the value of this flag is correct. flag to signal if sortClauses are specified, this is a result of a check. This routine should simply assume the value of this flag is correct. IRetrievalQuery instance which is ready to be used. When selectList is null or fieldsPersistenceInfo is null When selectList contains no EntityFieldCore instances or fieldsPersistenceInfo is empty. Creates a new Select Query which is ready to use, based on the specified select list and the specified set of relations. If selectFilter is set to null, all rows are selected. list of IEntityFieldCore objects to select Array of IFieldPersistenceInfo objects to use to build the select query The connection to use for the query A complete IPredicate implementing object which contains the filter for the rows to select. When set to null, no filtering is done, and all rows are returned. The maximum number of items to return with this retrieval query. If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified. The order by specifications for the sorting of the resultset. When not specified, no sorting is applied. list of EntityRelation objects, which will be used to formulate a FROM clause with INNER JOINs. Flag which forces the inclusion of DISTINCT if set to true. If the resultset contains fields of type ntext, text or image, no duplicate filtering is done. The list of fields to group by on. When not specified or an empty collection is specified, no group by clause is added to the query. A check is performed for each field in the selectList. If a field in the selectList is not present in the groupByClause collection, an exception is thrown. the page number to retrieve. First page starts with 1. If set to 0 or lower, no paging logic is applied the page size to retrieve. If set to 0 no paging logic is applied. IRetrievalQuery instance which is ready to be used. Generic version When selectList is null or fieldsPersistenceInfo is null or relationsToWalk is null When selectList contains no EntityFieldCore instances or fieldsPersistenceInfo is empty. Gets the new name for the catalog, given the current name. If the current name is not found in the list of catalog name overwrites, the current name is returned. This routine works on the catalog names specified in the config file. Name of the current. New name for the catalog which name was passed in. Thread safe, because the hashtable is never modified during execution. Gets the new name for the schema, given the current name. If the current name is not found in the list of schema name overwrites, the current name is returned. This routine works on the schema names specified in the config file. current Name New name for the schema which name was passed in. Thread safe, because the hashtable is never modified during execution. Gets the new name of the stored procedure passed in. Overwrites schema and catalog name with a new name if these names have been defined for overwriting. This routine works on the catalog and schema names specified in the config file. current Name Thread safe, because the hashtable is never modified during execution. full stored procedure name with new catalog name/schema name. Gets the new name of the stored procedure passed in. Overwrites schema and catalog name with a new name if these names have been defined for overwriting. This routine works on the PerCallCatalogNameOverwrites and PerCallSchemaNameOverwrites names specified on this instance current Name Thread safe, because the hashtable is never modified during execution. full stored procedure name with new catalog name/schema name. Creates a CTE using paging query for SqlServer 2005 or higher. the actual query to page over. The select list. The fields persistence info. The sort clauses. The page number. Size of the page. Query structure:
            WITH __actualSet AS
            (
            SELECT TOP (pagenumber * pagesize)+1 ..., ROW_NUMBER() OVER (sortclause | first field) AS __rowcnt
            FROM ...
            )
            SELECT * FROM __actualSet
            WHERE __rowcnt BETWEEN startCnt AND endCount
            ORDER BY __rowcnt ASC
            
Mangles the page select d q. Select query. Select list. Persistence info. Page number. Size of the page. Creates the column. Persistence info. Name of the field. Creates a new IDbCommand object and initializes it ready to use IDbCommand object Creates a new IDbSpecificCreator and initializes it Implements IDbSpecificCreator for SqlServer. CTor Creates a valid Parameter based on the passed in IEntityFieldCore implementation and the passed in IFieldPersistenceInfo instance IEntityFieldCore instance used to base the parameter on. Persistence information to create the parameter. The direction for the parameter Value to set the parameter to. Valid parameter for usage with the target database. Creates a parameter based on the fieldcore passed in and the value passed in. The value is used to determine the DB type. No precision/scale/length is set, this is left to the IDataParameter implementing object. This method is used to produce parameters for expression values. name to be used for the parameter. Direction for the parameter value the parameter is for. Valid parameter for usage with the target database. Creates a valid Parameter for the pattern in a LIKE statement. This is a special case, because it shouldn't rely on the type of the field the LIKE statement is used with but should be the unicode varchar type. The name of the field the LIKE statement is used with. The pattern to be passed as the value for the parameter. Is used to determine length of the parameter. Valid parameter for usage with the target database. Creates a valid Parameter for the pattern in a LIKE statement. This is a special case, because it shouldn't rely on the type of the field the LIKE statement is used with but should be the unicode varchar type. The name of the field the LIKE statement is used with. The pattern to be passed as the value for the parameter. Is used to determine length of the parameter. Type of the target field db Valid parameter for usage with the target database. Creats a valid field name based on the passed in IFieldPersistenceInfo implementation. The fieldname is ready to use in queries and contains all pre/postfix characters required. IFieldPersistenceInfo instance used to formulate the fieldname name of the entity field, to determine if an alias is required Alias of object the field maps to. Only specified when called from a predicate. When true, the routine should construct an alias construction statement. Name of the containing object of the field with name fieldName. Valid field name for usage with the target database. Routine which creates a valid alias string for the raw alias passed in. For example, the alias will be surrounded by "[]" on sqlserver. Used by the RelationCollection to produce a valid alias for joins. the raw alias to make valid valid alias string to use. Creates the name for the field, and takes into account an aggregate function present and an expression present. If one or both are present, the field is replaced with (expression) or surrounded with (aggregate) the function (if applyAggregateFunction is true). fieldcore part of the field. Required to determine expression and aggregate function persistence info object for the field. name for the field to be used Alias for object hte field belongs to uniquemarker variable for expression's toquerytext method. flag to apply aggregate function or not. Aggregate functions can't be applied when the call originates from a predicate which is not part of a having clause. string representing the field Creats a valid field name based on the passed in IFieldPersistenceInfo implementation. The fieldname is ready to use in queries and contains all pre/postfix characters required. The fieldname is 'simple' in that it doesn't contain any catalog, schema or table references. IFieldPersistenceInfo instance used to formulate the fieldname name of the entity field, to determine if an alias is required When true, the routine should construct an alias construction statement. Valid field name for usage with the target database. Creates a valid object name (f.e. a name for a table or view) based on the passed in IFieldPersistenceInfo implementation. The fieldname is ready to use in queries and contains all pre/postfix characters required. IFieldPersistenceInfo instance which source object info is used to formulate the objectname Valid object name Converts the passed in expression operator (exop) to a string usable in a query Expression operator to convert to a string The string representation usable in a query of the operator passed in. Creates a new Select Query which is ready to use as a subquery, based on the specified select list and the specified set of relations. list of IEntityFieldCore objects to select Array of IFieldPersistenceInfo objects to use to build the select query A complete IPredicate implementing object which contains the filter for the rows to select. When set to null, no filtering is done, and all rows are returned. The maximum number of items to return with this retrieval query. If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified. The order by specifications for the sorting of the resultset. When not specified, no sorting is applied. list of EntityRelation objects, which will be used to formulate a FROM clause with INNER JOINs. the group by clause to use a unique marker value to use. IRetrievalQuery instance which is ready to be used. When selectList is null or fieldsPersistenceInfo is null or relationsToWalk is null When selectList contains no EntityFieldCore instances or fieldsPersistenceInfo is empty. Returns the SQL functionname to make a string uppercase. Creates the hint statement for the hint passed in. Hint specification to create the statement for. Additional parameters for the hint statement producer. The values can be very provider specific. the hint statement, ready to use. Creates from the passed in EntityField name a name usable for a Parameter. All spaces will be replaced by "_" characters. A "@" is added as a prefix. EntityField name to use as base for the parameter name. Usable parameter name. Strips the object name chars from the name passed in. For example [name] will become name To strip. name without the name's object name chars (Which are db specific) Gets / sets useNoLockHintsForObjectNames