Giter VIP home page Giter VIP logo

supernova.dapper.abstractions's Introduction

Supernova Dapper Abstractions

Description

An abstraction over StackOveflow's Dapper ORM for .NET, which provides additional functionality and ease-of-access.

  1. Introduction
  2. Usage

1. Introduction

An abstraction over StackOveflow's Dapper ORM for .NET, which provides additional functionality and ease-of-access.

Provides abstract Read/Write repositories, which contain basic logic for convention based CRUD operations on top of the Dapper ORM framework.

The abstract repositories support Select, Insert (+ bulk), Update (+bulk), Delete (+bulk) functionality.

SQL language parsers are introduced for a range of database server.

2. Usage

2.1 Custom attributes

Provides attributes to decorate entity properties with names different from their Database column counterparts. Should be used when your entity property has a different name than the column name in the database.

They accept Name(string) as a parameter.

ColumnAttribute - Maps your entity property to a column name in the table - use when property has a different name from the column in the database table.

PrimaryKeyAttribute - Marks your entity property as a primary key (should be set always). Accepts a Name parameter in case your id property has a different name from the id column in the database table.

TableNameAttribute - Maps your entity to the database table.

2.2 DapperStartupMapping static class

Accepts namespaces, which contain database entity models. Registers Dapper typemaps - typemaps are the way Dapper resolves Column-to-Property mapping in entities. Collects properties decorated with the custom derivatives of the BaseAttribute and scans their Name parameter for a value, mapping the database table column name to the property/attribute name.

3. Database (Relational) servers support

Current version of the Supernova.Dapper package supports the following servers:

  • SQL Server

supernova.dapper.abstractions's People

Contributors

nasc0 avatar

Watchers

James Cloos avatar  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.