Skip to content

Commit 9c5c117

Browse files
committed
Umbraco UI Builder release notes and details on entity identifier converters.
1 parent 5bf2930 commit 9c5c117

File tree

4 files changed

+85
-0
lines changed

4 files changed

+85
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
description: Using Umbraco entities as reference with an UI Builder collection
3+
---
4+
5+
# Entity Identifier Converters
6+
7+
Umbraco stores identifiers in UDI format for most Umbraco object types.
8+
9+
You can read more about them in the [UDI Identifiers](../../umbraco-cms/reference/querying/udi-identifiers.md) section of the documentation.
10+
11+
If you want to use in your model a reference to an Umbraco object and retrieve the `Integer` or `Guid` value of it, you would need to apply a conversion process to the `UDI` value.
12+
13+
To achieve that you will need to use one of UI Builder's converters - `EntityIdentifierToIntTypeConverter` or `EntityIdentifierToGuidTypeConverter` - and add it as a `[TypeConverterAttribute]` to your model's foreign key property.
14+
15+
An entity that references an Umbraco object would look like this:
16+
17+
```csharp
18+
[TableName(TableName)]
19+
[PrimaryKey("Id")]
20+
public class MemberReview
21+
{
22+
public const string TableName = "MemberReview";
23+
24+
[PrimaryKeyColumn]
25+
public int Id { get; set; }
26+
27+
public string Title { get; set; }
28+
29+
public string Content { get; set; }
30+
31+
[TypeConverter(typeof(EntityIdentifierToIntTypeConverter))]
32+
public int MemberId { get; set; }
33+
}
34+
```
35+
36+
You can also define and use your own custom type converter and UI Builder will take care of the data persistence.

13/umbraco-ui-builder/release-notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ If you are upgrading to a new major version, check the breaking changes in the [
1818

1919
This section contains the release notes for Umbraco UI Builder 13 including all changes for this version.
2020

21+
#### [**13.2.3**](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues?q=is%3Aissue+is%3Aclosed+label%3Arelease%2F13.2.3) **(April 4th 2025)**
22+
23+
* Removed global registration of `UDI` converters [#144](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues/144) and introduce new [Entity Identifier Converters](./collections/entity-identifier-converters.md) .
24+
2125
#### [**13.2.2**](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues?q=is%3Aissue+is%3Aclosed+label%3Arelease%2F13.2.2) **(March 21st 2025)**
2226

2327
* Fixed an issue for bulk actions that disabled the actions row on cancel [#130](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues/130)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
description: Using Umbraco entities as reference with an UI Builder collection
3+
---
4+
5+
# Entity Identifier Converters
6+
7+
Umbraco stores identifiers in UDI format for most Umbraco object types.
8+
9+
You can read more about them in the [UDI Identifiers](../../umbraco-cms/reference/querying/udi-identifiers.md) section of the documentation.
10+
11+
If you want to use in your model a reference to an Umbraco object and retrieve the `Integer` or `Guid` value of it, you would need to apply a conversion process to the `UDI` value.
12+
13+
To achieve that you will need to use one of UI Builder's converters - `EntityIdentifierToIntTypeConverter` or `EntityIdentifierToGuidTypeConverter` - and add it as a `[TypeConverterAttribute]` to your model's foreign key property.
14+
15+
An entity that references an Umbraco object would look like this:
16+
17+
```csharp
18+
[TableName(TableName)]
19+
[PrimaryKey("Id")]
20+
public class MemberReview
21+
{
22+
public const string TableName = "MemberReview";
23+
24+
[PrimaryKeyColumn]
25+
public int Id { get; set; }
26+
27+
public string Title { get; set; }
28+
29+
public string Content { get; set; }
30+
31+
[TypeConverter(typeof(EntityIdentifierToIntTypeConverter))]
32+
public int MemberId { get; set; }
33+
}
34+
```
35+
36+
You can also define and use your own custom type converter and UI Builder will take care of the data persistence.

15/umbraco-ui-builder/release-notes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ If you are upgrading to a new major version, check the breaking changes in the [
1818

1919
Below are the release notes for Umbraco UI Builder 15, detailing all changes in this version.
2020

21+
#### [**15.1.2**](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues?q=is%3Aissue+is%3Aclosed+label%3Arelease%2F15.1.2) **(April 4th 2025)**
22+
23+
* Removed global registration of `UDI` converters [#144](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues/144), [#136](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues/136) and introduce new [Entity Identifier Converters](./collections/entity-identifier-converters.md) .
24+
* Fixed `Create` action button [#137](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues/137)
25+
* Add collection list view refresh feature following an entity action [#139](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues/139)
26+
* Fixed collection visibility [#134](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues/134)
27+
* Enable rendering of sidebar properties.
28+
* Fixed an issue that prevented the creation of multiple sections.
29+
2130
#### [**15.1.1**](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues?q=is%3Aissue+is%3Aclosed+label%3Arelease%2F15.1.1) **(March 21st 2025)**
2231

2332
* Extended `UdiConverter` with options to convert to `GUID` [#108](https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues/108)

0 commit comments

Comments
 (0)