Set the VenturaConfig.DefaultConnector property to an AdoConnector or HttpConnector.

See topic Connectors (ADO.NET and HTTP)

Blazor WebAssembly

In a Blazor WebAssembly app, the DefaultConnector is set in the Main() method of Program.cs. See the previous topic Set the HttpClientFactory (Blazor Only).

In a Blazor WebAssembly app the base address like '' can be extracted from the builder.HostEnvironment.BaseAddress property. For example:

VenturaConfig.DefaultConnector = new HttpConnector("DefaultConnector", $"{builder.HostEnvironment.BaseAddress}Ventura.FSPRO");

Other projects

Set the DefaultConnector before any data is loaded or saved.


The default connector is set to an ADO.NET connector

string connection_string = @"Server=.\SQLEXPRESS;Initial Catalog=PlayGround;Connection Timeout=30;Integrated Security=True;MultipleActiveResultSets=True";

VenturaConfig.DefaultConnector = new AdoConnector(SqlClientFactory.Instance, connection_string);

The default connector is set to a HTTP connector

VenturaConfig.DefaultConnector = new HttpConnector("DefaultConnector", "");