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.
public RepeatedField<EntityDdl> EntityDdl { get; }
Details about the entity DDL script. Multiple DDL scripts are provided for
child entities such as a table entity will have one DDL for the table with
additional DDLs for each index, constraint and such.
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.
[[["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\u003eDatabaseEntity\u003c/code\u003e class, part of the Google Cloud Database Migration v1 API, serves as the foundational entity type for all database-related elements.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides access to various database components like \u003ccode\u003eDatabase\u003c/code\u003e, \u003ccode\u003eDatabaseFunction\u003c/code\u003e, \u003ccode\u003eDatabasePackage\u003c/code\u003e, \u003ccode\u003eSchema\u003c/code\u003e, \u003ccode\u003eSequence\u003c/code\u003e, \u003ccode\u003eStoredProcedure\u003c/code\u003e, \u003ccode\u003eSynonym\u003c/code\u003e, \u003ccode\u003eTable\u003c/code\u003e, \u003ccode\u003eUdt\u003c/code\u003e, and \u003ccode\u003eView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDatabaseEntity\u003c/code\u003e class includes details such as the entity's type, short name, parent entity, and any related issues or mappings, alongside optional DDL script details.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eDatabaseEntity\u003c/code\u003e is 2.5.0, with prior versions available from 2.4.0 down to 1.0.0, each with its corresponding documentation link.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDatabaseEntity\u003c/code\u003e implements multiple interfaces, including IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class DatabaseEntity (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.DatabaseEntity)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.DatabaseEntity)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.DatabaseEntity)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.DatabaseEntity)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.DatabaseEntity)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.DatabaseEntity)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.DatabaseEntity)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.DatabaseEntity)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.DatabaseEntity) \n\n public sealed class DatabaseEntity : IMessage\u003cDatabaseEntity\u003e, IEquatable\u003cDatabaseEntity\u003e, IDeepCloneable\u003cDatabaseEntity\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class DatabaseEntity.\n\nThe base entity type for all the database related entities.\nThe message contains the entity name, the name of its parent, the entity\ntype, and the specific details per entity type. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DatabaseEntity \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DatabaseEntity](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.DatabaseEntity), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DatabaseEntity](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.DatabaseEntity), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DatabaseEntity](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.DatabaseEntity), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudDms.V1](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudDms.V1.dll\n\nConstructors\n------------\n\n### DatabaseEntity()\n\n public DatabaseEntity()\n\n### DatabaseEntity(DatabaseEntity)\n\n public DatabaseEntity(DatabaseEntity other)\n\nProperties\n----------\n\n### Database\n\n public DatabaseInstanceEntity Database { get; set; }\n\nDatabase.\n\n### DatabaseFunction\n\n public FunctionEntity DatabaseFunction { get; set; }\n\nFunction.\n\n### DatabasePackage\n\n public PackageEntity DatabasePackage { get; set; }\n\nPackage.\n\n### EntityBodyCase\n\n public DatabaseEntity.EntityBodyOneofCase EntityBodyCase { get; }\n\n### EntityDdl\n\n public RepeatedField\u003cEntityDdl\u003e EntityDdl { get; }\n\nDetails about the entity DDL script. Multiple DDL scripts are provided for\nchild entities such as a table entity will have one DDL for the table with\nadditional DDLs for each index, constraint and such.\n\n### EntityType\n\n public DatabaseEntityType EntityType { get; set; }\n\nThe type of the database entity (table, view, index, ...).\n\n### Issues\n\n public RepeatedField\u003cEntityIssue\u003e Issues { get; }\n\nDetails about the various issues found for the entity.\n\n### Mappings\n\n public RepeatedField\u003cEntityMapping\u003e Mappings { get; }\n\nDetails about entity mappings.\nFor source tree entities, this holds the draft entities which were\ngenerated by the mapping rules.\nFor draft tree entities, this holds the source entities which were\nconverted to form the draft entity.\nDestination entities will have no mapping details.\n\n### MaterializedView\n\n public MaterializedViewEntity MaterializedView { get; set; }\n\nMaterialized view.\n\n### ParentEntity\n\n public string ParentEntity { get; set; }\n\nThe full name of the parent entity (e.g. schema name).\n\n### Schema\n\n public SchemaEntity Schema { get; set; }\n\nSchema.\n\n### Sequence\n\n public SequenceEntity Sequence { get; set; }\n\nSequence.\n\n### ShortName\n\n public string ShortName { get; set; }\n\nThe short name (e.g. table name) of the entity.\n\n### StoredProcedure\n\n public StoredProcedureEntity StoredProcedure { get; set; }\n\nStored procedure.\n\n### Synonym\n\n public SynonymEntity Synonym { get; set; }\n\nSynonym.\n\n### Table\n\n public TableEntity Table { get; set; }\n\nTable.\n\n### Tree\n\n public DatabaseEntity.Types.TreeType Tree { get; set; }\n\nThe type of tree the entity belongs to.\n\n### Udt\n\n public UDTEntity Udt { get; set; }\n\nUDT.\n\n### View\n\n public ViewEntity View { get; set; }\n\nView."]]