https://github.com/dimesoftware/services
👔 Contracts for the service layer of any project.
https://github.com/dimesoftware/services
csharp dotnet service-layer service-locator
Last synced: 26 days ago
JSON representation
👔 Contracts for the service layer of any project.
- Host: GitHub
- URL: https://github.com/dimesoftware/services
- Owner: dimesoftware
- License: mit
- Created: 2020-04-29T06:54:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-13T09:08:22.000Z (over 1 year ago)
- Last Synced: 2026-05-01T10:06:11.356Z (about 1 month ago)
- Topics: csharp, dotnet, service-layer, service-locator
- Language: C#
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

Services
## Introduction
Contracts for the service layer of any project.
## Getting Started
- You must have Visual Studio 2022 Community or higher.
- The dotnet cli is also highly recommended.
## About this project
The most notable types in this assembly include:
- `IQueryService`: matches the R in CRUD operators
- `ICommandService`: matches the CUD in CRUD operations
- `IService`: Defines the capabilities of both `IQueryService` and `ICommandService`
- `IServiceLocator`: Defines how to instantiate service class instances
## Build and Test
- Run dotnet restore
- Run dotnet build
- Run dotnet test
## Installation
Use the package manager NuGet to install Dime.System:
`dotnet add package Dime.Services`
## Usage
``` csharp
using Dime;
public class CustomerService : ICustomerService
{
public async Task> GetAllAsync()
{
IEnumerable customers = await this.Context.Customers.ToListAsync();
return customers.Select(x => this.Mapper.Map(x));
}
}
```
## Contributing

Pull requests are welcome. Please check out the contribution and code of conduct guidelines.
## License
[](http://badges.mit-license.org)