ConnectionStringsExtensions.Get method

namespace: Serenity.Data   assemblySerenity.Net.Data

Gets connection string by key

public static IConnectionString Get(this IConnectionStrings connectionStrings, string connectionKey)
parameter description
connectionStrings Connection strings object
connectionKey Connection key

Return Value

Connection string with key, or throws an ArgumentOutOfRangeException

See Also