GithubHelp home page GithubHelp logo

ecatugy / orms Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 29 KB

Project in .NET Core that works with Entity Framework and Dapper together.

PowerShell 0.39% C# 98.45% Dockerfile 1.16%

orms's Introduction

Introduction

This project is a RESTful API following the principles of Clean Architecture, make part of a product called Orms,works with Entity Framework and Dapper together.

Technologies

Getting Started

The easiest way to get started is open the solution Orms.Api.sln in Visual Studio 2022:

  1. Install the latest .NET 6 SDK
  2. Navigate to src/Orms.Api and launch the project using dotnet run in VS Code
  3. This project was built in VS 2022, it is recommended that this is the IDE for running the project

Database Configuration

The database used in the project is SQLServer, every data model is ready through EF Core migrations, to deploy the database with the initial data just run the Package Manager Console from Visual Studio 2022

 update-database

Startup project will be Orms.Api, in the Package Manager Console the Default project will be Orms.Persistence

Verify that the DefaultConnection connection string within appsettings.json points to a valid SQL Server instance.

When you run the application the database will be automatically created (if necessary) and the latest migrations will be applied.

Tests

To run the tests, just open the solution in Visual Studio 2022 and open the Test Explorer tab

Overview

Orms.Domain

This will contain all entities, enums, exceptions, interfaces, types and logic specific to the domain layer.

Orms.Persistence

This layer contains all application logic. It is dependent on the domain layer, but has no dependencies on any other layer or project. This layer defines interfaces that are implemented by outside layers. For example, if the application need to access a notification service, a new interface would be added to application and an implementation would be created within infrastructure.

Orms.Api

This layer depends on both the Application and Infrastructure layers, however, the dependency on Infrastructure is only to support dependency injection. Therefore only Program.cs should reference Infrastructure.

orms's People

Contributors

ecatugy 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.