PrimaryKeyOperation Class
Common base class to represent operations affecting primary keys. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.
Assembly: EntityFramework (in EntityFramework.dll)
System.Data.Entity.Migrations.Model.MigrationOperation
System.Data.Entity.Migrations.Model.PrimaryKeyOperation
System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation
System.Data.Entity.Migrations.Model.DropPrimaryKeyOperation
Name | Description | |
---|---|---|
![]() | PrimaryKeyOperation(Object) | Initializes a new instance of the PrimaryKeyOperation class. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
Name | Description | |
---|---|---|
![]() | AnonymousArguments | Gets additional arguments that may be processed by providers. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.(Inherited from MigrationOperation.) |
![]() | Columns | Gets the column(s) that make up the primary key. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
![]() | HasDefaultName | Gets a value indicating if a specific name has been supplied for this primary key. |
![]() | Inverse | Gets an operation that will revert this operation.(Inherited from MigrationOperation.) |
![]() | IsDestructiveChange | Gets a value indicating whether this operation may result in data loss.(Overrides MigrationOperation.IsDestructiveChange.) |
![]() | Name | Gets or sets the name of this primary key. If no name is supplied, a default name will be calculated. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
![]() | Table | Gets or sets the name of the table that contains the primary key. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
Name | Description | |
---|---|---|
![]() ![]() | BuildDefaultName(String) | Returns the default name for the primary key. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.