Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

AddPrimaryKeyOperation Class

Entity Framework 5.0

Represents adding a primary key to a table.

Namespace:  System.Data.Entity.Migrations.Model
Assembly:  EntityFramework (in EntityFramework.dll)
public class AddPrimaryKeyOperation : PrimaryKeyOperation

The AddPrimaryKeyOperation type exposes the following members.

  NameDescription
Public methodAddPrimaryKeyOperation Initializes a new instance of the AddPrimaryKeyOperation class. The Table and Columns properties should also be populated.
Top
  NameDescription
Public propertyAnonymousArguments Gets additional arguments that may be processed by providers. (Inherited from MigrationOperation.)
Public propertyColumns Gets the column(s) that make up the primary key. (Inherited from PrimaryKeyOperation.)
Public propertyHasDefaultName Gets a value indicating if a specific name has been supplied for this primary key. (Inherited from PrimaryKeyOperation.)
Public propertyInverse Gets an operation to drop the primary key. (Overrides MigrationOperation.Inverse.)
Public propertyIsDestructiveChangeGets a value indicating if this operation may result in data loss. (Inherited from PrimaryKeyOperation.)
Public propertyName Gets or sets the name of this primary key. If no name is supplied, a default name will be calculated. (Inherited from PrimaryKeyOperation.)
Public propertyTable Gets or sets the name of the table that contains the primary key. (Inherited from PrimaryKeyOperation.)
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.