diff --git a/src/EFCore.PG/Design/Internal/NpgsqlCSharpRuntimeAnnotationCodeGenerator.cs b/src/EFCore.PG/Design/Internal/NpgsqlCSharpRuntimeAnnotationCodeGenerator.cs index 9d26dfce5..daae6db8b 100644 --- a/src/EFCore.PG/Design/Internal/NpgsqlCSharpRuntimeAnnotationCodeGenerator.cs +++ b/src/EFCore.PG/Design/Internal/NpgsqlCSharpRuntimeAnnotationCodeGenerator.cs @@ -49,6 +49,7 @@ public override bool Create( var npgsqlDbTypeBasedDefaultInstance = typeMapping switch { NpgsqlStringTypeMapping => NpgsqlStringTypeMapping.Default, + NpgsqlUIntTypeMapping => NpgsqlUIntTypeMapping.Default, NpgsqlULongTypeMapping => NpgsqlULongTypeMapping.Default, // NpgsqlMultirangeTypeMapping => NpgsqlMultirangeTypeMapping.Default, _ => (INpgsqlTypeMapping?)null diff --git a/src/EFCore.PG/Storage/Internal/Mapping/NpgsqlUIntTypeMapping.cs b/src/EFCore.PG/Storage/Internal/Mapping/NpgsqlUIntTypeMapping.cs index c24064b99..6b6028672 100644 --- a/src/EFCore.PG/Storage/Internal/Mapping/NpgsqlUIntTypeMapping.cs +++ b/src/EFCore.PG/Storage/Internal/Mapping/NpgsqlUIntTypeMapping.cs @@ -10,6 +10,14 @@ namespace Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping; /// public class NpgsqlUIntTypeMapping : NpgsqlTypeMapping { + /// + /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to + /// the same compatibility standards as public APIs. It may be changed or removed without notice in + /// any release. You should only use it directly in your code with extreme caution and knowing that + /// doing so can result in application failures when updating to a new Entity Framework Core release. + /// + public static NpgsqlUIntTypeMapping Default { get; } = new("xid", NpgsqlDbType.Xid); + /// /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in