public sealed class SetTablePrimaryKey : IMessage<SetTablePrimaryKey>, IEquatable<SetTablePrimaryKey>, IDeepCloneable<SetTablePrimaryKey>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class SetTablePrimaryKey.
Options to configure rule type SetTablePrimaryKey.
The rule is used to specify the columns and name to configure/alter the
primary key of a table.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e class in the Database Migration v1 API allows configuration and alteration of a table's primary key.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides options to set the primary key name and specify the list of columns for the primary key, and it is applicable at the table level.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one default and one that takes another instance of \u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two properties that need to be set in the class: \u003ccode\u003ePrimaryKey\u003c/code\u003e which is an optional string value of the primary key's name and \u003ccode\u003ePrimaryKeyColumns\u003c/code\u003e which is a required list of column names for the primary key.\u003c/p\u003e\n"]]],[],null,[]]