[[["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 documentation is for the \u003ccode\u003eDatabase\u003c/code\u003e class within the Google Cloud AlloyDB v1beta API, specifically for the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDatabase\u003c/code\u003e class represents a database object and inherits from the \u003ccode\u003eobject\u003c/code\u003e class while implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: one default and another that accepts an existing \u003ccode\u003eDatabase\u003c/code\u003e object for duplication.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eDatabase\u003c/code\u003e class include \u003ccode\u003eCharset\u003c/code\u003e and \u003ccode\u003eCollation\u003c/code\u003e, both of which are strings used to define the character set and collation for the database, respectively, as well as the \u003ccode\u003eDatabaseName\u003c/code\u003e property, and \u003ccode\u003eName\u003c/code\u003e, which defines the database path.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation is related to two versions, \u003ccode\u003e1.0.0-beta09\u003c/code\u003e which is the latest, and \u003ccode\u003e1.0.0-beta08\u003c/code\u003e, that is an older version.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1beta API - Class Database (1.0.0-beta12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Database)\n- [1.0.0-beta11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/1.0.0-beta11/Google.Cloud.AlloyDb.V1Beta.Database) \n\n public sealed class Database : IMessage\u003cDatabase\u003e, IEquatable\u003cDatabase\u003e, IDeepCloneable\u003cDatabase\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1beta API class Database.\n\nMessage describing Database object. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Database \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Database](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Database), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Database](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Database), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Database](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Database), [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.AlloyDb.V1Beta](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Beta.dll\n\nConstructors\n------------\n\n### Database()\n\n public Database()\n\n### Database(Database)\n\n public Database(Database other)\n\nProperties\n----------\n\n### Charset\n\n public string Charset { get; set; }\n\nOptional. Charset for the database.\nThis field can contain any PostgreSQL supported charset name.\nExample values include \"UTF8\", \"SQL_ASCII\", etc.\n\n### Collation\n\n public string Collation { get; set; }\n\nOptional. Collation for the database.\nName of the custom or native collation for postgres.\nExample values include \"C\", \"POSIX\", etc\n\n### DatabaseName\n\n public DatabaseName DatabaseName { get; set; }\n\n[DatabaseName](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.DatabaseName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Database#Google_Cloud_AlloyDb_V1Beta_Database_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. Name of the resource in the form of\n`projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`."]]