LinqConnect Documentation
In This Topic
    Configurations
    In This Topic

    Most of mapping configurations are created implicitly after calling methods of the FluentMappingBuilder class or of the EntityConfiguration and ComplexConfiguration classes.

    You can create the configuration classes only if they are descendants of EntityConfiguration/EntityConfiguration<TClass> or ComplexConfiguration/ComplexConfiguration<TClass>. It may be necessary if you need to specify mapping of entities/complex types separately, and then add these ready-to-use configurations to the Configurations collection in the FluentMappingBuilder class.

    Configuration public interface is based on LINQ-like methods. Generic configuration classes mostly use LINQ expressions to specify properties. Reflection-based classes mostly use names of properties or fields or their MemberInfo. Most classes also explicitly implement interface that allows you to modify configuration via properties. The interface is intended to be used in conventions, however it can be used for simply setting configuration options instead of using public methods as well.

    This section describes how to use configuration classes for setting up mapping configurations.