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

Latest commit

 

History

History
17 lines (11 loc) · 1.39 KB

File metadata and controls

17 lines (11 loc) · 1.39 KB

How to use

In MapLess the namespace MapLess contains all public classes you need to use (don't worry if you didn't get everything from description, they will be explained more as you go on):

  • Db<>: this is an optinal class to connect to database and get the result you want to map.
  • AliasAttribute: this is an optional attribute you apply to property to give it multiple names.
  • ConcreteAttribute: this attribute mark interface to be used by MapLess.
  • TypeMap<>: this class used to map interface to database result.
  • MapManager: this class contains helper functions that affect the behavior of the library.

A word before start

Before diving into examples you need to know that ConcreteAttribute and TypeMap<> are the only essential components you need to use, however if you want to go with this option you might need to consider executing IDbCommand.ExecuteReader with option CommandBehavior.SequentialAccess for best performance.

Basic Example

Please refer to Basic Example from Example section in Documentation page.