You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added Initial PostgreSQL support
* Updated with PostgreSql support
* Update Configuration.md with PostgreSql support
* Update BlogPost.cs with UtcNow
* Added ScheduledPublishedDate to UTC
---------
Co-authored-by: Steven Giesel <stgiesel35@gmail.com>
Copy file name to clipboardExpand all lines: docs/Setup/Configuration.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ The appsettings.json file has a lot of options to customize the content of the b
82
82
| Description | MarkdownString | Small introduction text for yourself. This is also used for `<meta name="description">` tag. For this the markup will be converted to plain text |
83
83
| BackgroundUrl | string | Url or path to the background image. (Optional) |
84
84
| ProfilePictureUrl | string | Url or path to your profile picture |
85
-
|[PersistenceProvider](./../Storage/Readme.md)| string | Declares the type of the storage provider (one of the following: `SqlServer`, `Sqlite`, `RavenDb`, `MongoDB`, `MySql`). More in-depth explanation [here](./../Storage/Readme.md)|
85
+
|[PersistenceProvider](./../Storage/Readme.md)| string | Declares the type of the storage provider (one of the following: `SqlServer`, `Sqlite`, `RavenDb`, `MongoDB`, `MySql`, `PostgreSql`). More in-depth explanation [here](./../Storage/Readme.md)|
86
86
| ConnectionString | string | Is used for connection to a database. |
87
87
| DatabaseName | string | Name of the database. Only used with `RavenDbStorageProvider`|
@@ -108,4 +108,4 @@ The appsettings.json file has a lot of options to customize the content of the b
108
108
| ConnectionString | string | The connection string for the image storage provider. Only used if `AuthenticationMode` is set to `ConnectionString`|
109
109
| ServiceUrl | string | The host url of the Azure blob storage. Only used if `AuthenticationMode` is set to `Default`|
110
110
| ContainerName | string | The container name for the image storage provider |
111
-
| CdnEndpoint | string | Optional CDN endpoint to use for uploaded images. If set, the blog will return this URL instead of the storage account URL for uploaded assets. |
111
+
| CdnEndpoint | string | Optional CDN endpoint to use for uploaded images. If set, the blog will return this URL instead of the storage account URL for uploaded assets. |
For the SQL providers (`SqlServer`, `Sqlite`, `MySql`), you can use Entity Framework Core Migrations to create and manage the database schema. The whole documentation can be found under [*"Entity Framework Core tools reference"*](https://learn.microsoft.com/en-us/ef/core/cli/dotnet). The short version is that you can use the following steps:
44
+
For the SQL providers (`SqlServer`, `Sqlite`, `MySql`, `PostgreSql`), you can use Entity Framework Core Migrations to create and manage the database schema. The whole documentation can be found under [*"Entity Framework Core tools reference"*](https://learn.microsoft.com/en-us/ef/core/cli/dotnet). The short version is that you can use the following steps:
37
45
38
46
```bash
39
47
dotnet ef database update --project src/LinkDotNet.Blog.Infrastructure --startup-project src/LinkDotNet.Blog.Web --connection "<ConnectionString>"
@@ -51,4 +59,4 @@ Here is the full documentation: [*"Applying Migrations"*](https://learn.microsof
51
59
Alternatively, the blog calls `Database.EnsureCreated()` on startup, which creates the database schema if it does not exist. So you are not forced to use migrations.
52
60
53
61
## Considerations
54
-
For most people a Sqlite database might be the best choice between convienence and ease of setup. As it runs "in-process" there are no additional dependencies or setup required (and therefore no additional cost). As the blog tries to cache many things, the load onto the database is not that big (performance considerations). The advantages of a "real" database like SqlServer or MySql are more in the realm of backups, replication, and other enterprise features (which are not needed often times for a simple blog).
62
+
For most people a Sqlite database might be the best choice between convienence and ease of setup. As it runs "in-process" there are no additional dependencies or setup required (and therefore no additional cost). As the blog tries to cache many things, the load onto the database is not that big (performance considerations). The advantages of a "real" database like SqlServer or MySql are more in the realm of backups, replication, and other enterprise features (which are not needed often times for a simple blog).
0 commit comments