Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions E13.Common.sln
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "E13.Common.Cli", "src\E13.C
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "E13.Common.Data", "src\E13.Common.Data\E13.Common.Data.csproj", "{427C6EBD-6302-46D5-849D-A9AE04B4649E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "E13.Common.Logic", "src\E13.Common.Logic\E13.Common.Logic.csproj", "{58E89B10-C7EF-4FFC-AE45-BB0EB7FB2A99}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -115,6 +119,14 @@ Global
{A96111A4-8348-4EB7-A7D7-8DDA857D7414}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A96111A4-8348-4EB7-A7D7-8DDA857D7414}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A96111A4-8348-4EB7-A7D7-8DDA857D7414}.Release|Any CPU.Build.0 = Release|Any CPU
{427C6EBD-6302-46D5-849D-A9AE04B4649E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{427C6EBD-6302-46D5-849D-A9AE04B4649E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{427C6EBD-6302-46D5-849D-A9AE04B4649E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{427C6EBD-6302-46D5-849D-A9AE04B4649E}.Release|Any CPU.Build.0 = Release|Any CPU
{58E89B10-C7EF-4FFC-AE45-BB0EB7FB2A99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{58E89B10-C7EF-4FFC-AE45-BB0EB7FB2A99}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58E89B10-C7EF-4FFC-AE45-BB0EB7FB2A99}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58E89B10-C7EF-4FFC-AE45-BB0EB7FB2A99}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -137,6 +149,8 @@ Global
{E57FB194-8742-4183-8FBF-0EDA6C09F4A6} = {30D836B3-FF29-49DC-B503-94B8F9B6DC50}
{F05A8C35-D9A8-48C6-8709-9E009AEC84C1} = {30D836B3-FF29-49DC-B503-94B8F9B6DC50}
{A96111A4-8348-4EB7-A7D7-8DDA857D7414} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{427C6EBD-6302-46D5-849D-A9AE04B4649E} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{58E89B10-C7EF-4FFC-AE45-BB0EB7FB2A99} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {86FB5264-87DD-494C-885E-05EA38F8DB19}
Expand Down
27 changes: 19 additions & 8 deletions build/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ stages:
- template: templates/job_nuget_github.yml
parameters:
name: data
project: E13.Common.Data.Db
project: E13.Common.Data

- template: templates/job_nuget_github.yml
parameters:
Expand All @@ -92,6 +92,11 @@ stages:
- stage: Batch3
dependsOn: Batch2
jobs:
- template: templates/job_nuget_github.yml
parameters:
name: datadb
project: E13.Common.Data.Db

- template: templates/job_nuget_github.yml
parameters:
name: api
Expand All @@ -102,26 +107,32 @@ stages:
name: blazor
project: E13.Common.Blazor

- template: templates/job_nuget_github.yml
parameters:
name: logic
project: E13.Common.Logic

- template: templates/job_nuget_github.yml
parameters:
name: nunit_ui
project: E13.Common.Nunit.UI

- stage: Batch4
dependsOn: Batch3
jobs:

- template: templates/job_nuget_github.yml
parameters:
name: logic
project: E13.Common.Logic

- stage: Batch5
dependsOn:
- Batch4
jobs:

- template: templates/job_nuget_github.yml
parameters:
name: nunit_api
project: E13.Common.Nunit.Api

- stage: Post
dependsOn: Batch4
dependsOn: Batch5
jobs:
- job: git_cleanup
steps:
Expand Down
25 changes: 25 additions & 0 deletions doc/E13.Common.Core.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/E13.Common.Data.Db/E13.Common.Data.Db.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

<ItemGroup>
<ProjectReference Include="..\E13.Common.Core\E13.Common.Core.csproj" />
<ProjectReference Include="..\E13.Common.Data\E13.Common.Data.csproj" />
<ProjectReference Include="..\E13.Common.Domain\E13.Common.Domain.csproj" />
</ItemGroup>

Expand Down
14 changes: 14 additions & 0 deletions src/E13.Common.Data/DataException.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace E13.Common.Data
{
public class DataException : Exception
{
// Parameterless constructor
public DataException() : base() { }

// Constructor with message
public DataException(string message) : base(message) { }

// Constructor with message and inner exception
public DataException(string message, Exception innerException) : base(message, innerException) { }
}
}
9 changes: 9 additions & 0 deletions src/E13.Common.Data/E13.Common.Data.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
37 changes: 37 additions & 0 deletions src/E13.Common.Data/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# E13.Common.Data

[![NuGet Version](https://img.shields.io/nuget/v/e13.common.data)](https://www.nuget.org/packages/E13.Common.Data/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

## Overview

E13.Common.Data is a package within the E13.Common collection designed for implementing a data layer.
## Features

- **Data Exception**: Exception to help identify data-related issues

## Installation

```shell
dotnet add package E13.Common.Data
```

## Dependencies

- .NET 9.0

## Related Packages

E13.Common.Data is part of the E13.Common collection, which includes:

- E13.Common.Core - Core utilities and base classes
- E13.Common.Domain - Domain layer components
- E13.Common.Data.Db - Database access components

## Contributing

Contributions to E13.Common.Data are welcome. If you have suggestions or improvements, please submit an issue or create a pull request in the [GitHub repository](https://github.com/e13tech/common).

## License

This project is licensed under the MIT License. For more details, see the LICENSE file in the repository.
26 changes: 26 additions & 0 deletions src/E13.Common.Domain/DomainException.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace E13.Common.Domain
{
public class DomainException : Exception
{
Comment thread
JJBussert marked this conversation as resolved.
// Default constructor
public DomainException() : base()
{
}

// Constructor with message
public DomainException(string message) : base(message)
{
}

// Constructor with message and inner exception
public DomainException(string message, Exception innerException) : base(message, innerException)
{
}
}
}
23 changes: 23 additions & 0 deletions src/E13.Common.Logic/LogicException.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace E13.Common.Logic
{
public class LogicException : Exception
{
public LogicException()
{
}

public LogicException(string message) : base(message)
{
}

public LogicException(string message, Exception innerException) : base(message, innerException)
{
}
}
}
Loading