MongoDBDatabaseResource
Class net10.0
A resource that represents a MongoDB database. This is a child resource of a
MongoDBServerResource. namespace Aspire.Hosting.ApplicationModel;
public class MongoDBDatabaseResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithParent, Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.MongoDBServerResource>, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} ResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithParentIResourceWithParent<MongoDBServerResource>IValueProviderIValueWithReferences
5 members
Constructors1
Section titled ConstructorsMongoDBDatabaseResource(string, string, MongoDBServerResource) A resource that represents a MongoDB database. This is a child resource of a
MongoDBServerResource. Properties4
Section titled PropertiesConnectionStringExpressiongetReferenceExpression Gets the connection string expression for the MongoDB database.
DatabaseNamegetstring Gets the database name.
Parentget Gets the parent MongoDB container resource.
UriExpressiongetReferenceExpression Gets the connection URI expression for the MongoDB database.