Coder Social home page Coder Social logo

grupporeti.dal's Introduction

GruppoReti.DAL

this is an Entity Framework 6.x generic repository that uses:

  1. UnitOfWork Pattern
  2. DbContext per Request: this means that each request (http or not) is handled by creating a single instance of the DbContext
  3. Entities generated into a separated project

The solution contains 3 projects:

  1. GruppoReti.DAL --> the project containig the edmx and the classes that implements the repository pattern
  2. GruppoReti.Entities --> the project containig the entities mapped from Database
  3. GruppoReti.Managers --> the BL layer that uses the DAL

inside the Managers project there are some usage examples (work in progress please be patient.....)

BASIC USAGE

inside your manager class create a repository instance writing:

EFRepository<Entitiy_Name>  Repo = new EFRepository<Entity_Name>();

now in the Repo object you'll find all the methods needed to perform queries and other operations (INS, UPD, DEL)

Repo.Add
Repo.AddAll
Repo.Find
Repo.IncludeMultiple --> to include into the query result the nested entities because this project uses the eager loading pattern

Repo.Update
Repo.UpdateAll
Repo.Delete
Repo.DeleteAll

grupporeti.dal's People

Contributors

akka81 avatar mattilu avatar

Watchers

 avatar James Cloos avatar  avatar Andrea Biancini avatar Matteo Pessina avatar zaffaste avatar andrea avatar  avatar

Forkers

matteopessina

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.