Skip to content

Commit 9ea9651

Browse files
authored
Merge pull request #67 from SoftFluent/ChangeRepository
The project has been taken over by SoftFluent
2 parents a510018 + 216c3f6 commit 9ea9651

32 files changed

+86
-79
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,11 @@ jobs:
3131
run: dotnet restore
3232

3333
- name: Build
34-
run: dotnet build EntityFrameworkCore.DataEncryption.sln --configuration Release -f net8.0 --no-restore
34+
run: dotnet build SoftFluent.EntityFrameworkCore.DataEncryption.sln --configuration Release -f net8.0 --no-restore
3535

3636
- name: Run unit tests
3737
run: dotnet test --configuration Release --collect:"XPlat Code Coverage" --settings ./test/EntityFrameworkCore.DataEncryption.Test/runsettings.xml
3838

3939
- name: Copy coverage results
4040
run: cp ./test/EntityFrameworkCore.DataEncryption.Test/TestResults/**/*.xml ./test/EntityFrameworkCore.DataEncryption.Test/TestResults/
4141

42-
- name: Upload code coverage
43-
uses: codecov/codecov-action@v3
44-
with:
45-
files: ./test/EntityFrameworkCore.DataEncryption.Test/TestResults/coverage.opencover.xml
46-
fail_ci_if_error: true

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Filipe GP
3+
Copyright (c) 2024 SoftFluent
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# EntityFrameworkCore.DataEncryption
22

