EntityFramework.SqlServer
An that retries actions that throw exceptions caused by SQL Azure transient failures.
This execution strategy will retry the operation on and
if the contains any of the following error numbers:
40613, 40501, 40197, 10929, 10928, 10060, 10054, 10053, 233, 64 and 20
Creates a new instance of .
The default retry limit is 5, which means that the total amount of time spent between retries is 26 seconds plus the random factor.
Creates a new instance of with the specified limits for
number of retries and the delay between retries.
The maximum number of retry attempts.
The maximum delay in milliseconds between retries.
Contains function stubs that expose SqlServer methods in Linq to Entities.
Returns the checksum of the values in a collection. Null values are ignored.
The checksum computed from the input collection.
The collection of values over which the checksum is computed.
Returns the checksum of the values in a collection. Null values are ignored.
The checksum computed from the input collection.
The collection of values over which the checksum is computed.
Returns the ASCII code value of the left-most character of a character expression.
The ASCII code of the first character in the input string.
A valid string.
Returns the character that corresponds to the specified integer ASCII value.
The character that corresponds to the specified ASCII value.
An ASCII code.
Returns the starting position of one expression found within another expression.
The starting position of toFind if it is found in toSearch .
The string expression to be found.
The string expression to be searched.
Returns the starting position of one expression found within another expression.
The starting position of toFind if it is found in toSearch .
The string expression to be found.
The string expression to be searched.
Returns the starting position of one expression found within another expression.
The starting position of toFind if it is found in toSearch .
The string expression to be found.
The string expression to be searched.
The character position in toSearch where searching begins.
Returns the starting position of one expression found within another expression.
The starting position of toFind if it is found in toSearch .
The string expression to be found.
The string expression to be searched.
The character position in toSearch where searching begins.
Returns the starting position of one expression found within another expression.
A of value that is the starting position of toFind if it is found in toSearch .
The string expression to be found.
The string expression to be searched.
The character position in toSearch where searching begins.
Returns the starting position of one expression found within another expression.
The starting position of toFind if it is found in toSearch .
The string expression to be found.
The string expression to be searched.
The character position in toSearch where searching begins.
Returns an integer value that indicates the difference between the SOUNDEX values of two character expressions.
The SOUNDEX difference between the two strings.
The first string.
The second string.
Returns the Unicode character with the specified integer code, as defined by the Unicode standard.
The character that corresponds to the input character code.
A character code.
Returns the starting position of the first occurrence of a pattern in a specified expression, or zeros if the pattern is not found, on all valid text and character data types.
The starting character position where the string pattern was found.
A string pattern to search for.
The string to search.
Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.
The original string with brackets added.
The expression that quote characters will be added to.
Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.
The original string with the specified quote characters added.
The expression that quote characters will be added to.
The one-character string to use as the delimiter. It can be a single quotation mark ( ' ), a left or right bracket ( [ ] ), or a double quotation mark ( " ). If quote_character is not specified, brackets are used.
Repeats a string value a specified number of times.
The target string, repeated the number of times specified by count .
A valid string.
The value that specifies how many time to repeat target .
Converts an alphanumeric string to a four-character (SOUNDEX) code to find similar-sounding words or names.
The SOUNDEX code of the input string.
A valid string.
Returns a string of repeated spaces.
A string that consists of the specified number of spaces.
The number of spaces. If negative, a null string is returned.
Returns character data converted from numeric data.
The numeric input expression converted to a string.
A numeric expression.
Returns character data converted from numeric data.
The input expression converted to a string.
A numeric expression.
Returns character data converted from numeric data.
The numeric input expression converted to a string.
A numeric expression.
The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.
Returns character data converted from numeric data.
The input expression converted to a string.
A numeric expression.
The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.
Returns character data converted from numeric data.
The numeric input expression converted to a string.
A numeric expression.
The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.
The number of places to the right of the decimal point. decimal must be less than or equal to 16. If decimal is more than 16 then the result is truncated to sixteen places to the right of the decimal point.
Returns character data converted from numeric data.
The input expression converted to a string.
A numeric expression.
The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.
The number of places to the right of the decimal point. decimal must be less than or equal to 16. If decimal is more than 16 then the result is truncated to sixteen places to the right of the decimal point.
Inserts a string into another string. It deletes a specified length of characters in the target string at the start position and then inserts the second string into the target string at the start position.
A string consisting of the two strings.
The target string.
The character position in stringinput where the replacement string is to be inserted.
The number of characters to delete from stringInput . If length is longer than stringInput , deletion occurs up to the last character in stringReplacement .
The substring to be inserted into stringInput .
Returns the integer value, as defined by the Unicode standard, for the first character of the input expression.
The character code for the first character in the input string.
A valid string.
A mathematical function that returns the angle, in radians, whose cosine is the specified numerical value. This angle is called the arccosine.
The angle, in radians, defined by the input cosine value.
The cosine of an angle.
A mathematical function that returns the angle, in radians, whose cosine is the specified numerical value. This angle is called the arccosine.
An angle, measured in radians.
The cosine of an angle.
A mathematical function that returns the angle, in radians, whose sine is the specified numerical value. This angle is called the arcsine.
An angle, measured in radians.
The sine of an angle.
A mathematical function that returns the angle, in radians, whose sine is the specified numerical value. This angle is called the arcsine.
An angle, measured in radians.
The sine of an angle.
A mathematical function that returns the angle, in radians, whose tangent is the specified numerical value. This angle is called the arctangent.
An angle, measured in radians.
The tangent of an angle.
A mathematical function that returns the angle, in radians, whose tangent is the specified numerical value. This angle is called the arctangent.
An angle, measured in radians.
The tangent of an angle.
Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.
An angle, measured in radians.
The y-coordinate of a point.
The x-coordinate of a point.
Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.
An angle, measured in radians.
The y-coordinate of a point.
The x-coordinate of a point.
Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.
The trigonometric cosine of the specified angle.
An angle, measured in radians.
Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.
The trigonometric cosine of the specified angle.
An angle, measured in radians.
A mathematical function that returns the trigonometric cotangent of the specified angle, in radians.
The trigonometric cotangent of the specified angle.
An angle, measured in radians.
A mathematical function that returns the trigonometric cotangent of the specified angle, in radians.
The trigonometric cotangent of the specified angle.
An angle, measured in radians.
Returns the corresponding angle in degrees for an angle specified in radians.
The specified angle converted to degrees.
An angle, measured in radians.
Returns the corresponding angle in degrees for an angle specified in radians.
The specified angle converted to degrees.
An angle, measured in radians.
Returns the corresponding angle in degrees for an angle specified in radians.
The specified angle converted to degrees.
An angle, measured in radians.
Returns the corresponding angle in degrees for an angle specified in radians.
The specified angle converted to degrees.
An angle, measured in radians.
Returns the exponential value of the specified float expression.
The constant e raised to the power of the input value.
The input value.
Returns the exponential value of the specified float expression.
The constant e raised to the power of the input value.
The input value.
Returns the natural logarithm of the specified input value.
The natural logarithm of the input value.
A numeric expression.
Returns the natural logarithm of the specified input value.
The natural logarithm of the input value.
A numeric expression.
Returns the base-10 logarithm of the specified input value.
The base-10 logarithm of the input value.
A numeric expression.
Returns the base-10 logarithm of the specified input value.
The base-10 logarithm of the input value.
A numeric expression.
Returns the constant value of pi.
The numeric value of pi.
Returns the radian measure corresponding to the specified angle in degrees.
The radian measure of the specified angle.
The angle, measured in degrees
Returns the radian measure corresponding to the specified angle in degrees.
The radian measure of the specified angle.
The angle, measured in degrees
Returns the radian measure corresponding to the specified angle in degrees.
The radian measure of the specified angle.
The angle, measured in degrees.
Returns the radian measure corresponding to the specified angle in degrees.
The radian measure of the specified angle.
The angle, measured in degrees.
Returns a pseudo-random float value from 0 through 1, exclusive.
The pseudo-random value.
Returns a pseudo-random float value from 0 through 1, exclusive.
The pseudo-random value.
The seed value. If seed is not specified, the SQL Server Database Engine assigns a seed value at random. For a specified seed value, the result returned is always the same.
Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
The sign of the input expression.
A numeric expression.
Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
The sign of the input expression.
A numeric expression.
Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
The sign of the input expression.
A numeric expression.
Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
The sign of the input expression.
A numeric expression.
Returns the trigonometric sine of the specified angle.
The trigonometric sine of the input expression.
An angle, measured in radians.
Returns the trigonometric sine of the specified angle.
The trigonometric sine of the input expression.
An angle, measured in radians.
Returns the square root of the specified number.
The square root of the input value.
A numeric expression.
Returns the square root of the specified number.
The square root of the input value.
A numeric expression.
Returns the square of the specified number.
The square of the input value.
A numeric expression.
Returns the square of the specified number.
The square of the input value.
A numeric expression.
Returns the trigonometric tangent of the input expression.
The tangent of the input angle.
An angle, measured in radians.
Returns the trigonometric tangent of the input expression.
The tangent of the input angle.
An angle, measured in radians.
Returns a new datetime value based on adding an interval to the specified date.
The new date.
The part of the date to increment.
The value used to increment a date by a specified amount.
The date to increment.
Returns a new time span value based on adding an interval to the specified time span.
The new time span.
The part of the date to increment.
The value used to increment a date by a specified amount.
The time span to increment.
Returns a new date value based on adding an interval to the specified date.
The new point in time, expressed as a date and time of day, relative to Coordinated Universal Time (UTC).
The part of the date to increment.
The value used to increment a date by a specified amount.
The date to increment.
Returns a new datetime value based on adding an interval to the specified date.
A of value that is the new date.
The part of the date to increment.
The value used to increment a date by a specified amount.
The date to increment.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The value specifying the number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two Dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns the count of the specified datepart boundaries crossed between the specified start date and end date.
The number of time intervals between the two dates.
The part of the date to calculate the differing number of time intervals.
The first date.
The second date.
Returns a character string that represents the specified datepart of the specified date.
The specified part of the specified date.
The part of the date to calculate the differing number of time intervals.
The date.
Returns a character string that represents the specified datepart of the specified date.
The specified part of the specified date.
The part of the date to calculate the differing number of time intervals.
The date.
Returns a character string that represents the specified datepart of the specified date.
The specified part of the specified date.
The part of the date to calculate the differing number of time intervals.
The date.
Returns a character string that represents the specified datepart of the specified date.
The specified part of the specified date.
The part of the date to calculate the differing number of time intervals.
The date.
Returns an integer that represents the specified datepart of the specified date.
The specified datepart of the specified date.
The part of the date to return the value.
The date.
Returns an integer that represents the specified datepart of the specified date.
The specified datepart of the specified date.
The part of the date to return the value.
The date.
Returns an integer that represents the specified datepart of the specified date.
The specified datepart of the specified date.
The part of the date to return the value.
The date.
Returns an integer that represents the specified datepart of the specified date.
The specified datepart of the specified date.
The part of the date to return the value.
The date.
Returns the current database system timestamp as a datetime value without the database time zone offset. This value is derived from the operating system of the computer on which the instance of SQL Server is running.
The current database timestamp.
Returns the current database system timestamp as a datetime value. The database time zone offset is not included. This value represents the current UTC time (Coordinated Universal Time). This value is derived from the operating system of the computer on which the instance of SQL Server is running.
The current database UTC timestamp.
Returns the number of bytes used to represent any expression.
The number of bytes in the input value.
The value to be examined for data length.
Returns the number of bytes used to represent any expression.
The number of bytes in the input value.
The value to be examined for data length.
Returns the number of bytes used to represent any expression.
The number of bytes in the input value.
The value to be examined for data length.
Returns the number of bytes used to represent any expression.
The number of bytes in the input value.
The value to be examined for data length.
Returns the number of bytes used to represent any expression.
The number of bytes in the input value.
The value to be examined for data length.
Returns the number of bytes used to represent any expression.
The number of bytes in the input value.
The value to be examined for data length.
Returns the number of bytes used to represent any expression.
The number of bytes in the input value.
The value to be examined for data length.
Returns the number of bytes used to represent any expression.
The number of bytes in the input value.
The value to be examined for length.
Returns the number of bytes used to represent any expression.
The number of bytes in the input value.
The value to be examined for data length.
Returns the checksum value computed over the input argument.
The checksum computed over the input value.
The value for which the checksum is calculated.
Returns the checksum value computed over the input argument.
The checksum computed over the input value.
The value for which the checksum is calculated.
Returns the checksum value computed over the input argument.
The checksum computed over the input value.
The value for which the checksum is calculated.
Returns the checksum value computed over the input argument.
The checksum computed over the input value.
The value for which the checksum is calculated.
Returns the checksum value computed over the input argument.
The checksum computed over the input values.
The value for which the checksum is calculated.
Returns the checksum value computed over the input argument.
The checksum computed over the input value.
The value for which the checksum is calculated.
Returns the checksum value computed over the input argument.
The checksum computed over the input value.
The value for which the checksum is calculated.
Returns the checksum value computed over the input argument.
The checksum computed over the input value.
The character array for which the checksum is calculated.
Returns the checksum value computed over the input argument.
The checksum computed over the input value.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The character array for which the checksum is calculated.
The character array for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The character array for which the checksum is calculated.
The character array for which the checksum is calculated.
The character array for which the checksum is calculated.
Returns the checksum value computed over the input arguments.
The checksum computed over the input values.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
The value for which the checksum is calculated.
Returns the current date and time.
The current date and time.
Returns the name of the current user.
The name of the current user.
Returns the workstation name.
The name of the workstation.
Returns a database user name corresponding to a specified identification number.
The user name.
A user ID.
Returns a database user name corresponding to a specified identification number.
The user name.
Indicates whether the input value is a valid numeric type.
1 if the input expression is a valid numeric data type; otherwise, 0.
A string expression.
Indicates whether the input value is a valid date or time.
1 if the input expression is a valid date or time value of datetime or smalldatetime data types; otherwise, 0.
The tested value.
Contains function stubs that expose SqlServer methods in Linq to Entities.
Returns a hierarchyid representing the nth ancestor of this.
A hierarchyid representing the nth ancestor of this.
The hierarchyid value.
n
Returns a child node of the parent.
The hierarchyid value.
null or the hierarchyid of a child of the current node.
null or the hierarchyid of a child of the current node.
Returns one child node that is a descendant of the parent.
If parent is null, returns null.
If parent is not null, and both child1 and child2 are null, returns a child of parent.
If parent and child1 are not null, and child2 is null, returns a child of parent greater than child1.
If parent and child2 are not null and child1 is null, returns a child of parent less than child2.
If parent, child1, and child2 are not null, returns a child of parent greater than child1 and less than child2.
If child1 is not null and not a child of parent, an exception is raised.
If child2 is not null and not a child of parent, an exception is raised.
If child1 >= child2, an exception is raised.
Returns an integer that represents the depth of the node this in the tree.
An integer that represents the depth of the node this in the tree.
The hierarchyid value.
Returns the root of the hierarchy tree.
The root of the hierarchy tree.
Returns true if this is a descendant of parent.
True if this is a descendant of parent.
The hierarchyid value.
parent
Returns a node whose path from the root is the path to newRoot, followed by the path from oldRoot to this.
Hierarchyid value.
The hierarchyid value.
oldRoot
newRoot
Converts the canonical string representation of a hierarchyid to a hierarchyid value.
Hierarchyid value.
input
Indicates if the provider supports the parameter optimization described in EntityFramework6 GitHub issue #195.
True since this provider supports the parameter optimization.
The DbProviderServices implementation for the SqlClient provider for SQL Server.
Note that instance of this type also resolve additional provider services for Microsoft SQL Server
when this type is registered as an EF provider either using an entry in the application's config file
or through code-based registration in .
The services resolved are:
Requests for are resolved to a Singleton instance of
to create connections to LocalDB by default.
Requests for for the invariant name "System.Data.SqlClient"
for any server name are resolved to a delegate that returns a
to provide a non-retrying policy for SQL Server.
Requests for for the invariant name "System.Data.SqlClient" are
resolved to instances to provide default Migrations SQL
generation for SQL Server.
Requests for for the invariant name "System.Data.SqlClient" are
resolved to a Singleton instance of to provide default spatial
services for SQL Server.
This is the well-known string using in configuration files and code-based configuration as
the "provider invariant name" used to specify Microsoft SQL Server for ADO.NET and
Entity Framework provider services.
The Singleton instance of the SqlProviderServices type.
Set to the full name of the Microsoft.SqlServer.Types assembly to override the default selection
Get or sets a value indicating whether parameter values are truncated to
the scale (number of decimal places) defined for their corresponding columns when they are sent
to the database. A value of true indicates that objects
created for columns will have their
properties set, which will cause the parameter values to be truncated. If set to false
then the properties will not be set, avoiding the truncation
behavior of and allowing SQL Server to round values if necessary.
The default value is true to prevent breaking existing applications that depend on this
behavior.
Gets or sets a value indicating whether to use the SCOPE_IDENTITY() function to retrieve values
generated by the database for numeric columns during an INSERT operation. The default value of
true is recommended and can provide better performance if all numeric values are generated
using IDENTITY columns. If set to false, an OUTPUT clause will be used instead. An OUTPUT
clause makes it possible to retrieve values generated by sequences or other means.
Gets or sets a value indicating whether the ROW_NUMBER() function is used in sort expression
passed to the ORDER BY clause when OFFSET is present in query. The default value of true
is recommended to obtain query results that are stable for paging operations. The value of
false can be used for compatibility with previous versions of EF and will cause the sort
expression to be passed unmodified to the ORDER BY clause, which can lead to unstable results
if the ordering is ambiguous.
This flag only applies to SQL Server 2012 or later. This flag does not affect queries that have
already been translated to SQL and cached, therefore applications that need to set the value to
false for compatibility should do so before executing any queries.
Registers a handler to process non-error messages coming from the database provider.
The connection to receive information for.
The handler to process messages.
Create a Command Definition object, given the connection and command tree
provider manifest that was determined from metadata
command tree for the statement
an executable command definition object
See issue 2390 - cloning the DesignTimeVisible property on the
can cause deadlocks.
So here overriding to provide a method that does not clone DesignTimeVisible.
the object to clone
a clone of the
Sets the parameter value and appropriate facets for the given .
The parameter.
The type of the parameter.
The value of the parameter.
Returns provider manifest token for a given connection.
Connection to find manifest token from.
The provider manifest token for the specified connection.
Returns the provider manifest by using the specified version information.
The token information associated with the provider manifest.
The provider manifest by using the specified version information.
Gets a spatial data reader for SQL Server.
The reader where the spatial data came from.
The manifest token associated with the provider manifest.
The spatial data reader.
Gets a spatial data reader for SQL Server.
The manifest token associated with the provider manifest.
The spatial data reader.
Generates a data definition language (DDL) script that creates schema objects
(tables, primary keys, foreign keys) based on the contents of the StoreItemCollection
parameter and targeted for the version of the database corresponding to the provider manifest token.
The provider manifest token identifying the target version.
The structure of the database.
A DDL script that creates schema objects based on the contents of the StoreItemCollection parameter
and targeted for the version of the database corresponding to the provider manifest token.
Create the database and the database objects.
If initial catalog is not specified, but AttachDBFilename is specified, we generate a random database name based on the AttachDBFilename.
Note: this causes pollution of the db, as when the connection string is later used, the mdf will get attached under a different name.
However if we try to replicate the name under which it would be attached, the following scenario would fail:
The file does not exist, but registered with database.
The user calls: If (DatabaseExists) DeleteDatabase
CreateDatabase
For further details on the behavior when AttachDBFilename is specified see Dev10# 188936
Connection to a non-existent database that needs to be created and populated with the store objects indicated with the storeItemCollection parameter.
Execution timeout for any commands needed to create the database.
The collection of all store items based on which the script should be created.
Determines whether the database for the given connection exists.
There are three cases:
1. Initial Catalog = X, AttachDBFilename = null: (SELECT Count(*) FROM sys.databases WHERE [name]= X) > 0
2. Initial Catalog = X, AttachDBFilename = F: if (SELECT Count(*) FROM sys.databases WHERE [name]= X) > 0 then true,
if not, try to open the connection and then return (SELECT Count(*) FROM sys.databases WHERE [name]= X) > 0
3. Initial Catalog = null, AttachDBFilename = F: Try to open the connection. If that succeeds the result is true, otherwise
if the there are no databases corresponding to the given file return false, otherwise throw.
Note: We open the connection to cover the scenario when the mdf exists, but is not attached.
Given that opening the connection would auto-attach it, it would not be appropriate to return false in this case.
Also note that checking for the existence of the file does not work for a remote server. (Dev11 #290487)
For further details on the behavior when AttachDBFilename is specified see Dev10# 188936
Connection to a database whose existence is checked by this method.
Execution timeout for any commands needed to determine the existence of the database.
The collection of all store items from the model. This parameter is no longer used for determining database existence.
True if the provider can deduce the database only based on the connection.
Determines whether the database for the given connection exists.
There are three cases:
1. Initial Catalog = X, AttachDBFilename = null: (SELECT Count(*) FROM sys.databases WHERE [name]= X) > 0
2. Initial Catalog = X, AttachDBFilename = F: if (SELECT Count(*) FROM sys.databases WHERE [name]= X) > 0 then true,
if not, try to open the connection and then return (SELECT Count(*) FROM sys.databases WHERE [name]= X) > 0
3. Initial Catalog = null, AttachDBFilename = F: Try to open the connection. If that succeeds the result is true, otherwise
if the there are no databases corresponding to the given file return false, otherwise throw.
Note: We open the connection to cover the scenario when the mdf exists, but is not attached.
Given that opening the connection would auto-attach it, it would not be appropriate to return false in this case.
Also note that checking for the existence of the file does not work for a remote server. (Dev11 #290487)
For further details on the behavior when AttachDBFilename is specified see Dev10# 188936
Connection to a database whose existence is checked by this method.
Execution timeout for any commands needed to determine the existence of the database.
The collection of all store items from the model. This parameter is no longer used for determining database existence.
True if the provider can deduce the database only based on the connection.
Delete the database for the given connection.
There are three cases:
1. If Initial Catalog is specified (X) drop database X
2. Else if AttachDBFilename is specified (F) drop all the databases corresponding to F
if none throw
3. If niether the catalog not the file name is specified - throw
Note that directly deleting the files does not work for a remote server. However, even for not attached
databases the current logic would work assuming the user does: if (DatabaseExists) DeleteDatabase
Connection
Timeout for internal commands.
Item Collection.
Clones the connection.
The original connection.
The factory to use.
Cloned connection
Provider to convert provider agnostic migration operations into SQL commands
that can be run against a Microsoft SQL Server database.
Determines if a provider specific exception corresponds to a database-level permission denied error.
The database exception.
true if the supplied exception corresponds to a database-level permission denied error; otherwise false.
Converts a set of migration operations into Microsoft SQL Server specific SQL.
The operations to be converted.
Token representing the version of SQL Server being targeted (i.e. "2005", "2008").
A list of SQL statements to be executed to perform the migration operations.
Generates the SQL body for a stored procedure.
The command trees representing the commands for an insert, update or delete operation.
The rows affected parameter name.
The provider manifest token.
The SQL body for the stored procedure.
Generates the specified update database operation which represents applying a series of migrations.
The generated script is idempotent, meaning it contains conditional logic to check if individual migrations
have already been applied and only apply the pending ones.
The update database operation.
Generates SQL for a .
Allows derived providers to handle additional operation types.
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Creates an empty connection for the current provider.
Allows derived providers to use connection other than .
An empty connection for the current provider.
Generates the specified create procedure operation.
The create procedure operation.
Generates the specified alter procedure operation.
The alter procedure operation.
Generates the specified drop procedure operation.
The drop procedure operation.
Generates SQL for a . This method differs from
in that it will
create the target database schema if it does not already exist.
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Writes CREATE TABLE SQL to the target writer.
The operation to produce SQL for.
The target writer.
Override this method to generate SQL when the definition of a table or its attributes are changed.
The default implementation of this method does nothing.
The operation describing changes to the table.
Generates SQL to mark a table as a system table.
Generated SQL should be added using the Statement method.
The table to mark as a system table.
The to write the generated SQL to.
Generates SQL to create a database schema.
Generated SQL should be added using the Statement method.
The name of the schema to create.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Call this method to generate SQL that will attempt to drop the default constraint created
when a column is created. This method is usually called by code that overrides the creation or
altering of columns.
The table to which the constraint applies.
The column to which the constraint applies.
The writer to which generated SQL should be written.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement or StatementBatch methods.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates the specified rename procedure operation.
The rename procedure operation.
Generates the specified move procedure operation.
The move procedure operation.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL for the given column model. This method is called by other methods that
process columns and can be overridden to change the SQL generated.
The column for which SQL is being generated.
The writer to which generated SQL should be written.
Returns the column default value to use for store-generated GUID columns when
no default value is explicitly specified in the migration.
Returns newsequentialid() for on-premises SQL Server 2005 and later.
Returns newid() for SQL Azure.
Either newsequentialid() or newid() as described above.
Generates SQL for a .
Generated SQL should be added using the Statement method.
The operation to produce SQL for.
Generates SQL to specify a constant byte[] default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify a constant bool default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify a constant DateTime default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify a constant DateTimeOffset default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify a constant Guid default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify a constant string default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify a constant TimeSpan default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify a constant hierarchyid default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify a constant geogrpahy default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify a constant geometry default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify a constant default value being set on a column.
This method just generates the actual value, not the SQL to set the default value.
The value to be set.
SQL representing the default value.
Generates SQL to specify the data type of a column.
This method just generates the actual type, not the SQL to create the column.
The definition of the column.
SQL representing the data type.
Generates a quoted name. The supplied name may or may not contain the schema.
The name to be quoted.
The quoted name.
Quotes an identifier for SQL Server.
The identifier to be quoted.
The quoted identifier.
Adds a new Statement to be executed against the database.
The statement to be executed.
Gets or sets a value indicating whether this statement should be performed outside of the transaction scope that is used to make the migration process transactional. If set to true, this operation will not be rolled back if the migration process fails.
The batch terminator for the database provider.
Gets a new that can be used to build SQL.
This is just a helper method to create a writer. Writing to the writer will
not cause SQL to be registered for execution. You must pass the generated
SQL to the Statement method.
An empty text writer to use for SQL generation.
Adds a new Statement to be executed against the database.
The writer containing the SQL to be executed.
The batch terminator for the database provider.
Breaks sql string into one or more statements, handling T-SQL utility statements as necessary.
The SQL to split into one ore more statements to be executed.
Gets or sets a value indicating whether this statement should be performed outside of the transaction scope that is used to make the migration process transactional. If set to true, this operation will not be rolled back if the migration process fails.
Contains function stubs that expose SqlServer methods in Linq to Entities.
Constructs a geography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).
The constructed geography instance.
The x-coordinate of the Point being generated.
The y-coordinate of the Point being generated
The SRID of the geography instance.
Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a geography instance augmented with any Z (elevation) and M (measure) values carried by the instance.
The Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a geography instance.
The geography value.
Returns a geometric object representing the union of all point values whose distance from a geography instance is less than or equal to a specified value, allowing for a specified tolerance.
The union of all point values whose distance from a geography instance is less than or equal to a specified value
The geography value.
The distance.
The specified tolerance.
Specifying whether the tolerance value is relative or absolute.
Returns the maximum angle between the point returned by EnvelopeCenter() and a point in the geography instance in degrees.
the maximum angle between the point returned by EnvelopeCenter().
The geography value.
Returns a point that can be used as the center of a bounding circle for the geography instance.
A SqlGeography value that specifies the location of the center of a bounding circle.
The geography value.
Offers a fast, index-only intersection method to determine if a geography instance intersects another SqlGeography instance, assuming an index is available.
True if a geography instance potentially intersects another SqlGeography instance; otherwise, false.
The geography value.
Another geography instance to compare against the instance on which Filter is invoked.
Tests if the SqlGeography instance is the same as the specified type.
A string that specifies one of the 12 types exposed in the geography type hierarchy.
The geography value.
A string that specifies one of the 12 types exposed in the geography type hierarchy.
Returns the total number of rings in a Polygon instance.
The total number of rings.
The geography value.
Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.
Returns .
The geography value.
The tolerance to input to the Douglas-Peucker algorithm. tolerance must be a positive number.
Returns the specified ring of the SqlGeography instance: 1 ≤ n ≤ NumRings().
A SqlGeography object that represents the ring specified by n.
The geography value.
An int expression between 1 and the number of rings in a polygon instance.
Constructs a geometry instance representing a Point instance from its x and y values and a spatial reference ID (SRID).
The constructed geometry instance.
The x-coordinate of the Point being generated.
The y-coordinate of the Point being generated
The SRID of the geography instance.
Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a geography instance augmented with any Z (elevation) and M (measure) values carried by the instance.
The Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a geometry instance.
The geometry value.
Returns a geometric object representing the union of all point values whose distance from a geometry instance is less than or equal to a specified value, allowing for a specified tolerance.
The union of all point values whose distance from a geometry instance is less than or equal to a specified value
The geometry value.
The distance.
The specified tolerance.
Specifying whether the tolerance value is relative or absolute.
Tests if the SqlGeometry instance is the same as the specified type.
A string that specifies one of the 12 types exposed in the geography type hierarchy.
The geometry value.
A string that specifies one of the 12 types exposed in the geography type hierarchy.
Offers a fast, index-only intersection method to determine if a geography instance intersects another SqlGeometry instance, assuming an index is available.
True if a geography instance potentially intersects another SqlGeography instance; otherwise, false.
The geometry value.
Another geography instance to compare against the instance on which Filter is invoked.
Converts an invalid geometry instance into a geometry instance with a valid Open Geospatial Consortium (OGC) type.
The converted geometry instance.
The geometry value.
Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.
Returns .
The geometry value.
The tolerance to input to the Douglas-Peucker algorithm. tolerance must be a positive number.
An implementation of to provide support for geospatial types when using
Entity Framework with Microsoft SQL Server.
Contains extension methods for the class.
Configures an awaiter used to await this to avoid
marshalling the continuation
back to the original context, but preserve the current culture and UI culture.
The type of the result produced by the associated .
The task to be awaited on.
An object used to await this task.
Configures an awaiter used to await this to avoid
marshalling the continuation
back to the original context, but preserve the current culture and UI culture.
The task to be awaited on.
An object used to await this task.
Provides an awaitable object that allows for awaits on that
preserve the culture.
The type of the result produced by the associated .
This type is intended for compiler use only.
Constructs a new instance of the class.
The task to be awaited on.
Gets an awaiter used to await this .
An awaiter instance.
This method is intended for compiler user rather than use directly in code.
Gets whether this Task has completed.
will return true when the Task is in one of the three
final states: RanToCompletion,
Faulted, or
Canceled.
Ends the await on the completed .
The result of the completed .
The awaiter was not properly initialized.
The task was canceled.
The task completed in a Faulted state.
This method is not implemented and should not be called.
The action to invoke when the await operation completes.
Schedules the continuation onto the associated with this
.
The action to invoke when the await operation completes.
The argument is null
(Nothing in Visual Basic).
The awaiter was not properly initialized.
This method is intended for compiler user rather than use directly in code.
Provides an awaitable object that allows for awaits on that
preserve the culture.
This type is intended for compiler use only.
Constructs a new instance of the class.
The task to be awaited on.
Gets an awaiter used to await this .
An awaiter instance.
This method is intended for compiler user rather than use directly in code.
Gets whether this Task has completed.
will return true when the Task is in one of the three
final states: RanToCompletion,
Faulted, or
Canceled.
Ends the await on the completed .
The awaiter was not properly initialized.
The task was canceled.
The task completed in a Faulted state.
This method is not implemented and should not be called.
The action to invoke when the await operation completes.
Schedules the continuation onto the associated with this
.
The action to invoke when the await operation completes.
The argument is null
(Nothing in Visual Basic).
The awaiter was not properly initialized.
This method is intended for compiler user rather than use directly in code.