PM> Install-Package MicroLite
MicroLite ORM is a micro Object Relational Mapper for the .NET framework. It is designed to be easy to use, extensible and testable.
The code is all open source, released under the Apache License, Version 2.0 and the repository is hosted on GitHub.
There are builds available for .NET 3.5 (Client Profile), .NET 4.0 (Client Profile) and .NET 4.5 on NuGet.
If you haven’t already, read the getting started guide on the MicroLite GitHub Wiki.
If you have any questions about using MicroLite, please ask on StackOverflow (please provide the version of MicroLite you are using).
If you come across any bugs or have any feature requests, please use the GitHub issues page.
Project Support
YourKit is kindly supporting open source projects with its full-featured Java Profiler.
YourKit, LLC is the creator of innovative and intelligent tools for profiling
Java and .NET applications. Take a look at YourKit’s leading software products:
YourKit Java Profiler and
YourKit .NET Profiler.
Trevor,
How does Microlite handle SQL server Timestamp a.k.a. rowversion fields?
Thanks
Greg
Hi Greg, as at version 6.2, MicroLite doesn’t currently support any concurrency models
Hi Trevor,
I’ve been trying to find an ORM that will support unit testing the database code without a database. Does MicroLite make it possible to unit test Fetch(sql)? As a very simple example, if I have a method that returns records using Fetch and a sql query based on a Code field. I want to write a test that creats 2 records with different codes. Then I call my method which returns a single record. Is this possible?
Thanks
David
Hi David,
There are a number of posts under the “testing” tag – https://microliteorm.wordpress.com/tag/testing/ which may be helpful.
I’m not sure what you mean by “Fetch and a sql query based on a Code field” – do you mean that you want to test that the SQL query itself is correct?
I have event and query handlers that use an ORM directly without a repository or other abstraction. I’d like to able to test these handlers without requiring a real database. To test that they create and try to save the correct dtos, that the queries build a set of objects correctly for a given “dataset”, etc. With EF I could mock the dbset but this sort of thing doesn’t seem possible with the micro orms.
Hi Trevor,
Do you have any plans for providing support for .net core?
Thanks,
Gevik
Yes, it’s something I’m planning on doing once .NET Core 2.0 comes around.
Any news on this?
I made a start on it last week, I’ll hopefully have an update posted in the new year