GithubHelp home page GithubHelp logo

drizin / harbin.old Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 320 KB

.NET Architecture - using CodegenCS (Code Generator), EF6/EFCore, Dapper, Type-Safe Enums, Unit Tests

License: MIT License

C# 100.00%

harbin.old's Introduction

Harbin Architecture

.NET Architecture - using CodegenCS (Code Generator), EF6/EFCore, Dapper, NancyFX, Type-Safe Enums, Unit Tests

Description

Currently Harbin is mostly about Data Access and Business/Services Layer:

Basically, CodegenCS is used to read the SQL Database and generate POCOs and DbContext for Entity Framework (based on Simon Hughes T4 templates).
These POCOs also work with Dapper in case you want better control over your queries and performance.

The database model is based on AdventureWorks Database which includes Table-per-Type: BusinessEntity is defined as an abstract class and has many derived classes (Person, Employee, Vendor, etc).

Then, we have some extensions in the "Queries" namespace which add behavior to existing DbSet and IQueriable, for finding objects and filtering over DbContext objects.
Some Enums are modeled as Type-Safe-Enums (classes), while still being mapped to Entity Framework and Dapper. Expression trees allow us to apply SQL-filters based on these enums.

REST endpoints are served using NancyFX.

Currently there's no UI.
Would you like to contribute with REACT or VUE UI? Get in contact.

Documentation

"Baby shark.. TO DO... TO DO... TO DO..."

Contributing

If you you want to contribute, you can either:

  • Fork it, optionally create a feature branch, commit your changes, push it, and submit a Pull Request.
  • Drop me an email (http://drizin.io/pages/Contact/) and let me know how you can help.

History

  • 2019-xx-xx: Initial public version.

License

MIT License

harbin.old's People

Contributors

dependabot[bot] avatar drizin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.