EntityFramework.SqlServerCompact Provider to convert provider agnostic migration operations into SQL commands that can be run against a Microsoft SQL Server Compact Edition database. 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 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 . Generated SQL should be added using the Statement method. The operation to produce SQL for. 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 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. 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. 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 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. 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. Breaks 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. Returns the column default value to use for store-generated GUID columns when no default value is explicitly specified in the migration. Always returns newid() for SQL Compact. The string newid(). Indicates if the provider supports the parameter optimization described in EntityFramework6 GitHub issue #195. True since this provider supports the parameter optimization. The ProviderServices object for the Sql CE provider Note that instance of this type also resolves additional provider services for Microsoft SQL Server Compact Edition 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 SQL Compact by default. Requests for for the invariant name "System.Data.SqlServerCe.4.0" are resolved to instances to provide default Migrations SQL generation for SQL Compact. 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 Compact Edition 4.0 for ADO.NET and Entity Framework provider services. Singleton object; API for generating script for creating schema objects from the Store Item Collection. Provider manifest Store items T-SQL script for generating schema objects. API for checkin whether database exists or not. This will internally only check whether the file that the connection points to exists or not. Note: In case of SQLCE, timeout and storeItemCollection parameters are ignored. Connection Timeout for internal commands. Item Collection. Bool indicating whether database exists or not. API for checkin whether database exists or not. This will internally only check whether the file that the connection points to exists or not. Note: In case of SQLCE, timeout and storeItemCollection parameters are ignored. Connection Timeout for internal commands. Item Collection. Bool indicating whether database exists or not. API for deleting the database. In SQLCE case, this will translate to File.Delete() call. Note: Timeout and storeItemCollection parameters are ignored. Connection Timeout for internal commands. Item Collection. API for creating the databse and schema objects given a StoreItemCollection. This will do following things: 1. Create a new database using SqlCeEngine.CreateDatabase(). 2. Generate scripts for creating schema objects. 3. Execute the scrip generated in step2. Connection Timeout for internal commands Store Item Collection 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 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 provider manifest by using the specified version information. The token information associated with the provider manifest. Contains function stubs that expose SqlServerCe methods in Linq to Entities. 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 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. 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 . 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 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 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 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 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 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.