Skip to content

Commit f257a9c

Browse files
authored
Fix links, versions and some texts. (#4886)
1 parent 6ccf94c commit f257a9c

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

entity-framework/core/providers/sqlite/functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ Math.Truncate(d) | trunc(@d) | EF Co
149149

150150
> [!TIP]
151151
> In addition to the methods listed here, corresponding [generic math](/dotnet/standard/generics/math) implementations
152-
> and [MathF](/dotnet/api/system.mathf) methods are also translated. For example, `Math.Sin`, `MathF.Sin`, `double.Sin`,
152+
> and <xref:System.MathF> methods are also translated. For example, `Math.Sin`, `MathF.Sin`, `double.Sin`,
153153
> and `float.Sin` all map to the `sin` function in SQL.
154154
155155
> [!TIP]
156-
> SQL functions prefixed with *ef* are created by EF Core.
156+
> SQL functions prefixed with `ef_` are created by EF Core.
157157
158158
## String functions
159159

entity-framework/core/providers/sqlite/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Install-Package Microsoft.EntityFrameworkCore.Sqlite
2929

3030
## Supported Database Engines
3131

32-
* SQLite (3.7 onwards)
32+
* SQLite (3.46.1 onwards)
3333

3434
## Limitations
3535

entity-framework/core/providers/sqlite/limitations.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The SQLite provider has a number of migrations limitations. Most of these limita
1111

1212
## Modeling limitations
1313

14-
The common relational library (shared by Entity Framework relational database providers) defines APIs for modelling concepts that are common to most relational database engines. A couple of these concepts are not supported by the SQLite provider.
14+
The common relational library (shared by EF Core relational database providers) defines APIs for modelling concepts that are common to most relational database engines. A couple of these concepts are not supported by the SQLite provider.
1515

1616
* Schemas
1717
* Sequences
@@ -21,14 +21,14 @@ The common relational library (shared by Entity Framework relational database pr
2121

2222
SQLite doesn't natively support the following data types. EF Core can read and write values of these types, and querying for equality (`where e.Property == value`) is also supported. Other operations, however, like comparison and ordering will require evaluation on the client.
2323

24-
* DateTimeOffset
25-
* Decimal
26-
* TimeSpan
27-
* UInt64
24+
* `DateTimeOffset`
25+
* `decimal`
26+
* `TimeSpan`
27+
* `ulong`
2828

29-
Instead of `DateTimeOffset`, we recommend using DateTime values. When handling multiple time zones, we recommend converting the values to UTC before saving and then converting back to the appropriate time zone.
29+
Instead of `DateTimeOffset`, we recommend using `DateTime` values. When handling multiple time zones, we recommend converting the values to UTC before saving and then converting back to the appropriate time zone.
3030

31-
The `Decimal` type provides a high level of precision. If you don't need that level of precision, however, we recommend using double instead. You can use a [value converter](xref:core/modeling/value-conversions) to continue using decimal in your classes.
31+
The `decimal` type provides a high level of precision. If you don't need that level of precision, however, we recommend using `double` instead. You can use a [value converter](xref:core/modeling/value-conversions) to continue using `decimal` in your classes.
3232

3333
```csharp
3434
modelBuilder.Entity<MyEntity>()
@@ -40,7 +40,7 @@ modelBuilder.Entity<MyEntity>()
4040

4141
The SQLite database engine does not support a number of schema operations that are supported by the majority of other relational databases. If you attempt to apply one of the unsupported operations to a SQLite database then a `NotSupportedException` will be thrown.
4242

43-
A rebuild will be attempted in order to perform certain operations. Rebuilds are only possible for database artifacts that are part of your EF Core model. If a database artifact isn't part of the model--for example, if it was created manually inside a migration--then a `NotSupportedException` is still thrown.
43+
A rebuild will be attempted in order to perform certain operations. Rebuilds are only possible for database artifacts that are part of your EF Core model. If a database artifact isn't part of the model - for example, if it was created manually inside a migration - then a `NotSupportedException` is still thrown.
4444

4545
Operation | Supported?
4646
---------------------|:----------
@@ -70,7 +70,7 @@ Delete | ✔
7070

7171
### Migrations limitations workaround
7272

73-
You can workaround some of these limitations by manually writing code in your migrations to perform a rebuild. Table rebuilds involve creating a new table, copying data to the new table, dropping the old table, renaming the new table. You will need to use the `Sql(string)` method to perform some of these steps.
73+
You can workaround some of these limitations by manually writing code in your migrations to perform a rebuild. Table rebuilds involve creating a new table, copying data to the new table, dropping the old table, renaming the new table. You will need to use the <xref:Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder.Sql%2A> method to perform some of these steps.
7474

7575
See [Making Other Kinds Of Table Schema Changes](https://sqlite.org/lang_altertable.html#otheralter) in the SQLite documentation for more details.
7676

@@ -92,9 +92,9 @@ dotnet ef database update --connection "Data Source=My.db"
9292

9393
## Concurrent migrations protection
9494

95-
EF9 introduced a locking mechanism when executing migrations. It aims to protect against multiple migration executions happening simultaneously, as that could leave the database in a corrupted state. This is one of the potential problems resulting from applying migrations at runtime using the [`DbContext.Database.Migrate()`](/dotnet/api/microsoft.entityframeworkcore.relationaldatabasefacadeextensions.migrate) method (see [Applying migrations](xref:core/managing-schemas/migrations/applying) for more information). To mitigate this, EF creates an exclusive lock on the database before any migration operations are applied.
95+
EF9 introduced a locking mechanism when executing migrations. It aims to protect against multiple migration executions happening simultaneously, as that could leave the database in a corrupted state. This is one of the potential problems resulting from applying migrations at runtime using the <xref:Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.Migrate%2A> method (see [Applying migrations](xref:core/managing-schemas/migrations/applying) for more information). To mitigate this, EF creates an exclusive lock on the database before any migration operations are applied.
9696

97-
Unfortunately, SQLite does not have built-in locking mechanism, so EF creates a separate table (`__EFMigrationsLock`) and uses it for locking. The lock is released when the migration completes and the seeding code finishes execution. However, if for some reason migration fails in a non-recoverable way, the lock may not be released correctly. If this happens, consecutive migrations will be blocked from executing SQL and therefore never complete. You can manually unblock them by deleting the `__EFMigrationsLock` table in the database.
97+
Unfortunately, SQLite does not have built-in locking mechanism, so EF Core creates a separate table (`__EFMigrationsLock`) and uses it for locking. The lock is released when the migration completes and the seeding code finishes execution. However, if for some reason migration fails in a non-recoverable way, the lock may not be released correctly. If this happens, consecutive migrations will be blocked from executing SQL and therefore never complete. You can manually unblock them by deleting the `__EFMigrationsLock` table in the database.
9898

9999
## See also
100100

entity-framework/core/providers/sqlite/spatial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This page includes additional information about using spatial data with the SQLi
1111

1212
## Installing SpatiaLite
1313

14-
On Windows, the native mod_spatialite library is distributed as a NuGet package dependency. Other platforms need to install it separately. This is typically done using a software package manager. For example, you can use APT on Debian and Ubuntu; and Homebrew on MacOS.
14+
On Windows, the native `mod_spatialite` library is distributed as a [NuGet package](https://www.nuget.org/packages/mod_spatialite) dependency. Other platforms need to install it separately. This is typically done using a software package manager. For example, you can use APT on Debian and Ubuntu; and Homebrew on MacOS.
1515

1616
```bash
1717
# Debian/Ubuntu
@@ -139,4 +139,4 @@ EnvelopeCombiner.CombineAsGeometry(group.Select(x => x.Property)) | Extent(Prope
139139
## Additional resources
140140

141141
* [SpatiaLite Homepage](https://www.gaia-gis.it/fossil/libspatialite)
142-
* [NetTopologySuite Docs](https://nettopologysuite.github.io/NetTopologySuite/)
142+
* [NetTopologySuite API Documentation](https://nettopologysuite.github.io/NetTopologySuite/api/NetTopologySuite.html)

0 commit comments

Comments
 (0)