Tolitech.CodeGenerator.Domain
1.0.3-alpha-9
See the version list below for details.
dotnet add package Tolitech.CodeGenerator.Domain --version 1.0.3-alpha-9
NuGet\Install-Package Tolitech.CodeGenerator.Domain -Version 1.0.3-alpha-9
<PackageReference Include="Tolitech.CodeGenerator.Domain" Version="1.0.3-alpha-9" />
paket add Tolitech.CodeGenerator.Domain --version 1.0.3-alpha-9
#r "nuget: Tolitech.CodeGenerator.Domain, 1.0.3-alpha-9"
// Install Tolitech.CodeGenerator.Domain as a Cake Addin #addin nuget:?package=Tolitech.CodeGenerator.Domain&version=1.0.3-alpha-9&prerelease // Install Tolitech.CodeGenerator.Domain as a Cake Tool #tool nuget:?package=Tolitech.CodeGenerator.Domain&version=1.0.3-alpha-9&prerelease
Tolitech.CodeGenerator.Domain
Domain library used in projects created by the Code Generator tool.
This project contains abstract base classes, interfaces and markup interfaces to standardize and facilitate the implementation of projects generated by the Tolitech Code Generator tool.
Tolitech Code Generator Tool: http://www.tolitech.com.br
Examples:
public class Person : Entity
{
public Person(string? name)
{
Name = name;
}
public string? Name { get; private set; }
}
public interface IPersonRepository : IRepository
{
NotificationResult Insert(Person entity);
IEnumerable<Person> Get();
}
public class InsertCommand : Command
{
public string? Name { get; set; }
}
public class InsertCommandHandler : CommandHandler
{
private readonly IPersonRepository _personRepository;
public InsertCommandHandler(IPersonRepository personRepository)
{
_personRepository = personRepository;
}
public NotificationResult Handle(InsertCommand command)
{
var person = new Entities.Person(command.Name);
var result = _personRepository.Insert(person);
return result;
}
}
public class GetAllQueryHandler : QueryHandler
{
private readonly IPersonRepository _personRepository;
public GetAllQueryHandler(IPersonRepository personRepository)
{
_personRepository = personRepository;
}
public IEnumerable<GetAllQueryResult> Handle(GetAllQuery query)
{
var result = new List<GetAllQueryResult>();
var items = _personRepository.Get();
foreach (var item in items)
{
result.Add(new GetAllQueryResult
{
Name = item.Name
});
}
return result;
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- FluentValidation (>= 10.3.6)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
- Tolitech.CodeGenerator.Notification (>= 1.0.0-alpha-1)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Tolitech.CodeGenerator.Domain:
Package | Downloads |
---|---|
Tolitech.CodeGenerator.Auditing
Auditing library for Tolitech Code Generator. |
|
Tolitech.CodeGenerator.Infrastructure.Data
Infrastructure Data library for Tolitech Code Generator. |
|
Tolitech.CodeGenerator.Infrastructure
Infrastructure library for Tolitech Code Generator. |
|
Tolitech.CodeGenerator.AspNetCore
AspNetCore library for Tolitech Code Generator. |
|
Tolitech.CodeGenerator.Auditing.Trail
Auditing trail library for Tolitech Code Generator. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0-alpha-3 | 216 | 7/23/2021 |
2.0.0-alpha-2 | 215 | 7/21/2021 |
2.0.0-alpha-1 | 177 | 7/21/2021 |
1.0.3-beta-4 | 155 | 2/22/2022 |
1.0.3-beta-3 | 157 | 2/22/2022 |
1.0.3-beta-2 | 139 | 2/22/2022 |
1.0.3-beta-1 | 133 | 2/16/2022 |
1.0.3-alpha-9 | 322 | 2/15/2022 |
1.0.3-alpha-8 | 136 | 2/15/2022 |
1.0.3-alpha-7 | 133 | 2/15/2022 |
1.0.3-alpha-6 | 145 | 2/15/2022 |
1.0.3-alpha-5 | 125 | 2/15/2022 |
1.0.3-alpha-4 | 143 | 2/10/2022 |
1.0.3-alpha-3 | 135 | 2/10/2022 |
1.0.3-alpha-2 | 125 | 2/10/2022 |
1.0.3-alpha-1 | 2,597 | 11/25/2021 |
1.0.2 | 721 | 1/3/2021 |
1.0.1 | 417 | 6/28/2020 |
1.0.0 | 1,402 | 12/9/2019 |
More information at http://www.tolitech.com.br/