Skip to content

Commit f25b148

Browse files
authored
Merge pull request #7006 from acoumb/uibuilder-release
Umbraco UI Builder release notes and details on entity identifier type converters
2 parents b46718f + c15597d commit f25b148

File tree

6 files changed

+87
-0
lines changed

6 files changed

+87
-0
lines changed

13/umbraco-ui-builder/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
* [Child Collection Groups](collections/child-collection-groups.md)
4747
* [Retrieve Child Collections](collections/retrieve-child-collections.md)
4848
* [Related Collections](collections/related-collections.md)
49+
* [Entity Identifier Converters](collections/entity-identifier-converters.md)
4950

5051
## Searching
5152

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 reference an Umbraco object in your model and retrieve its `Integer` or `Guid` value, you must convert the `UDI` value.
12+
13+
Use one of UI Builder's converters - `EntityIdentifierToIntTypeConverter` or `EntityIdentifierToGuidTypeConverter`. 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 create a custom type converter. UI Builder will handle data persistence automatically.

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 introduced 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)

15/umbraco-ui-builder/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* [Child Collection Groups](collections/child-collection-groups.md)
4444
* [Retrieve Child Collections](collections/retrieve-child-collections.md)
4545
* [Related Collections](collections/related-collections.md)
46+
* [Entity Identifier Converters](collections/entity-identifier-converters.md)
4647

4748
## Searching
4849

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 reference an Umbraco object in your model and retrieve its `Integer` or `Guid` value, you must convert the `UDI` value.
12+
13+
Use one of UI Builder's converters - `EntityIdentifierToIntTypeConverter` or `EntityIdentifierToGuidTypeConverter`. 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 create a custom type converter. UI Builder will handle data persistence automatically.

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 introduced 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+
* Added 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+
* Enabled 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)