Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Latest commit

 

History

History
32 lines (25 loc) · 984 Bytes

File metadata and controls

32 lines (25 loc) · 984 Bytes

MapManager class

This class contains function and properties that affect the behavior of Mapless.

Declaration

public static class MapManager
{
    public static void CacheAssembly(Assembly assembly);
    public static bool ConvertColumnTypeToPropertyTypeIfPossible { get; set; }
}

Methdos

public static void CacheAssembly(Assembly assembly);

Description: Search assembly for interfaces with ConcreteAttribute and save them in cache.

Properties

public static bool ConvertColumnTypeToPropertyTypeIfPossible { get; set; }

Description: Indicate that type conversion may happened when mapping column value from database to property.

Hints

If you want to use internal interfaces with Mapless then you need to give it permission to use them; by adding the following line to your Assembly.cs

[assembly: InternalsVisibleTo("DynamicContainers")]