IReadOnlyProperty.IsPrimaryKey Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether this property is used as the primary key (or part of a composite primary key).
C#
public virtual bool IsPrimaryKey ();
abstract member IsPrimaryKey : unit -> bool
override this.IsPrimaryKey : unit -> bool
Public Overridable Function IsPrimaryKey () As Boolean
true
if the property is used as the primary key, otherwise false
.
Продукт | Версии |
---|---|
Entity Framework Core | 6.0, 7.0, 8.0, 9.0 |
Работете съвместно с нас в GitHub
Източникът за това съдържание може да бъде намерен в GitHub, където можете също да създавате и преглеждате проблеми и да изтегляте искания. За повече информация вижте нашето ръководство за сътрудник.
Обратна връзка за Entity Framework
Entity Framework е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: