Browse Source

Merge pull request #22686 from abpframework/auto-merge/rel-9-1/3655

Merge branch rel-9.2 with rel-9.1
pull/22688/head
maliming 1 year ago
committed by GitHub
parent
commit
c9f6ae3b0e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 9
      docs/en/framework/data/entity-framework-core/postgresql.md
  2. 6
      docs/en/framework/infrastructure/string-encryption.md

9
docs/en/framework/data/entity-framework-core/postgresql.md

@ -21,6 +21,15 @@ Find `UseSqlServer()` call in *YourProjectName*DbContextFactory.cs inside the `.
> Depending on your solution structure, you may find more `UseSqlServer()` calls that needs to be changed. > Depending on your solution structure, you may find more `UseSqlServer()` calls that needs to be changed.
## EnableLegacyTimestampBehavior
Please enable the `Npgsql.EnableLegacyTimestampBehavior` in `PreConfigureServices` method of your EF Core module and `DbContextFactory(IDesignTimeDbContextFactory)` class.
`AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);`
See https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
## Change the Connection Strings ## Change the Connection Strings
PostgreSql connection strings are different than SQL Server connection strings. So, check all `appsettings.json` files in your solution and replace the connection strings inside them. See the [connectionstrings.com](https://www.connectionstrings.com/postgresql/) for details of PostgreSql connection string options. PostgreSql connection strings are different than SQL Server connection strings. So, check all `appsettings.json` files in your solution and replace the connection strings inside them. See the [connectionstrings.com](https://www.connectionstrings.com/postgresql/) for details of PostgreSql connection string options.

6
docs/en/framework/infrastructure/string-encryption.md

@ -52,11 +52,11 @@ All encryption operations are included in `IStringEncryptionService`. You can in
public string Encrypt(string value) public string Encrypt(string value)
{ {
// To enrcypt a value // To encrypt a value
return StringEncryptionService.Encrypt(value); return StringEncryptionService.Encrypt(value);
} }
public string Decrpyt(string value) public string Decrypt(string value)
{ {
// To decrypt a value // To decrypt a value
return StringEncryptionService.Decrypt(value); return StringEncryptionService.Decrypt(value);
@ -122,4 +122,4 @@ Configure<AbpStringEncryptionOptions>(opts =>
- **Keysize:** This constant is used to determine the keysize of the encryption algorithm. - **Keysize:** This constant is used to determine the keysize of the encryption algorithm.
Default value: `256` Default value: `256`

Loading…
Cancel
Save