The ForeignKeyField type exposes the following members.

Constructors

  NameDescription
ForeignKeyField
Initializes a new instance of the ForeignKeyField class.

Methods

  NameDescription
AsIdentityColumn
Specifies that the column should be an identity (autoincrement) column.
(Inherited from Field.)
WithSize
Sets the column size (for string or blob columns).
WithUnique
Sets whether the field has a unique constraint.
(Inherited from Field.)

Properties

  NameDescription
AllowNulls
Gets whether the field allows database nulls.
(Inherited from Field.)
DataType
Gets the field data type.
(Inherited from Field.)
DbDataTypeNameOverride
Gets the native database type name, if one was specified.
(Inherited from Field.)
FieldOptions
Gets or sets field definition options.
(Inherited from Field.)
Name
Gets the field name.
(Inherited from Field.)
Size
Gets or sets the column size (for string or blob columns). If no column size is specified, the column is defaulted to maximum size.
(Inherited from Field.)
Unique
Gets or sets whether to apply a uniqueness constraint to the column.
(Inherited from Field.)

See Also