Docs / Installation

Installation

What this page covers#

This page explains the basic package and namespace setup for MooDb.

The simple version#

Install MooDb, then create a MooDbContext with either a connection string or an existing SqlConnection.

Package reference#

</> XML
<PackageReference Include="MooDb" Version="x.y.z" />

Namespaces#

</> C#
using Microsoft.Data.SqlClient;
using MooDb;

If you are using the factory registration helpers, also import:

</> C#
using MooDb.DependencyInjection;

What MooDb depends on#

MooDb targets modern .NET and uses SQL Server through Microsoft.Data.SqlClient.

MooDb is built for SQL Server. It is not trying to be a cross-provider abstraction.

What to do next#

After installing the package, the next step is to create a MooDbContext and make a first call.