-
Notifications
You must be signed in to change notification settings - Fork 24
Home
Welcome to the MicroLite wiki!
MicroLite is a small lightweight ORM framework which falls into the Micro ORM category.
There are already a number of other Micro ORM frameworks (Dapper, Massive, PetaPoco etc) however when looking at using them I couldn't find one that actually worked how I wanted. The principles behind MicroLite are that:
- It should be simple to configure.
- Code using it should be easily testable in isolated unit tests.
- It should not use any external dependencies outside the .net base class libraries.
- It should be extensible, allowing users to choose how it interacts with other frameworks (for example logging).
- You shouldn't have to inherit from any MicroLite classes or implement any MicroLite interfaces.
- It should be simple to map classes to tables without having complicated and hard to maintain XML documents.
MicroLite uses the concept of a database session ISession
, this is the main API that you will use. It exposes the CRUD (Create, Read, Update and Delete) operations. All queries are written as parametrised SQL. The configuration uses a fluent interface to walk you through the configuration process.
Please note: MicroLite currently only supports Microsoft SQL Server
To find out more, follow the Getting Started guide.
MicroLite is also designed for extension. To find out more, check out the Extensions guide.