System.Data.Linq Represents an immutable block of binary data. Initializes a new instance of the class. The bytes representing the binary data. Determines whether two binary objects are equal. true if the two binary objects are equal; otherwise, false. The to which the current object is being compared. Determines whether the specified is equal to the current . true if the two binary objects are equal; otherwise, false. The to compare with the current . Serves as a hash function for a particular type. A hash code for the current binary object. Gets the length of the binary object. An integer representing the length. Describes the equality relationship between two binary objects. true if the binary objects are equal; otherwise false. First binary object. Second binary object. Enables arrays of bytes to be implicitly coerced to the type in a programming language. A class containing the coerced value. The array of bytes to convert into an instance of the type. Describes the inequality relationship between two binary objects. true if the binary objects are not equal; otherwise false. The first binary object. The second binary object. Returns an array of bytes that represents the current binary object. A byte array that contains the value of the current binary object. Returns a that represents the current binary object. A that represents the current binary object. Describes the type of change the entity will undergo when changes are submitted to the database. The entity will not be submitted. The entity will be deleted. The entity will be inserted. The entity will be updated. Returns a collection of objects involved in concurrency conflicts. 2 Removes all conflicts from the collection. Specifies whether a given conflict is a member of the collection. Returns true if the specified conflict is a member of the collection. The specified conflict. For a description of this member, see . The array to copy to. The array index where the copy is to start. Returns the number of conflicts in the collection integer Returns the enumerator for the collection. An enumerator for the collection. Returns an item in conflict. An representing the item in conflict. Index in the collection of the item in conflict. Specifies whether the specified conflict is removed from the collection. Returns true if the is removed from the collection. The conflict to remove. Resolves all conflicts in the collection by using the specified strategy. One of the options available in . Resolves all conflicts in the collection by using the specified strategy. The strategy to use to resolve the conflict. If true, automatically resolves conflicts that result from a modified object that is no longer in the database. For a description of this member, see . The item to add. For a description of this member, see . Returns true if the collection is read-only. Copies the collection to an array. Name of the array. Index of the array. For a description of this member, see . Returns true if access to the collection is synchronized (thread safe). For a description of this member, see . Returns an object that can be used to synchronize access to the collection. For a description of this member, see . An enumerator that iterates through a collection. Thrown when an update fails because database values have been updated since the client last read them. Initializes a new instance of the class. Initializes a new instance of the class and specifies a message to explain the exception. The message to be exposed when the exception is thrown. Initializes a new instance of the class, specifies a message to explain the exception, and specifies the exception that caused this exception. The message to be exposed when the exception is thrown. Specifies the exception of which is a result. Provides a container to hold changes. 2 Gets a list of entities that have been deleted from the . An of deleted entities. Gets a list of entities that have been inserted into the . An of inserted entities. Returns a string that represents the current . A string that represents the current . Gets a list of entities that have been updated in the . An of updated entities. Provides for compilation and caching of queries for reuse. Compiles the query. A generic delegate that represents the compiled query. The query expression to be compiled. Represents the type of the parameter that has to be passed in when executing the delegate returned by the method. The type of T in the returned when executing the delegate returned by the method. Compiles the query. A generic delegate that represents the compiled query. The query expression to be compiled. Represents the type of the parameter that has to be passed in when executing the delegate returned by the method. Represents the type of the parameter that has to be passed in when executing the delegate returned by the method. The type of T in the returned when executing the delegate returned by the method. Compiles the query. A generic delegate that represents the compiled query. The query expression to be compiled. Represents the type of the parameter that has to be passed in when executing the delegate returned by the method. Represents the type of the parameter that has to be passed in when executing the delegate returned by the method. Represents the type of the parameter that has to be passed in when executing the delegate returned by the method. The type of T in the returned when executing the delegate returned by the method. Compiles the query. A generic delegate that represents the compiled query. The query expression to be compiled. Represents the type of the parameter that has to be passed in when executing the delegate returned by the method. Represents the type of the parameter that has to be passed in when executing the delegate returned by the method. Represents the type of the parameter that has to be passed in when executing the delegate returned by the method. Represents the type of the parameter that has to be passed in when executing the delegate returned by the method. The type of T in the returned when executing the delegate returned by the method. Returns the query as a lambda expression. The lambda expression that represents the query. Specifies when concurrency conflicts should be reported. Specifies that attempts to update the database should stop immediately when the first concurrency conflict error is detected. Specifies that all updates to the database should be tried, and that concurrency conflicts should be accumulated and returned at the end of the process. Represents the main entry point for the LINQ to SQL framework. Initializes a new instance of the class by referencing the connection used by the .NET Framework. The connection used by the .NET Framework. Initializes a new instance of the class by referencing a connection and a mapping source. The connection used by the .NET Framework. The . Initializes a new instance of the class by referencing a file source. This argument can be any one of the following:The name of a file where a SQL Server Express database resides.The name of a server where a database is present. In this case the provider uses the default database for a user.A complete connection string. LINQ to SQL just passes the string to the provider without modification. Initializes a new instance of the class by referencing a file source and a mapping source. This argument can be any one of the following:The name of a file where a SQL Server Express database resides.The name of a server where a database is present. In this case the provider uses the default database for a user.A complete connection string. LINQ to SQL just passes the string to the provider without modification. The . Returns a collection of objects that caused concurrency conflicts when was called. A collection of the objects. 2 Increases the time-out period for queries that would otherwise time out during the default time-out period. An integer value that represents seconds. Returns the connection used by the framework. The connection. Creates a database on the server. Executes the table-valued database function associated with the specified CLR method. A collection of resultant values returned by the database query.  The instance of the method invocation (the current object). Identifies the CLR method that corresponds to a database method. The array of parameters to be passed to the command. The type of the elements in the returned collection. Determines whether the associated database can be opened. true if the specified database can be opened; otherwise, false. Specifies whether to delay-load one-to-many or one-to-one relationships. true if deferred loading is enabled; otherwise false. Deletes the associated database. 2 Releases all resources used by the . 2 Releases resources used by the . true to release both managed and unmanaged resources; false to release only unmanaged resources. Executes SQL commands directly on the database. An int representing the number of rows modified by the executed command. The SQL command to be executed. The array of parameters to be passed to the command. Note the following behavior:If the number of objects in the array is less than the highest number identified in the command string, an exception is thrown.If the array contains objects that are not referenced in the command string, no exception is thrown.If any one of the parameters is null, it is converted to DBNull.Value. 2 Called inside delete override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for delete operations. The entity to be deleted. Called inside insert override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for insert operations. The entity to be inserted. Called inside update override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for update operations. The entity to be updated. Executes the stored database procedure or scalar function associated with the specified CLR method. The result (the return value and output parameters) of executing the specified method.  The instance of the method invocation (the current object). Identifies the CLR method that corresponds to a database method. The array of parameters to be passed to the command. Executes SQL queries directly on the database and returns objects. A collection of objects returned by the query. The SQL query to be executed. The array of parameters to be passed to the command. Note the following behavior:If the number of objects in the array is less than the highest number identified in the command string, an exception is thrown.If the array contains objects that are not referenced in the command string, no exception is thrown.If a parameter is null, it is converted to DBNull.Value. The type of the elements in the returned collection. 2 Executes SQL queries directly on the database. An collection of objects returned by the query. The type of the to be returned.The algorithm for matching columns in the result of the query to fields or properties in the object works as follows:If a field or property is mapped to a particular column name, that column name is expected in the resultset.If a field or property is not mapped, a column with the same name as the field or property is expected in the resultset.The comparison is performed by looking for a case-sensitive match first. If this match is not found, a subsequent search occurs for a case-insensitive match.The query must return all the tracked fields and properties of the object (except those that are loaded on a deferred basis) when all the following conditions are true: is an entity explicitly tracked by the . is true.The entity has a primary key.Otherwise an exception is thrown. The SQL query to be executed. The array of parameters to be passed to the command. Note the following behavior:If the number of objects in the array is less than the highest number identified in the command string, an exception is thrown.If the array contains objects that are not referenced in the command string, no exception is thrown.If a parameter is null, it is converted to DBNull.Value. 2 Provides access to the modified objects tracked by . The set of objects is returned as three read-only collections. Provides information about SQL commands generated by LINQ to SQL. The requested command information object. The query whose SQL command information is to be retrieved. 2 Returns a collection of objects of a particular type, where the type is defined by the parameter. A collection of objects. The type of the objects to be returned. 2 Returns a collection of objects of a particular type, where the type is defined by the parameter. A collection of objects. The type of the objects to be returned. 2 Gets or sets the associated with this . The prefetch load options for related data. Specifies the destination to write the SQL query or command. The to use for writing the command. Returns the on which the mapping is based. The . 2 Instructs the framework to track the original value and object identity for this . true to enable object tracking; otherwise, false. The default is true. 2 Refreshes a collection of entity objects according to the specified mode. A value that specifies how optimistic concurrency conflicts are handled. The collection of entities to be refreshed. 2 Refreshes an entity object according to the specified mode. A value that specifies how optimistic concurrency conflicts are handled. The object to be refreshed. 2 Refreshes an array of entity objects according to the specified mode. A value that specifies how optimistic concurrency conflicts are handled. The array of entity objects to be refreshed. 2 Computes the set of modified objects to be inserted, updated, or deleted, and executes the appropriate commands to implement the changes to the database. Sends changes that were made to retrieved objects to the underlying database, and specifies the action to be taken if the submission fails. The action to be taken if the submission fails. Valid arguments are as follows: Sets a local transaction for the .NET Framework to use to access the database. 2 Converts an existing to objects. A list of objects returned by the conversion. The to be converted. Converts an existing to objects. A collection of objects returned by the conversion. The to be converted. The type of the to be returned. Converts an existing to objects. A list of objects returned by the conversion. The type of the to be returned.The algorithm for matching columns in the result to fields and properties in the object works as follows:If a field or property is mapped to a particular column name, that column name is expected in the resultset.If a field or property is not mapped, a column with the same name as the field or property is expected in the resultset.The comparison is performed by looking for a case-sensitive match first. If this match is not found, a subsequent search is occurs for a case-insensitive match.The query must return all the tracked fields and properties of the object (except those that are loaded on a deferred basis) when all the following conditions are true: is an entity explicitly tracked by the . is true.The entity has a primary key.Otherwise an exception is thrown. The to be converted. Provides for immediate loading and filtering of related data. Initializes a new instance of the class. Filters objects retrieved for a particular relationship. Identifies the query to be used on a particular one-to-many field or property. Note the following:If the expression does not start with a field or property that represents a one-to-many relationship, an exception is thrown.If an operator other than a valid operator appears in the expression, an exception is thrown. Valid operators are as follows:WhereOrderByThenByOrderByDescendingThenByDescendingTake The type that is queried against.If the type is unmapped, an exception is thrown. Filters the objects retrieved for a particular relationship. Identifies the query to be used on a particular one-to-many field or property. Note the following:If the expression does not start with a field or property that represents a one-to-many relationship, an exception is thrown.If an operator other than a valid operator appears in the expression, an exception is thrown. Valid operators are as follows:WhereOrderByThenByOrderByDescendingThenByDescendingTake 2 Specifies which sub-objects to retrieve when a query is submitted for an object of type T. Identifies the field or property to be retrieved.If the expression does not identify a field or property that represents a one-to-one or one-to-many relationship, an exception is thrown. Type that is queried against.If this type is unmapped, an exception is thrown. Retrieves specified data related to the main target by using a lambda expression. A lambda expression that identifies the related material. 2 Used internally to convert one type to another. 2 Changes the specified value to the current type. An object of the specified type that contains the converted value. The object to be converted. The type to change to. Changes the specified value to the specified type. An object that contains the converted value of the specified type. The object to be converted. The type to convert the object to. Thrown when an attempt is made to add an object to the identity cache by using a key that is already being used. 2 Initializes a new instance of the class. The duplicate key that caused the exception to be thrown. Initializes a new instance of the class by referencing the duplicate key and providing an error message. The duplicate key that caused the exception to be thrown. The message to appear when the exception is thrown. Initializes a new instance of the class by referencing the duplicate key, providing an error message, and specifying the exception that caused this exception to be thrown. The duplicate key that caused the exception to be thrown. The message to appear when the exception is thrown. The previous exception that caused the exception to be thrown. Gets the object that caused the exception. The object that caused the exception. Provides for deferred loading and relationship maintenance for the singleton side of a one-to-many relationship in a LINQ to SQL application. The type of the target entity. Initializes a new instance of the class by specifying the source. The reference source. Initializes a new instance of the class by referencing the target entity. The target entity. Initializes a new instance of the class by specifying the target entity. The target entity. Gets or sets the target entity. The target entity. Gets a value that indicates whether the target has been loaded or assigned. True if the target has been loaded or assigned. Provides for deferred loading and relationship maintenance for the collection side of one-to-many and one-to-one relationships in a LINQ to SQL applications.  The data type of the target entity. Initializes a new instance of the class. Initializes a new instance of the class while supplying handlers for add and remove operations. Delegate for . Delegate for . Adds an entity. The entity to add. Adds a collection of entities. The collection to be added. Assigns an collection to another collection. The collection to assign. Removes all items. Specifies whether the contains a specific entity. true if the contains the entity; otherwise, false. The entity. Copies the to an array. The array to copy to. The starting index in the array. Gets the number of entities in the collection. An integer representing the number of entities. Returns an enumerator that iterates through a collection. An . Creates a new list for binding to a data source. A new for binding to a data source. Specifies whether the has loaded or assigned a value. Returns true if the has either loaded or assigned a value. Returns the index of the entity. An integer representing the index. The entity whose index is to be returned. Inserts an entity at an index position. The index representing the position at which to insert the entity. The entity to be inserted. Specifies whether this has a deferred query that has not yet executed. true if a deferred query has not yet been executed; otherwise false. Gets or sets the element at the specified index. An representing the item. The index of the element. Occurs when the contents of a list are changed. Loads the . Removes an entity. true if the entity is successfully removed; otherwise, false. The entity to be removed. Removes an entity at a specified index. The index of the entity to be removed. Sets the source of the . The source of the . For a description of this member, see . true if the collection is read-only; otherwise, false. For a description of this member, see . The array to which elements of the collection are copied. The array index at which copying begins. For a description of this member, see . true if access to the collection is synchronized (thread-safe); otherwise, false. For a description of this member, see . An object that can be used to synchronize access to the collection. For a description of this member, see . An object that can be used to iterate through a collection. For a description of this member, see . The position into which the new element was inserted. The object to add to the list. For a description of this member, see . true if the is found in the ; otherwise, false. The object to locate in the list. For a description of this member, see . The index of if found in the list; otherwise, -1. The object to locate in the list. For a description of this member, see . The index of the object in the list. The object to insert into the list. For a description of this member, see . true if the collection has a fixed size; otherwise false. For a description of this member, see . true if the collection is read-only; otherwise, false. For a description of this member, see . The element at the specified index. The index at which to set or get the element. For a description of this member, see . The object to remove from the list. For a description of this member, see . true if the collection is a collection of objects; otherwise false; For a description of this member, see . An that can be bound to a data source from the object. Represents errors that occur when an attempt is made to change a foreign key when the entity is already loaded. 2 Initializes a new instance of the class with a system-supplied message that describes the error. Initializes a new instance of the class with a specified message that describes the error. The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture. The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. Provides access to the return value or results of executing a query. Provides access to the nth output parameter. An object that contains the value of the specified parameter. The index of the parameter to be retrieved. Gets the return value or result of the executed query. The value or result of the executed query. Provides access to the return value of a function. Gets the return value of a function. The value returned by the function. Represents the results of mapped functions or queries with variable return sequences. Retrieves the next result as a sequence of a specified type. An enumeration for iterating over the results. The type of the sequence to be returned. Represents the result of a mapped function that has a single return sequence. The type of the elements in the return sequence. Used for weakly typed query scenarios. 2 Attaches an entity to the in an unmodified state. The entity to be attached. Attaches all entities of a collection to the in either a modified or unmodified state. The collection of entities. true to attach the entities as modified. Attaches an entity to the in either a modified or unmodified state by specifying both the entity and its original state. The entity to be attached. An instance of the same entity type with data members that contain the original values. Attaches all entities of a collection to the in either a modified or unmodified state. The collection of entities. Attaches all entities of a collection to the in either a modified or unmodified state. The collection of entities. true to attach the entities as modified. Gets the that has been used to retrieve this . Puts all entities from the collection into a pending delete state. The collection from which all items are removed. Puts an entity from this table into a pending delete state. The entity to be removed. Returns an array of modified members that contain their current and original values. The entity from which to get the array. Retrieves original values. A copy of the original entity. The value is null if the entity passed in is not tracked. Disconnected entities sent back by a client must be attached before the can begin to track their state. The "original state" of a newly attached entity is established based on values supplied by the client. The data context does not track the state of disconnected entities. The entity whose original value is to be retrieved. Adds all entities of a collection to the in a pending insert state. The entities to add. Adds an entity in a pending insert state to this table. The entity to be added. Returns true if is false in the that has been used to retrieve this . Used to enable deferred loading of individual properties (similar to ). The type of the elements in the deferred source. Initializes a new instance of the structure by referencing the source. The source collection. Initializes a new instance of the structure by copying the internal state from another instance. The instance from which to copy. Initializes a new instance of the structure by referencing the value of the property. The value for the property. Specifies whether the has loaded or assigned a value. true if the has either loaded or assigned a value; otherwise false. Gets a value that specifies whether the source has a value. Returns true if the source has an assigned or loaded value (including null). Gets or sets the value assigned to or loaded by the . The value of this deferred property. Represents a situation in which an attempted update fails because member values have been updated since the client last read them. Gets the current value of the member in conflict. The object in conflict. Gets the database value of the member in conflict. The value of the object in conflict. Gets a value that indicates whether the member data has been changed since the last database read or refresh. True if the member data has been changed. Gets a value that indicates whether the conflict has been resolved. True if the conflict has been resolved. Gets metadata information about the member in conflict. Information about the member in conflict. Gets the original value of the member in conflict. The original value of the member in conflict. Uses a parameter to automatically specify the value to set as the current value for the member in conflict. See . Specifies the value to set as the current value for the member in conflict. The value to set as the current value. Holds values of members that have been modified in LINQ to SQL applications. 2 Gets the current value of the modified member. The value of the member. Gets member information for the modified member. Information about the member in conflict. Gets the original value of the modified member. The original value for the modified member. Represents an update attempt with one or more optimistic concurrency conflicts. 2 Gets a value that indicates whether the object in conflict has been deleted from the database. True if the object has been deleted. Gets a value that indicates whether the conflicts for this object have already been resolved. True if the conflicts have been resolved. Gets a collection of all member conflicts that caused the update to fail. A collection of member conflicts. Gets the object in conflict. The object in conflict. Resolves member conflicts by keeping current values and resetting the baseline original values to match the more recent database values. Resolves member conflicts by using the specified . The appropriate option from . Resolve member conflicts keeping current values and resetting the baseline original values. The appropriate option from . When true, automatically resolves conflicts resulting from a modified object that is no longer in the database. Defines how the method handles optimistic concurrency conflicts. 2 Forces the method to swap the original value with the values retrieved from the database. No current value is modified. Forces the method to keep the current value that has been changed, but updates the other values with the database values. Forces the method to override all the current values with the values from the database. Represents a table for a particular type in the underlying database. The type of the data in the table. Attaches a disconnected or "detached" entity to a new when original values are required for optimistic concurrency checks. The original values of the entity to be attached. Attaches an entity to the in either a modified or unmodified state. The entity to be attached. True to attach the entity as modified. Attaches an entity to the in either a modified or unmodified state by specifying both the entity and its original state. The entity to be attached. An instance of the same entity type with data members that contain the original values. Attaches all entities of a collection to the in either a modified or unmodified state. The collection of entities. The type of entities to attach. Attaches all entities of a collection to the in either a modified or unmodified state. The collection of entities. true if the object has a timestamp or RowVersion member, false if original values are being used for the optimistic concurrency check. The type of entities to attach. Gets the that has been used to retrieve this . The . 2 Puts an entity from this table into a pending delete state. The entity to be deleted. Gets an enumerator for the collection. An enumerator that can be used to iterate through the collection. 2 Returns an array of modified members that contain their current and original values. An array of modified members. The entity from which to get the array. 2 Creates a new list for binding to a data source. A new for binding to a data source. Returns an instance that contains the original state of the entity. A instance in its original state. The entity whose original state is to be returned. 2 Adds all entities of a collection to the in a pending insert state. The entities to add. The type of the elements to insert. Adds an entity in a pending insert state to this . The entity to be added. Gets a value that indicates the value of in the that has been used to retrieved this . Returns true if is false. For a description of this member, see . An enumerator that can be used to iterate through the collection. For a description of this member, see . An enumerator that can be used to iterate through the collection. For a description of this member, see . true if the collection is a collection of objects; otherwise, false. For a description of this member, see . An that can be bound to a data source. For a description of this member, see . The entity to be attached. For a description of this member, see . The entity to be attached. True to attach the entity as modified. For a description of this member, see . The entity to be attached. An instance of the same entity type with data members that contain the original values. For a description of this member, see . The collection of entities. For a description of this member, see . The collection of entities. True to attach the entities as modified. For a description of this member, see . The entities being removed. For a description of this member, see . The entity to be removed. For a description of this member, see . An array of modified members. The entity from which to obtain the modified members. For a description of this member, see . A copy of the original entity. The entity whose original state is to be accessed. For a description of this member, see . The collection of entities. For a description of this member, see . The entity to add. For a description of this member, see . A that represents the type of the element(s) that are returned when the expression tree associated with this object is executed. For a description of this member, see . The that is associated with this instance of . For a description of this member, see . The that is associated with this data source. For a description of this member, see . An that can evaluate the query represented by the specified expression tree. The query expression. The type of the data in the table. For a description of this member, see . An that can evaluate the query represented by the specified expression tree. The query expression. For a description of this member, see . The value that results from executing the specified query. The query expression to execute. For a description of this member, see . The value that results from executing the specified query. The query expression to execute. The type of the data in the table. Returns a string that represents the table. A string representing the table. 2 Designates a property to represent a database association, such as a foreign key relationship. Initializes a new instance of the class. When placed on a 1:1 association whose foreign key members are all non-nullable, deletes the object when the association is set to null. Setting to True deletes the object. The default value is False. Gets or sets delete behavior for an association. A string representing the rule. Gets or sets the member as the foreign key in an association representing a database relationship. Default = false. Gets or sets the indication of a uniqueness constraint on the foreign key. Default = false. Gets or sets one or more members of the target entity class as key values on the other side of the association. Default = Id of the related class. Gets or sets members of this entity class to represent the key values on this side of the association. Default = Id of the containing class. A mapping source that uses attributes on the context to create the mapping model. Initializes a new instance of the class. Instructs the runtime how to retrieve the value after an insert or update operation. Automatically selects the value. Always returns the value. Never returns the value. Returns the value only after an insert operation. Returns the value only after an update operation. Associates a class with a column in a database table. Initializes a new instance of the class. Gets or sets the enumeration. The value. Gets or sets whether a column can contain null values. Default = true. Gets or sets the type of the database column. See Remarks. Gets or sets whether a column is a computed column in a database. Default = empty. Gets or sets whether a column contains values that the database auto-generates. Default = false. Gets or sets whether a column contains a discriminator value for a LINQ to SQL inheritance hierarchy. Default = false. Gets or sets whether this class member represents a column that is part or all of the primary key of the table. Default = false. Gets or sets whether the column type of the member is a database timestamp or version number. Default value = false. Gets or sets how LINQ to SQL approaches the detection of optimistic concurrency conflicts. Default = , unless is true for a member.Other values are and . Provides members to describe attributes of data in columns. Initializes a new instance of the class. Gets or sets the name of a column. The name. Gets or sets a private storage field to hold the value from a column. The name of the storage field. Specifies certain attributes of a class that represents a database. Initializes a new instance of the class. Gets or sets the name of the database. The name. Associates a method with a stored procedure or user-defined function in the database. Initializes a new instance of the class. Gets or sets whether a method is mapped to a function or to a stored procedure. true if a function; false if a stored procedure. Gets or sets the name of the function. The name of the function or stored procedure. Maps an inheritance hierarchy in a LINQ to SQL application. Initializes a new instance of the class. Gets or sets the discriminator code value in a mapped inheritance hierarchy. Must be user-specified. There is no default value. Gets or sets whether an object of this type in instantiated when the discriminator value does not match a specified value. Default = false. Gets or sets the type of the class in the hierarchy. Must be user-specified. There is no default value. Represents a source for mapping information. Initializes a new instance of the class. Creates a new mapping model. The meta-model created to match the current mapping scheme. The type of on which to base the mapping. Returns the mapping model. The mapping model associated with this mapping source. The type of of the model to be returned. Represents an accessor to a member. Initializes a new instance of the class. Specifies an object on which to set a value or from which to get a value. The boxed value of this instance. The instance from which to get the value or on which to set the value. Specifies whether the instance has an assigned value. true if the instance currently has an assigned value; otherwise, false. The instance being looked at. Specifies whether the instance has a value loaded from a deferred source. true if the instance currently has a value loaded from a deferred source; otherwise, false. The instance being looked at. Specifies whether the instance has a loaded or assigned value. true if the instance currently has a loaded or assigned value; otherwise, false. The instance being looked at. Sets the value as an object. The instance into which to set the value. The value to set. Gets the type of the member accessed by this accessor. The type of the member. A strongly typed version of the class. The type of the source. The type of the member of that source. Initializes a new instance of the class. Specifies an object on which to set a value or from which to get a value. The boxed value of this instance. The instance from which to get the value or on which to set the value. Specifies the strongly typed value. The value of this instance. The instance from which to get the value. Specifies an instance on which to set the boxed value. The instance into which to set the boxed value. The value to set. Specifies an instance on which to set the strongly typed value. The instance into which to set the value. The strongly typed value to set. Gets the type of the member accessed by this accessor. The member type. Represents an association relationship between two entity types. Initializes a new instance of the class. Gets whether the object should be deleted when the association is set to null. If true, the object is deleted when the association is set to null. Gets the behavior when the child is deleted. The string representing the rule, or null if no action is specified on delete. Gets whether the other type is the parent of this type. Returns true is the other type is the parent of this type. Gets whether the association represents a one-to-many relationship. Returns true if the association represents a one-to-many relationship. Gets whether the association can be null. Returns true if the association can be null. Gets whether the association is unique. Returns true if the association is unique. Gets a list of members that represents the values on the other side of the association. Returns a collection representing values on the other side of the association. Gets whether the forms the identity of the other type. true if the forms the identity (primary key) of the other type. Gets the member on the other side of this association that represents the reverse association. The member on the other side. Gets the type on the other side of the association. The type. Gets a list of members representing the values on this side of the association. A collection. Gets whether forms the identity of this type. true if forms the identity (primary key) of the association. Gets the member on this side that represents the association. The member. Represents the mapping between a field or a property of a domain object into a column of a database table. Initializes a new instance of the class. Gets the that corresponds to this member. The corresponding if one exists; otherwise, null. Gets the read-back behavior for this member for insert and update operations. An enumeration. Gets whether the value of this member can be assigned the null value. true if this member can be assigned the null value; otherwise, false. Gets the type of the corresponding database column. The type of the database column as a string. Gets the that contains this data member. The meta-type that contains the current member. Gets the accessor that is used to get and set the deferred source of this member. The accessor used to access the deferred source for this member. Gets the accessor that is used to get and set the deferred value of this member (without causing fetch). The accessor used to access the deferred value for this member. Gets the expression that defines a computed column. The expression for the computed column as a string. Gets whether this member defines an association relationship. true if this member defines an association relationship; otherwise, false. Gets whether this member is automatically generated by the database. true if this member is automatically generated by the database; otherwise false. Specifies whether this member is declared by the specified type. true if this member is declared by the specified type; otherwise, false. The type to check. Gets whether the default behavior is to load this member on a deferred basis. true if this member loaded on a deferred basis by default; otherwise, false. Gets whether this member represents the inheritance discriminator. true if this member represents the inheritance discriminator; otherwise, false. Gets whether this member is mapped to a column (or constraint). true if this member is mapped to a column (or constraint); otherwise, false. Gets whether this member is part of the type's identity. true if this member is part of the type's identity; otherwise, false. Gets whether this member represents the row version or timestamp. true if this member represents the row version or timestamp; otherwise, false. Gets the method that is used to perform load operations. The load method as . Gets the name of the column (or constraint) in the database. The name of the column (or constraint) as a string. Gets the underlying . Gets the accessor that is used to get or set the value of this member. The accessor. Gets the name of the member, same as the name. The name, same as the name. Gets the ordinal position of this member in the default layout of query results. The ordinal position. Gets the accessor that is used to get or set the storage value of this member. The accessor for the storage value of this member. Gets the member that stores the data for this member. The storage member. Gets the type of this member. The type of the current member. Gets the optimistic concurrency check policy for this member. An enum. Represents the mapping between a context method and a database function. Initializes a new instance of the class. Gets whether or not the stored procedure has multiple result types. true if the stored procedure has multiple result types. Gets whether the function can be composed within a query. true if the function can be composed within a query. Gets the name of the database function or procedure. A string representing the name of the database function or procedure. Gets the underlying context method. A object that corresponds with the underlying context method. Gets the that contains this function. The object that contains this function. Gets the name of the method. A string that represents the name of the method. Gets an enumeration of the function parameters. A collection of the parameters. Gets the enumeration of possible result row types. A collection of possible types. Gets the return parameter. The that corresponds to the return parameter. An abstraction that represents the mapping between a database and domain objects. Initializes a new instance of the class. Gets the type of type that this model describes. The data context type. Gets the name of the database. The database name as a string. Gets the that corresponds to a database function. The meta-function that corresponds to a database function. The method defined on the or subordinate class that represents the database function. Gets an enumeration of all functions. An enumeration that can be used to iterate through all functions. Discovers the for the specified . A meta-type that corresponds to the specified type. The type for which the is sought. Gets the associated with a specified . A meta-table associated with the specified row type. The common language runtime (CLR) row type. Get an enumeration of all tables. An enumerator that can be used to iterate over the tables. Gets the mapping source that originated this model. The originating mapping source. Gets or sets the provider type. The provider type. Represents the mapping between a method parameter and a database function parameter. Initializes a new instance of the class. Gets the database type of the parameter. The database type of the parameter as a string. Gets the name of the parameter in the database function. The name as a string. Gets the name of the parameter. The name of the parameter as a string. Gets the underlying method parameter. The underlying method parameter. Gets the common language runtime (CLR) type of the parameter. The type. Represents an abstraction of a database table or view. Initializes a new instance of the class. Gets the method that is used to perform delete operations. The that corresponds to the method used for delete operations. Gets the method that is used to perform insert operations. The that corresponds to the method used for insert operations. Gets the that contains this . The that includes this MetaTable. Gets the that describes the type of the rows of the table. The type of rows in the table. Gets the name of the table as defined by the database. A string representing the name of the table. Gets the method that is used to perform update operations. The that corresponds to the method used for update operations. Represents the mapping of a domain object type to the columns of a database table. Initializes a new instance of the class. Gets an enumeration of all the associations. A collection of associations. Gets whether the underlying type can be instantiated as the result of a query. true if the underlying type can be instantiated as the result of a query; otherwise, false. Gets an enumeration of all the data members (fields and properties). A collection of the data members. Gets the member that represents the auto-generated identity column. The member that represents the auto-generated identity column, or null if there is no auto-generated identity column. Gets an enumeration of the immediate derived types in an inheritance hierarchy. An enumeration of meta-types. Gets the member that represents the inheritance discriminator column. The member that represents the inheritance discriminator column, or null if there is none. Gets the associated with the specified member. The if one is associated with the specified member; otherwise, null. The member for which the associated is sought. Gets the for an inheritance subtype. The for an inheritance subtype. The subtype. Gets the meta-type associated with the specified inheritance code. The meta-type associated with the specified inheritance code. The inheritance code. Gets a value that indicates whether the current or any of its bases types has an OnLoaded method. true if the meta-type or any base meta-type has an OnLoaded method; otherwise, false. Gets a value that indicates whether the or any of its bases types has an OnValidate method. true if the meta-type or any base meta-type has an OnValidate method; otherwise, false. Gets a value indicating whether the type is part of a mapped inheritance hierarchy. true if the type is part of a mapped inheritance hierarchy; otherwise false. Gets a value indicating whether this type defines an inheritance code. true if this type defines an inheritance code; otherwise false. Gets a value indicating whether the type has any persistent member that may require a test for optimistic concurrency conflicts. true if the type has any persistent member with an policy other than ; otherwise false. Gets an enumeration of all the data members that define the unique identity of the type. An enumeration of members that define the unique identity of the type. Gets the base meta-type in the inheritance hierarchy. The base meta-type for the current inheritance hierarchy. Gets a value indicating whether this type defines an inheritance code. true if this type defines an inheritance code; otherwise false. Gets a value indicating whether this type is used as the default of an inheritance hierarchy. The metadata for the default type in the inheritance mapping. Gets the root type of the inheritance hierarchy. The root type. Gets a collection of all types that are defined by an inheritance hierarchy. A collection of meta-types in the current inheritance hierarchy. Gets a value indicating whether the is an entity type. true if the is an entity type; otherwise false. Gets a value indicating whether this type is used as the default of an inheritance hierarchy. true if this type is used as the default of an inheritance hierarchy; otherwise false. Gets the that contains this . The containing meta-model. Gets the name of the . The name of the current meta-type. Gets information about the OnLoaded method contained by this meta-type. A description of the OnLoaded method for this meta-type. Gets information about the OnValidate method contained by this meta-type. A description of the OnValidate method for this meta-type. Gets a collection of all the persistent data members. A collection of all the meta-data members in the current type. Gets the that uses this for row definition. A meta-table that uses the current meta-type for its row definition. Gets the underlying common language runtime (CLR) type. The associated CLR type. Gets a row-version or timestamp column for this . The meta-data member that represents the row-version or timestamp column for this meta-type, or null if there is none. Enables specification of mapping details for a stored procedure method parameter. Initializes a new instance of the class. Gets or sets the type of the parameter for a provider-specific database. The type as a string. Gets or sets the name of the parameter. The name as a string. Specifies which database provider to use. Initializes a new instance of the class. Initializes a new instance of the class. The provider type to use to construct the . Gets the type of the provider that is used to construct the . The type of the provider. Used to specify each type of result; for functions having various result types. Initializes a new instance of the class. The type of the result returned by a function having various result types. Gets the valid or expected type mapping for a function having various result types. The type of result (). Designates a class as an entity class that is associated with a database table. Initializes a new instance of the class. Gets or sets the name of the table or view. By default, the value is the same as the name of the class. Specifies when objects are to be tested for concurrency conflicts. Always check. Never check. Check only when the object has been changed. Represents a mapping source that uses an external XML mapping file to create the model. Creates a mapping source from an XML reader. The new XML mapping source, as type . An XML reader. Creates a mapping source from XML in a stream. The new XML mapping source, as type . A stream of XML. Creates a mapping source from XML that is loaded from a URL. The new XML mapping source, as type . The URL pointing to the XML. Creates a mapping source from an XML string. The new XML mapping source, as type . A string that contains XML. Contains functionality to connect to and communicate with a SQL Server 2000. Initializes a new instance of the class. Contains functionality to connect to and communicate with a SQL Server 2005. Initializes a new instance of the class. Provides helper methods for operations that match string patterns. Creates a search pattern string where the specified text can have other text before and following it. A search pattern string that contains the specified string and the '%' character before and after it. The string to insert into the search pattern string. The character to use to escape wildcard characters. Creates a search pattern string where the specified text can have other text before it but not following it. A search pattern string that contains the '%' character followed by the specified string. The string to insert into the search pattern string. The character to use to escape wildcard characters. Creates a search pattern string where the specified text can have other text after it but not before it. A search pattern string that contains the specified string followed by the '%' character. The string to insert into the search pattern string. The character to use to escape wildcard characters. Translates a search pattern for the Visual Basic Like operator to a search pattern for the SQL Server LIKE operator. A search pattern for the SQL Server LIKE operator that corresponds to the specified Visual Basic Like search pattern. The Visual Basic Like search pattern to translate to a SQL Server LIKE search pattern. The character to use to escape special SQL characters or the escape character itself. Provides methods that correspond to SQL Server functions. Methods in the  class are only supported in LINQ to SQL queries. Counts the number of day boundaries between two non-nullable dates. The number of day boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of day boundaries between two nullable dates. When both parameters are not null, returns the number of day boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of hour boundaries between two non-nullable dates. The number of hour boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of hour boundaries between two nullable dates. When both parameters are not null, returns the number of hour boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of millisecond boundaries between two non-nullable dates. The number of millisecond boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of millisecond boundaries between two nullable dates. When both parameters are not null, returns the number of millisecond boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of minute boundaries between two non-nullable dates. The number of minute boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of minute boundaries between two nullable dates. When both parameters are not null, returns the number of minute boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of month boundaries between two non-nullable dates. The number of month boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of month boundaries between two nullable dates. When both parameters are not null, returns the number of month boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of second boundaries between two non-nullable dates. The number of second boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of second boundaries between two nullable dates. When both parameters are not null, returns the number of second boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of year boundaries between two non-nullable dates. The number of year boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of year boundaries between two nullable dates. When both parameters are not null, returns the number of year boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Determines whether a specific character string matches a specified pattern. This method is currently only supported in LINQ to SQL queries. true if matches the pattern; otherwise, false. The string to be searched for a match. The pattern, which may include wildcard characters, to match in . Determines whether a specific character string matches a specified pattern. This method is currently only supported in LINQ to SQL queries. true if matches the pattern; otherwise, false. The string to be searched for a match. The pattern, which may include wildcard characters, to match in . The character to put in front of a wildcard character to indicate that it should be interpreted as a regular character and not as a wildcard character. Contains functionality to connect to and communicate with a SQL Server. Initializes a new instance of the class. Releases managed references and closes connections opened by the . Optionally releases managed references and closes connections opened by the . true to release managed references and close connections; otherwise, false. Contains functionality to connect to and communicate with a SQL Server 2008.   Initializes a new instance of the class. Counts the number of day boundaries between two non-nullable dates. The number of day boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of day boundaries between two nullable dates. When both parameters are not null, returns the number of day boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of hour boundaries between two non-nullable dates. The number of hour boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of hour boundaries between two nullable dates. When both parameters are not null, returns the number of hour boundaries between the two specified dates. When one or both parameters are null, returns a null value is returned. The start date for the time period. The end date for the time period. Counts the number of microsecond boundaries between two non-nullable dates. The number of microsecond boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of microsecond boundaries between two non-nullable dates. The number of microsecond boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of microsecond boundaries between two nullable dates. When both parameters are not null, returns the number of microsecond boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of microsecond boundaries between two nullable dates. When both parameters are not null, returns the number of microsecond boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of millisecond boundaries between two non-nullable dates. The number of millisecond boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of millisecond boundaries between two nullable dates. When both parameters are not null, returns the number of millisecond boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of minute boundaries between two non-nullable dates. The number of minute boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of minute boundaries between two nullable dates. When both parameters are not null, returns the number of minute boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of month boundaries between two non-nullable dates. The number of month boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of month boundaries between two nullable dates. When both parameters are not null, returns the number of month boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of nanosecond boundaries between two non-nullable dates. The number of nanosecond boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of nanosecond boundaries between two non-nullable dates. The number of nanosecond boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of nanosecond boundaries between two nullable dates. When both parameters are not null, returns the number of nanosecond boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of nanosecond boundaries between two nullable dates. When both parameters are not null, returns the number of nanosecond boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of second boundaries between two non-nullable dates. The number of second boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of second boundaries between two nullable dates. When both parameters are not null, returns the number of second boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Counts the number of year boundaries between two non-nullable dates. The number of year boundaries between the two specified dates. The start date for the time period. The end date for the time period. Counts the number of year boundaries between two nullable dates. When both parameters are not null, returns the number of year boundaries between the two specified dates. When one or both parameters are null, returns a null value. The start date for the time period. The end date for the time period. Defines methods for dynamically materializing objects. The type of the data reader. Initializes a new instance of the class. Captures internal state for the fast materializer. Represents a reader that reads data rows in a forward-only manner. When overridden in a derived class, gets a value that indicates whether deferred loading is enabled. true if deferred loading is enabled; otherwise, false. Changes the type of each element in a specified sequence. A sequence that contains the type-converted elements. A sequence that contains elements to convert. The type to convert the elements to. Creates a group from a specified key and collection of values. A group that has the specified key and the specified collection of values. The key for the group. The values for the group. The type of the key of the group. The type of the values in the group. Creates an ordered sequence from a specified collection of values. An ordered sequence that contains the specified values. The values to put in the ordered sequence. The type of the values in the ordered sequence. Represents a data reader. Returns an exception that indicates that a null value was tried to be assigned to a non-nullable value type. An exception that indicates that a null value was attempted to be assigned to a non-nullable value type. The type to which a null value was attempted to be assigned. When overridden in a derived class, executes a query. The results from executing the query. The index of the query. The arguments to the query. When overridden in a derived class, creates a new deferred source. An enumerable deferred source. The index of the link. The index of the factory. The key values for the deferred source. The type of the result elements. When overridden in a derived class, creates a new deferred source. An enumerable deferred source. The index of the link. The index of the factory. The instance for the deferred source. The type of the result elements. Captures internal state for the fast materializer. When overridden in a derived class, inserts a value into a data structure. The value that was inserted into the data structure. The index of the . The object to insert into the data structure. Captures internal state for the fast materializer. Represents column ordinals of a data reader. When overridden in a derived class, advances the reader to the next record. true if there are more rows; otherwise, false. When overridden in a derived class, invokes the method represented by . The index of the . The parameter to pass to the invoked method.