### YamlMime:ManagedReference items: - uid: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension commentId: T:adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension id: MongoDbHostBuilderExtension parent: adas_core.Infrastructure.Utils children: - adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureMongoDbConventions - adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureRegisterMapClass - adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.RunMongoMigrations(Microsoft.Extensions.Hosting.IHost) - adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.UseMongo(Microsoft.Extensions.Hosting.IHostBuilder) langs: - csharp - vb name: MongoDbHostBuilderExtension nameWithType: MongoDbHostBuilderExtension fullName: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension type: Class source: remote: path: adas-core.Infrastructure/Utils/MongoDbHostBuilderExtension.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: MongoDbHostBuilderExtension path: ../../adas-core.Infrastructure/Utils/MongoDbHostBuilderExtension.cs startLine: 16 assemblies: - adas-core.Infrastructure namespace: adas_core.Infrastructure.Utils summary: Provides extension methods for configuring MongoDB integration on a host builder. example: [] syntax: content: public static class MongoDbHostBuilderExtension content.vb: Public Module MongoDbHostBuilderExtension inheritance: - System.Object inheritedMembers: - System.Object.Equals(System.Object) - System.Object.Equals(System.Object,System.Object) - System.Object.GetHashCode - System.Object.GetType - System.Object.MemberwiseClone - System.Object.ReferenceEquals(System.Object,System.Object) - System.Object.ToString - uid: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.UseMongo(Microsoft.Extensions.Hosting.IHostBuilder) commentId: M:adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.UseMongo(Microsoft.Extensions.Hosting.IHostBuilder) id: UseMongo(Microsoft.Extensions.Hosting.IHostBuilder) isExtensionMethod: true parent: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension langs: - csharp - vb name: UseMongo(IHostBuilder) nameWithType: MongoDbHostBuilderExtension.UseMongo(IHostBuilder) fullName: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.UseMongo(Microsoft.Extensions.Hosting.IHostBuilder) type: Method source: remote: path: adas-core.Infrastructure/Utils/MongoDbHostBuilderExtension.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: UseMongo path: ../../adas-core.Infrastructure/Utils/MongoDbHostBuilderExtension.cs startLine: 23 assemblies: - adas-core.Infrastructure namespace: adas_core.Infrastructure.Utils summary: Configures the host builder with the MongoDB conventions and class map registrations required for the application. example: [] syntax: content: public static IHostBuilder UseMongo(this IHostBuilder hostBuilder) parameters: - id: hostBuilder type: Microsoft.Extensions.Hosting.IHostBuilder description: The host builder to extend with the MongoDB configuration. return: type: Microsoft.Extensions.Hosting.IHostBuilder description: The same instance, allowing further fluent configuration. content.vb: Public Shared Function UseMongo(hostBuilder As IHostBuilder) As IHostBuilder overload: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.UseMongo* - uid: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.RunMongoMigrations(Microsoft.Extensions.Hosting.IHost) commentId: M:adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.RunMongoMigrations(Microsoft.Extensions.Hosting.IHost) id: RunMongoMigrations(Microsoft.Extensions.Hosting.IHost) isExtensionMethod: true parent: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension langs: - csharp - vb name: RunMongoMigrations(IHost) nameWithType: MongoDbHostBuilderExtension.RunMongoMigrations(IHost) fullName: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.RunMongoMigrations(Microsoft.Extensions.Hosting.IHost) type: Method source: remote: path: adas-core.Infrastructure/Utils/MongoDbHostBuilderExtension.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: RunMongoMigrations path: ../../adas-core.Infrastructure/Utils/MongoDbHostBuilderExtension.cs startLine: 36 assemblies: - adas-core.Infrastructure namespace: adas_core.Infrastructure.Utils summary: Runs all pending MongoDB migrations found in the migrations assembly, updating the database schema to the latest version. example: [] syntax: content: public static IHost RunMongoMigrations(this IHost host) parameters: - id: host type: Microsoft.Extensions.Hosting.IHost description: The host whose services are used to resolve the instance. return: type: Microsoft.Extensions.Hosting.IHost description: The same instance, enabling fluent chaining. content.vb: Public Shared Function RunMongoMigrations(host As IHost) As IHost overload: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.RunMongoMigrations* - uid: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureRegisterMapClass commentId: M:adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureRegisterMapClass id: ConfigureRegisterMapClass parent: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension langs: - csharp - vb name: ConfigureRegisterMapClass() nameWithType: MongoDbHostBuilderExtension.ConfigureRegisterMapClass() fullName: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureRegisterMapClass() type: Method source: remote: path: adas-core.Infrastructure/Utils/MongoDbHostBuilderExtension.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: ConfigureRegisterMapClass path: ../../adas-core.Infrastructure/Utils/MongoDbHostBuilderExtension.cs startLine: 83 assemblies: - adas-core.Infrastructure namespace: adas_core.Infrastructure.Utils syntax: content: public static void ConfigureRegisterMapClass() content.vb: Public Shared Sub ConfigureRegisterMapClass() overload: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureRegisterMapClass* - uid: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureMongoDbConventions commentId: M:adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureMongoDbConventions id: ConfigureMongoDbConventions parent: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension langs: - csharp - vb name: ConfigureMongoDbConventions() nameWithType: MongoDbHostBuilderExtension.ConfigureMongoDbConventions() fullName: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureMongoDbConventions() type: Method source: remote: path: adas-core.Infrastructure/Utils/MongoDbHostBuilderExtension.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: ConfigureMongoDbConventions path: ../../adas-core.Infrastructure/Utils/MongoDbHostBuilderExtension.cs startLine: 104 assemblies: - adas-core.Infrastructure namespace: adas_core.Infrastructure.Utils summary: >- Registers global MongoDB serialization conventions, including ignoring extra elements in BSON documents and using camelCase for element names, applied to all types in the application. example: [] syntax: content: public static void ConfigureMongoDbConventions() content.vb: Public Shared Sub ConfigureMongoDbConventions() overload: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureMongoDbConventions* references: - uid: adas_core.Infrastructure.Utils commentId: N:adas_core.Infrastructure.Utils href: adas_core.html name: adas_core.Infrastructure.Utils nameWithType: adas_core.Infrastructure.Utils fullName: adas_core.Infrastructure.Utils spec.csharp: - uid: adas_core name: adas_core href: adas_core.html - name: . - uid: adas_core.Infrastructure name: Infrastructure href: adas_core.Infrastructure.html - name: . - uid: adas_core.Infrastructure.Utils name: Utils href: adas_core.Infrastructure.Utils.html spec.vb: - uid: adas_core name: adas_core href: adas_core.html - name: . - uid: adas_core.Infrastructure name: Infrastructure href: adas_core.Infrastructure.html - name: . - uid: adas_core.Infrastructure.Utils name: Utils href: adas_core.Infrastructure.Utils.html - uid: System.Object commentId: T:System.Object parent: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object name: object nameWithType: object fullName: object nameWithType.vb: Object fullName.vb: Object name.vb: Object - uid: System.Object.Equals(System.Object) commentId: M:System.Object.Equals(System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) name: Equals(object) nameWithType: object.Equals(object) fullName: object.Equals(object) nameWithType.vb: Object.Equals(Object) fullName.vb: Object.Equals(Object) name.vb: Equals(Object) spec.csharp: - uid: System.Object.Equals(System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.Equals(System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.Equals(System.Object,System.Object) commentId: M:System.Object.Equals(System.Object,System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) name: Equals(object, object) nameWithType: object.Equals(object, object) fullName: object.Equals(object, object) nameWithType.vb: Object.Equals(Object, Object) fullName.vb: Object.Equals(Object, Object) name.vb: Equals(Object, Object) spec.csharp: - uid: System.Object.Equals(System.Object,System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.Equals(System.Object,System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.GetHashCode commentId: M:System.Object.GetHashCode parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode name: GetHashCode() nameWithType: object.GetHashCode() fullName: object.GetHashCode() nameWithType.vb: Object.GetHashCode() fullName.vb: Object.GetHashCode() spec.csharp: - uid: System.Object.GetHashCode name: GetHashCode isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode - name: ( - name: ) spec.vb: - uid: System.Object.GetHashCode name: GetHashCode isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode - name: ( - name: ) - uid: System.Object.GetType commentId: M:System.Object.GetType parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype name: GetType() nameWithType: object.GetType() fullName: object.GetType() nameWithType.vb: Object.GetType() fullName.vb: Object.GetType() spec.csharp: - uid: System.Object.GetType name: GetType isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype - name: ( - name: ) spec.vb: - uid: System.Object.GetType name: GetType isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype - name: ( - name: ) - uid: System.Object.MemberwiseClone commentId: M:System.Object.MemberwiseClone parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone name: MemberwiseClone() nameWithType: object.MemberwiseClone() fullName: object.MemberwiseClone() nameWithType.vb: Object.MemberwiseClone() fullName.vb: Object.MemberwiseClone() spec.csharp: - uid: System.Object.MemberwiseClone name: MemberwiseClone isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone - name: ( - name: ) spec.vb: - uid: System.Object.MemberwiseClone name: MemberwiseClone isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone - name: ( - name: ) - uid: System.Object.ReferenceEquals(System.Object,System.Object) commentId: M:System.Object.ReferenceEquals(System.Object,System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals name: ReferenceEquals(object, object) nameWithType: object.ReferenceEquals(object, object) fullName: object.ReferenceEquals(object, object) nameWithType.vb: Object.ReferenceEquals(Object, Object) fullName.vb: Object.ReferenceEquals(Object, Object) name.vb: ReferenceEquals(Object, Object) spec.csharp: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.ToString commentId: M:System.Object.ToString parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring name: ToString() nameWithType: object.ToString() fullName: object.ToString() nameWithType.vb: Object.ToString() fullName.vb: Object.ToString() spec.csharp: - uid: System.Object.ToString name: ToString isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring - name: ( - name: ) spec.vb: - uid: System.Object.ToString name: ToString isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring - name: ( - name: ) - uid: System commentId: N:System isExternal: true href: https://learn.microsoft.com/dotnet/api/system name: System nameWithType: System fullName: System - uid: Microsoft.Extensions.Hosting.IHostBuilder commentId: T:Microsoft.Extensions.Hosting.IHostBuilder parent: Microsoft.Extensions.Hosting isExternal: true href: https://learn.microsoft.com/dotnet/api/microsoft.extensions.hosting.ihostbuilder name: IHostBuilder nameWithType: IHostBuilder fullName: Microsoft.Extensions.Hosting.IHostBuilder - uid: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.UseMongo* commentId: Overload:adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.UseMongo href: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.html#adas_core_Infrastructure_Utils_MongoDbHostBuilderExtension_UseMongo_Microsoft_Extensions_Hosting_IHostBuilder_ name: UseMongo nameWithType: MongoDbHostBuilderExtension.UseMongo fullName: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.UseMongo - uid: Microsoft.Extensions.Hosting commentId: N:Microsoft.Extensions.Hosting isExternal: true href: https://learn.microsoft.com/dotnet/api/microsoft name: Microsoft.Extensions.Hosting nameWithType: Microsoft.Extensions.Hosting fullName: Microsoft.Extensions.Hosting spec.csharp: - uid: Microsoft name: Microsoft isExternal: true href: https://learn.microsoft.com/dotnet/api/microsoft - name: . - uid: Microsoft.Extensions name: Extensions isExternal: true href: https://learn.microsoft.com/dotnet/api/microsoft.extensions - name: . - uid: Microsoft.Extensions.Hosting name: Hosting isExternal: true href: https://learn.microsoft.com/dotnet/api/microsoft.extensions.hosting spec.vb: - uid: Microsoft name: Microsoft isExternal: true href: https://learn.microsoft.com/dotnet/api/microsoft - name: . - uid: Microsoft.Extensions name: Extensions isExternal: true href: https://learn.microsoft.com/dotnet/api/microsoft.extensions - name: . - uid: Microsoft.Extensions.Hosting name: Hosting isExternal: true href: https://learn.microsoft.com/dotnet/api/microsoft.extensions.hosting - uid: MongoDB.Driver.IMongoDatabase commentId: T:MongoDB.Driver.IMongoDatabase parent: MongoDB.Driver isExternal: true name: IMongoDatabase nameWithType: IMongoDatabase fullName: MongoDB.Driver.IMongoDatabase - uid: Microsoft.Extensions.Hosting.IHost commentId: T:Microsoft.Extensions.Hosting.IHost parent: Microsoft.Extensions.Hosting isExternal: true href: https://learn.microsoft.com/dotnet/api/microsoft.extensions.hosting.ihost name: IHost nameWithType: IHost fullName: Microsoft.Extensions.Hosting.IHost - uid: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.RunMongoMigrations* commentId: Overload:adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.RunMongoMigrations href: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.html#adas_core_Infrastructure_Utils_MongoDbHostBuilderExtension_RunMongoMigrations_Microsoft_Extensions_Hosting_IHost_ name: RunMongoMigrations nameWithType: MongoDbHostBuilderExtension.RunMongoMigrations fullName: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.RunMongoMigrations - uid: MongoDB.Driver commentId: N:MongoDB.Driver isExternal: true name: MongoDB.Driver nameWithType: MongoDB.Driver fullName: MongoDB.Driver spec.csharp: - uid: MongoDB name: MongoDB isExternal: true - name: . - uid: MongoDB.Driver name: Driver isExternal: true spec.vb: - uid: MongoDB name: MongoDB isExternal: true - name: . - uid: MongoDB.Driver name: Driver isExternal: true - uid: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureRegisterMapClass* commentId: Overload:adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureRegisterMapClass href: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.html#adas_core_Infrastructure_Utils_MongoDbHostBuilderExtension_ConfigureRegisterMapClass name: ConfigureRegisterMapClass nameWithType: MongoDbHostBuilderExtension.ConfigureRegisterMapClass fullName: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureRegisterMapClass - uid: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureMongoDbConventions* commentId: Overload:adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureMongoDbConventions href: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.html#adas_core_Infrastructure_Utils_MongoDbHostBuilderExtension_ConfigureMongoDbConventions name: ConfigureMongoDbConventions nameWithType: MongoDbHostBuilderExtension.ConfigureMongoDbConventions fullName: adas_core.Infrastructure.Utils.MongoDbHostBuilderExtension.ConfigureMongoDbConventions