primaryKey property

String primaryKey

Name of primary key property.

If this has a primary key (as determined by the having an ManagedColumnAttributes with ManagedColumnAttributes.isPrimaryKey set to true, returns the name of that property. Otherwise, returns null. Entities should always have a primary key.

Implementation

String get primaryKey {
  return _primaryKey;
}