3-
[![.NET](https://github.com/Eastrall/EntityFrameworkCore.DataEncryption/actions/workflows/build.yml/badge.svg)](https://github.com/Eastrall/EntityFrameworkCore.DataEncryption/actions/workflows/build.yml)
4-
[![codecov](https://codecov.io/gh/Eastrall/EntityFrameworkCore.DataEncryption/branch/main/graph/badge.svg)](https://codecov.io/gh/Eastrall/EntityFrameworkCore.DataEncryption)
3+
[![.NET](https://github.com/SoftFluent/EntityFrameworkCore.DataEncryption/actions/workflows/build.yml/badge.svg)](https://github.com/SoftFluent/EntityFrameworkCore.DataEncryption/actions/workflows/build.yml)
54
[![Nuget](https://img.shields.io/nuget/v/EntityFrameworkCore.DataEncryption.svg)](https://www.nuget.org/packages/EntityFrameworkCore.DataEncryption)
65
[![Nuget Downloads](https://img.shields.io/nuget/dt/EntityFrameworkCore.DataEncryption)](https://www.nuget.org/packages/EntityFrameworkCore.DataEncryption)
76

@@ -33,7 +32,7 @@ PM> Install-Package EntityFrameworkCore.DataEncryption
3332

3433
| Name | Class | Extra |
3534
|------|-------|-------|
36-
| [AES](https://learn.microsoft.com/en-US/dotnet/api/system.security.cryptography.aes?view=net-6.0) | [AesProvider](https://github.com/Eastrall/EntityFrameworkCore.DataEncryption/blob/main/src/EntityFrameworkCore.DataEncryption/Providers/AesProvider.cs) | Can use a 128bits, 192bits or 256bits key |
35+
| [AES](https://learn.microsoft.com/en-US/dotnet/api/system.security.cryptography.aes?view=net-6.0) | [AesProvider](https://github.com/SoftFluent/EntityFrameworkCore.DataEncryption/blob/main/src/EntityFrameworkCore.DataEncryption/Providers/AesProvider.cs) | Can use a 128bits, 192bits or 256bits key |
3736

3837
## How to use
3938

@@ -82,7 +81,7 @@ public class DatabaseContext : DbContext
8281
}
8382
}
8483
```
85-
The code bellow creates a new [`AesProvider`](https://github.com/Eastrall/EntityFrameworkCore.DataEncryption/blob/main/src/EntityFrameworkCore.DataEncryption/Providers/AesProvider.cs) and gives it to the current model. It will encrypt every `string` fields of your model that has the `[Encrypted]` attribute when saving changes to database. As for the decrypt process, it will be done when reading the `DbSet<T>` of your `DbContext`.
84+
The code bellow creates a new [`AesProvider`](https://github.com/SoftFluent/EntityFrameworkCore.DataEncryption/blob/main/src/EntityFrameworkCore.DataEncryption/Providers/AesProvider.cs) and gives it to the current model. It will encrypt every `string` fields of your model that has the `[Encrypted]` attribute when saving changes to database. As for the decrypt process, it will be done when reading the `DbSet<T>` of your `DbContext`.
8685

8786
### Example with `AesProvider` and fluent configuration
8887

EntityFrameworkCore.DataEncryption.sln renamed to SoftFluent.EntityFrameworkCore.DataEncryption.sln

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{3EC10767-181
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{E4089551-AF4E-41B3-A6F8-2501A3BE0E0C}"
99
EndProject
10-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntityFrameworkCore.DataEncryption", "src\EntityFrameworkCore.DataEncryption\EntityFrameworkCore.DataEncryption.csproj", "{D037F8D0-E606-4C5A-8669-DB6AAE7B056B}"
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SoftFluent.EntityFrameworkCore.DataEncryption", "src\EntityFrameworkCore.DataEncryption\SoftFluent.EntityFrameworkCore.DataEncryption.csproj", "{D037F8D0-E606-4C5A-8669-DB6AAE7B056B}"
1111
EndProject
12-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntityFrameworkCore.DataEncryption.Test", "test\EntityFrameworkCore.DataEncryption.Test\EntityFrameworkCore.DataEncryption.Test.csproj", "{5E023B6A-0B47-4EC2-90B9-2DF998E58ADB}"
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SoftFluent.EntityFrameworkCore.DataEncryption.Test", "test\EntityFrameworkCore.DataEncryption.Test\SoftFluent.EntityFrameworkCore.DataEncryption.Test.csproj", "{5E023B6A-0B47-4EC2-90B9-2DF998E58ADB}"
1313
EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "global", "global", "{3A8D800E-77BD-44EF-82DB-C672281ECAAA}"
1515
ProjectSection(SolutionItems) = preProject
@@ -20,7 +20,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "global", "global", "{3A8D80
2020
EndProject
2121
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{64C3D7D1-67B8-4070-AE67-C71B761535CC}"
2222
EndProject
23-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AesSample", "samples\AesSample\AesSample.csproj", "{8AA1E576-4016-4623-96C8-90330F05F9A8}"
23+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SoftFluent.AesSample", "samples\AesSample\SoftFluent.AesSample.csproj", "{8AA1E576-4016-4623-96C8-90330F05F9A8}"
2424
EndProject
2525
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{EEF46CDC-C438-48FC-BEF7-83AEE26C63F7}"
2626
EndProject
@@ -29,7 +29,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
2929
.github\workflows\build.yml = .github\workflows\build.yml
3030
EndProjectSection
3131
EndProject
32-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AesSample.Fluent", "samples\AesSample.Fluent\AesSample.Fluent.csproj", "{CF04DE64-713F-4ED3-9C14-B7C11D22454C}"
32+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SoftFluent.AesSample.Fluent", "samples\AesSample.Fluent\SoftFluent.AesSample.Fluent.csproj", "{CF04DE64-713F-4ED3-9C14-B7C11D22454C}"
3333
EndProject
3434
Global
3535
GlobalSection(SolutionConfigurationPlatforms) = preSolution

samples/AesSample.Fluent/DatabaseContext.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using Microsoft.EntityFrameworkCore;
2-
using Microsoft.EntityFrameworkCore.DataEncryption;
2+
using SoftFluent.EntityFrameworkCore.DataEncryption;
33
using Microsoft.EntityFrameworkCore.Metadata.Builders;
4-
using System.ComponentModel.DataAnnotations;
4+
using SoftFluent.ComponentModel.DataAnnotations;
55

6-
namespace AesSample.Fluent;
6+
namespace SoftFluent.AesSample.Fluent;
77

88
public class DatabaseContext : DbContext
99
{

samples/AesSample.Fluent/EncryptedDatabaseContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Microsoft.EntityFrameworkCore;
22

3-
namespace AesSample.Fluent;
3+
namespace SoftFluent.AesSample.Fluent;
44

55
public class EncryptedDatabaseContext : DatabaseContext
66
{

samples/AesSample.Fluent/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using Microsoft.Data.Sqlite;
2-
using Microsoft.EntityFrameworkCore.DataEncryption.Providers;
2+
using SoftFluent.EntityFrameworkCore.DataEncryption.Providers;
33
using Microsoft.EntityFrameworkCore;
44
using System;
55
using System.Linq;
66

7-
namespace AesSample.Fluent;
7+
namespace SoftFluent.AesSample.Fluent;
88

99
internal class Program
1010
{

samples/AesSample.Fluent/AesSample.Fluent.csproj renamed to samples/AesSample.Fluent/SoftFluent.AesSample.Fluent.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<ProjectReference Include="..\..\src\EntityFrameworkCore.DataEncryption\EntityFrameworkCore.DataEncryption.csproj" />
16+
<ProjectReference Include="..\..\src\EntityFrameworkCore.DataEncryption\SoftFluent.EntityFrameworkCore.DataEncryption.csproj" />
1717
</ItemGroup>
1818

1919
</Project>

samples/AesSample.Fluent/UserEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace AesSample.Fluent;
3+
namespace SoftFluent.AesSample.Fluent;
44

55
public class UserEntity
66
{

samples/AesSample/DatabaseContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Microsoft.EntityFrameworkCore;
2-
using Microsoft.EntityFrameworkCore.DataEncryption;
2+
using SoftFluent.EntityFrameworkCore.DataEncryption;
33

4-
namespace AesSample;
4+
namespace SoftFluent.AesSample;
55

66
public class DatabaseContext : DbContext
77
{

0 commit comments

Comments
 (0)