GithubHelp home page GithubHelp logo

vishalbit14 / architecture.petapoco.webapi Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 93 KB

Web API, PetaPoco Solution Architecture with Custom Authentication – Best Practices

C# 99.97% ASP 0.03%
webapi csharp filter authorization exception-handling apicontroller petapoco linq sql

architecture.petapoco.webapi's Introduction

Architecture.PetaPoco.WebApi

Project Architecture is designed to using the ASP.NET Web API 5.2.7, PetaPoco ORMs, and can able to work with multiple databases. Also, added a custom token-based Authentication using the action filter attribute and handling the exceptions.

1. Architecture.WebApi - Architecture.WebApi holds the routing and configuration of the projects.

2. Architecture.Core - Architecture.Core holds the API controllers, the business logic of the system and mapped to the Entity to ViewModel and sends the result to the Controllers to source and vice versa. Currently, the Core project holds Attributes, IDataPRovider, and DataProvider. You can add Attributes under the Core projects which is for the business logic and create Data Provider and Interface Data Provider for every controller.

3. Architecture.Data - Architecture.Data holds the database logic and created the multiple common functions into the BaseDataProvider.cs which can be inherited from the PetaPoco methods and easy to use in multiple scenarios. Also, added Entity and Attributes which depend on the database logics. The data project is the mediator of the database and business logic.

4. Architecture.Generic - Architecture.Generic holds all view models, common functions, helpers, enumerations, extensions, configs, constants, and resources.

architecture.petapoco.webapi's People

Contributors

vishalbit14 avatar

Stargazers

 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.