Wiki
Clone wikiWxen.NET DbHug / Getting started
# Welcome to DbHug docs...
#### Get the DbHug:
#####Using NuGet to get it:
Run this PM> Install-Package Wxen.DbHug -pre
in the Package Manager Console.
Or find it by Manage NuGet packages.
#####Or download:
Download and add the reference to the project.
####Creating instance: #### Add using
#!csharp using Wxen.Data.DbHug;
With connection string and
DbProviderFactory
#!csharp var connectionString = "...";//Connection string to database DbHug dbHug = new DbHug(connectionString, SqlClientFactory.Instance);
#!csharp DbHug dbHug = new DbHug("connection"); //"connection" is the name of the one of connections strings in configuration file (web.config / app.config)
DbConnection
to database
#!csharp var connection = new SqlConnection(connectionString); //SqlConnection DbHug dbHug = new DbHug(connection );
DbHug
uses ConnectionHug
to work with connections. More about ConnectionHug
is here.
##Instructions:
* Querying
* Mapping
* Templating
* Commands
* Connections
* CRUD
* Partials
* Async
* Caching
* Database settings
* Set model
* Related notes
Updated