Tisa.Domain
2025.9.9.410
dotnet add package Tisa.Domain --version 2025.9.9.410
NuGet\Install-Package Tisa.Domain -Version 2025.9.9.410
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tisa.Domain" Version="2025.9.9.410" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tisa.Domain" Version="2025.9.9.410" />
<PackageReference Include="Tisa.Domain" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tisa.Domain --version 2025.9.9.410
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tisa.Domain, 2025.9.9.410"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Tisa.Domain&version=2025.9.9.410
#tool nuget:?package=Tisa.Domain&version=2025.9.9.410
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Tisa.Domain
Библиотека базовых компонентов доменной модели для приложений ТИСА.
Описание
Tisa.Domain - это библиотека, предоставляющая базовые классы и компоненты для построения доменной модели в приложениях ТИСА. Библиотека поддерживает .NET 8.0 и .NET 9.0.
Установка
dotnet add package Tisa.Domain
Основные возможности
- Базовые абстракции для доменной модели
- Система обработки ошибок и исключений
- Механизм доменных событий
- Примитивные типы данных
- Интеграция с FluentValidation
- Поддержка .NET 8.0 и .NET 9.0
Структура проекта
Tisa.Domain/
├── Abstractions/ # Базовые абстракции и интерфейсы
├── Errors/ # Система обработки ошибок
├── Exceptions/ # Пользовательские исключения
├── Messaging/ # Механизм доменных событий
└── Primitives/ # Примитивные типы данных
Использование
Базовые абстракции
using Tisa.Domain.Abstractions;
public class User : Entity<int>
{
public string Name { get; private set; }
public string Email { get; private set; }
public User(string name, string email)
{
Name = name;
Email = email;
}
}
Доменные события
using Tisa.Domain.Messaging;
public class UserCreatedEvent : DomainEvent
{
public string UserName { get; }
public string UserEmail { get; }
public UserCreatedEvent(string userName, string userEmail)
{
UserName = userName;
UserEmail = userEmail;
}
}
Обработка ошибок
using Tisa.Domain.Errors;
public class UserService
{
public Result<User> CreateUser(string name, string email)
{
if (string.IsNullOrEmpty(name))
{
return Result<User>.Failure(new ValidationError("Имя пользователя не может быть пустым"));
}
// Логика создания пользователя
return Result<User>.Success(new User(name, email));
}
}
Разработка
Требования
- .NET 8.0 SDK или выше
- Visual Studio 2022 или JetBrains Rider
- Git
Авторы
Команда разработчиков TISA
Лицензия
MIT License
Поддержка
Для получения поддержки или сообщения об ошибках, пожалуйста, напишите нам на support@tisn.ru
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- FluentValidation (>= 11.11.0)
- Lindhart.Analyser.MissingAwaitWarning (>= 2.0.0)
- Tisa.Common (>= 2025.9.9.410)
-
net9.0
- FluentValidation (>= 11.11.0)
- Lindhart.Analyser.MissingAwaitWarning (>= 2.0.0)
- Tisa.Common (>= 2025.9.9.410)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
2025.9.9.410 | 168 | 4/9/2025 | |
2025.9.9.400 | 244 | 4/8/2025 |