Skip to content

Commit 6ccdefc

Browse files
committed
Update EF Core, dependencies, and FK delete behavior
Upgraded project dependencies to latest versions, including Entity Framework Core, MailKit, AWS SDK, ZstdSharp.Port, and EasyExtensions packages. Changed foreign key delete behavior from Cascade to Restrict in both Postgres and Sqlite databases to prevent accidental data loss. Added new migrations to enforce these restrictions. Updated EasyExtensions.Crypto API usage in Module.cs. Refreshed test dependencies and removed license headers from model snapshots.
1 parent aadd729 commit 6ccdefc

9 files changed

Lines changed: 1570 additions & 47 deletions

src/Octockup.Server/Database/Module.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private Dictionary<string, string> LoadParams(IStreamCipher cipher)
5656
}
5757

5858
var bytes = Convert.FromBase64String(EncryptedParameters);
59-
var json = cipher.Decrypt(bytes);
59+
var json = cipher.DecryptString(bytes);
6060
_paramsCache = JsonSerializer.Deserialize<Dictionary<string, string>>(json) ?? new(StringComparer.Ordinal);
6161
return _paramsCache;
6262
}
@@ -68,7 +68,7 @@ private void FlushParams(IStreamCipher cipher, Dictionary<string, string> dict)
6868
.ToDictionary(x => x.Key, x => x.Value, StringComparer.Ordinal);
6969

7070
var json = JsonSerializer.Serialize(normalized);
71-
var bytes = cipher.Encrypt(json);
71+
var bytes = cipher.EncryptString(json);
7272

7373
EncryptedParameters = Convert.ToBase64String(bytes);
7474
_paramsCache = normalized;

0 commit comments

Comments
 (0)