Code Monkey home page Code Monkey logo

dapper.uow's Introduction

Dapper.UoW - Dapper Unit Of Work

This dapper unit of work repository implementation, originally implemented using petrhaus's UOW repository, but after many tests i couldn't make it work as i expected. Still, thanks for your generosity for sharing his repository, i could enlight myself and find a good structure for my UoW.

Be sure to change your VS language version to C# >= C# Version and your .NET Core to >= .NET Core Version

Let's start

  1. Download/Clone the repository;
  2. Check your .NET Core Framework version and the project's language version;
  3. Generate a dabase using the database.sql, copy and past the connectionString into the Program.cs;
  4. Build the solution and run your tests.

It does support both sync and async with trasactions.

Caveats

IEnumerable Get() and Task<IEnumerable> GetAsync() were suposed to return a single object instead or a list. Both are meant to match and retrieve a single instance in the database.

Since i coulnd't unfold the Task returned in the Async method, i could only return the returned result Dapper's QueryAsync was delivering.

Changes

See all changes history with details here.

Note: It's still under development, and there are changes i couldn't implement (have them ready but need to translate to C# because they're in VB.NET).

dapper.uow's People

Contributors

twodio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.