DataServiceCollectionExtensions.GetDataConnectionString method

namespace: Serenity.Extensions.DependencyInjection   assemblySerenity.Net.Services

Gets the specified connection string entry from the specified configuration's Data:[name] section. Only for use in Startup where IConnectionStrings is not yet available. Throws if no such connection is found.

public static ConnectionStringEntry GetDataConnectionString(this IConfiguration configuration, 
    string name)
parameter description
configuration The configuration to enumerate.
name The connection string key.

Return Value

The connection string entry from Data:[name].

See Also