Skip to content
This repository was archived by the owner on Dec 29, 2020. It is now read-only.
This repository was archived by the owner on Dec 29, 2020. It is now read-only.

Change the configuration API to use an instance class instead of a static class #407

@TrevorPilley

Description

@TrevorPilley

We will move from the old static API:

Configure.Fluently().ForMsSqlServer("")...

To a newer instance based API:

var config = new SessionConfiguration();
config.UseLog4Net();
config.UseMsSqlConnection("")

The Listeners, Logger, Mapper and Type Converters will all be specified in the Session Configuration which will allow different databases within a single application to have different Listeners, Mappers and Type Converters rather than them being global e.g:

config.InsertListeners.Add(new CustomDeleteListener());
config.UseConventionMapping(ConventionOptions.Default); // or new ConventionOptions { ...}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions