The MappingExtensions type exposes the following members.

Methods

  NameDescription
AddColumnStatement
Returns a SQL-DDL statement for adding a column to a table.
AddFKStatement
Returns a SQL-DDL statement for creating a foreign key constraint corresponding to the association.
AddIndexStatement
Returns a SQL-DDL create index statement for an index corresponding to a Linq-to-SQL MetaAssociation.
AddMissingFKsOverloaded.
AddMissingMembers
Adds missing members (columns) to a table.
CreateMissingPK
Create primary key on table if it is missing in the database.
CreatePKStatement
Returns a SQL-DDL statement for adding a primary key to a table.
CreateTableStatement
Returns a SQL-DDL create table statement for a table.
DropPKIfIncorrect
Drop the primary key (and any FKs referring to it) for a table if the definition does not match the primary key definition in the Linq-to-SQL model.
DropPKStatement
Returns a SQL-DDL statement for dropping the primary key (and any FKs referring to it) on a table
DropTableStatement
Returns a SQL-DDL drop table statement for a table
ExistsInDBOverloaded.
HasCorrectDBNullability
Checks whether nullability for a database column correspond to the nullability of the mapped entity member.
HasCorrectDBType
Checks whether the data type for a table column correspond to the data type declared in the model.
IsIndexed
Checks whether a database index complementing the foreign key/association exist in the database.
PKExistsInDB
Checks if the primary key for a table exist in the database. Does not validate if the primary key matches the model definition; see MetaTable.PKMembersCorrect method.
PKMembersCorrect
Checks if the primary key members in the database table correspond to the members marked as primary keys in the L2S model.

See Also