MartenHostBuilderExtensions.

UseMartenConnectionString(IServiceConventionContext, Func<NpgsqlConnection>) Method

Summary

Uses marten.

Syntax

public static IServiceConventionContext UseMartenConnectionString(this IServiceConventionContext container, Func<NpgsqlConnection> connection)

Parameters

Name Type Description
container IServiceConventionContext The container.
connection Func<NpgsqlConnection> The factory for the connection

Return Value

Type Description
IServiceConventionContext IServiceConventionContext.