Walter.Web.FireWall
UseDatabase(String) Method
Example 
Walter.Web.FireWall Assembly > Microsoft.Extensions.DependencyInjection Namespace > IFirewallServices Interface > UseDatabase Method : UseDatabase(String) Method
database connection string (MARS and Pooling are mandatory and will be enabled)
use a single database for firewall state as well as add-ons that use a database
Syntax

Parameters

connectionString
database connection string (MARS and Pooling are mandatory and will be enabled)

Return Value

Interface used to register database add-ons
Example
Following sample show how to use the same database and schema for all state object in the firewall with a year of data
services.AddFireWall( FireWallTrial.License
                    , FireWallTrial.DomainKey
                    , domainName: new Uri("https://www.your-domain.dll", UriKind.Absolute)
                    , options => {
                                    //set your options
                    }).UserDatabase( connectionString:Configuration.GetConnectionString("FireWall"));
            
services.AddMvc(options =>
{                
    options.Filters.Add<Walter.Web.FireWall.Filters.FireWallFilter>();
    options.Filters.Add<Walter.Web.FireWall.Filters.PrivacyPreferencesFilter>();
}).AddApplicationPart(Assembly.GetAssembly(typeof(Walter.Web.FireWall.DefaultEndpoints.ReportingController)));
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IFirewallServices Interface
IFirewallServices Members
Overload List