Database Migration v1 API - Class DatabaseEntity (2.1.0)

public sealed class DatabaseEntity : IMessage<DatabaseEntity>, IEquatable<DatabaseEntity>, IDeepCloneable<DatabaseEntity>, IBufferMessage, IMessage

Reference documentation and code samples for the Database Migration v1 API class DatabaseEntity.

The base entity type for all the database related entities. The message contains the entity name, the name of its parent, the entity type, and the specific details per entity type.

Inheritance

object > DatabaseEntity

Namespace

Google.Cloud.CloudDms.V1

Assembly

Google.Cloud.CloudDms.V1.dll

Constructors

DatabaseEntity()

public DatabaseEntity()

DatabaseEntity(DatabaseEntity)

public DatabaseEntity(DatabaseEntity other)
Parameter
NameDescription
otherDatabaseEntity

Properties

DatabaseFunction

public FunctionEntity DatabaseFunction { get; set; }

Function.

Property Value
TypeDescription
FunctionEntity

DatabasePackage

public PackageEntity DatabasePackage { get; set; }

Package.

Property Value
TypeDescription
PackageEntity

EntityBodyCase

public DatabaseEntity.EntityBodyOneofCase EntityBodyCase { get; }
Property Value
TypeDescription
DatabaseEntityEntityBodyOneofCase

EntityType

public DatabaseEntityType EntityType { get; set; }

The type of the database entity (table, view, index, ...).

Property Value
TypeDescription
DatabaseEntityType

Mappings

public RepeatedField<EntityMapping> Mappings { get; }

Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details.

Property Value
TypeDescription
RepeatedFieldEntityMapping

ParentEntity

public string ParentEntity { get; set; }

The full name of the parent entity (e.g. schema name).

Property Value
TypeDescription
string

Schema

public SchemaEntity Schema { get; set; }

Schema.

Property Value
TypeDescription
SchemaEntity

Sequence

public SequenceEntity Sequence { get; set; }

Sequence.

Property Value
TypeDescription
SequenceEntity

ShortName

public string ShortName { get; set; }

The short name (e.g. table name) of the entity.

Property Value
TypeDescription
string

StoredProcedure

public StoredProcedureEntity StoredProcedure { get; set; }

Stored procedure.

Property Value
TypeDescription
StoredProcedureEntity

Synonym

public SynonymEntity Synonym { get; set; }

Synonym.

Property Value
TypeDescription
SynonymEntity

Table

public TableEntity Table { get; set; }

Table.

Property Value
TypeDescription
TableEntity

Tree

public DatabaseEntity.Types.TreeType Tree { get; set; }

The type of tree the entity belongs to.

Property Value
TypeDescription
DatabaseEntityTypesTreeType

View

public ViewEntity View { get; set; }

View.

Property Value
TypeDescription
ViewEntity