From 4a7106b35382cc80463bfcb8c0039c984d73d808 Mon Sep 17 00:00:00 2001 From: sofietoft Date: Wed, 2 Oct 2024 12:37:49 +0200 Subject: [PATCH 1/2] Update summary and list of new articles --- 15/umbraco-cms/SUMMARY.md | 1 + 15/umbraco-cms/release-candidate-guide.md | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/15/umbraco-cms/SUMMARY.md b/15/umbraco-cms/SUMMARY.md index 1a22f92f9a5..2b33d546dac 100644 --- a/15/umbraco-cms/SUMMARY.md +++ b/15/umbraco-cms/SUMMARY.md @@ -40,6 +40,7 @@ * [Health Check](extending/health-check/README.md) * [Health Check Guides](extending/health-check/guides/README.md) * [Content Content Security Policy (CSP)](extending/health-check/guides/contentsecuritypolicy.md) +* [Creating a Custom Database Table](extending/database.md) ## Reference diff --git a/15/umbraco-cms/release-candidate-guide.md b/15/umbraco-cms/release-candidate-guide.md index 691b66657d0..e75c55f098f 100644 --- a/15/umbraco-cms/release-candidate-guide.md +++ b/15/umbraco-cms/release-candidate-guide.md @@ -63,3 +63,7 @@ Here is a list of all the articles that are new to this version or have been upd ### New articles * [Tutorial: Extending the Help Menu](tutorials/extending-the-help-menu.md) + +### Updates articles + +* [Creating a Custom Database Table](extending/database.md) From e53ea484bc24e933621eef8d1542cc4ceff7e9a7 Mon Sep 17 00:00:00 2001 From: sofietoft Date: Wed, 2 Oct 2024 12:48:36 +0200 Subject: [PATCH 2/2] Update the description of the code sample --- 15/umbraco-cms/extending/database.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/15/umbraco-cms/extending/database.md b/15/umbraco-cms/extending/database.md index c0ad6613eff..423150c9bd5 100644 --- a/15/umbraco-cms/extending/database.md +++ b/15/umbraco-cms/extending/database.md @@ -245,16 +245,12 @@ Figuring out how to manage data across multiple environments can be different be To create, read, update or delete data from your custom database tables, you can use the `IScopeProvider` to get access to the database operations. -The following example creates an `UmbracoApiController` to be able to fetch and insert blog comments. +The following example creates a `Controller` that uses `[Route]` annotations to create API endpoints for fetching and inserting blog comments. {% hint style="info" %} This example does not use the aforementioned `BlogCommentSchema` class but rather a separate (yet duplicate) class that is not part of the example. Also, be aware that things like error handling and data validation have been omitted for brevity. {% endhint %} -{% hint style="warning" %} -The example below uses UmbracoApiController which is obsolete in Umbraco 14 and will be removed in Umbraco 15. -{% endhint %} - ```csharp using Microsoft.AspNetCore.Mvc; using System.Collections.Generic;