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\u003eThis webpage provides reference documentation for the \u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e class within the Database Migration v1 API, specifically for version 2.4.0 of the Google Cloud Client Libraries for .NET.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e is used to configure or alter the primary key of a table, allowing specification of the columns and the name of the primary key.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<SetTablePrimaryKey>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<SetTablePrimaryKey>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, a default one and another that takes another \u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e instance as a parameter, allowing for copying of existing settings.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two main properties: \u003ccode\u003ePrimaryKey\u003c/code\u003e which is a string representing the name of the primary key, and \u003ccode\u003ePrimaryKeyColumns\u003c/code\u003e, which is a list of strings of column names for the primary key.\u003c/p\u003e\n"]]],[],null,[]]