From 0fd774b0fe410124fc872ba51d74b14aacfc9f25 Mon Sep 17 00:00:00 2001 From: kotlerman <3135083+kotlerman@users.noreply.github.com> Date: Sun, 27 Oct 2024 19:28:24 +0200 Subject: [PATCH] Update package version in sample projects --- samples/ConsoleApp.Net48/ConsoleApp.Net48.csproj | 2 +- samples/ConsoleApp.Net48/Documents/User.cs | 5 ++++- samples/ConsoleApp.Net6/ConsoleApp.Net6.csproj | 2 +- samples/ConsoleApp.Net6/Documents/User.cs | 6 +++++- samples/WebApiApp.Net6/Documents/User.cs | 6 +++++- samples/WebApiApp.Net6/WebApiApp.Net6.csproj | 2 +- 6 files changed, 17 insertions(+), 6 deletions(-) diff --git a/samples/ConsoleApp.Net48/ConsoleApp.Net48.csproj b/samples/ConsoleApp.Net48/ConsoleApp.Net48.csproj index b50b3b9..8f974dd 100644 --- a/samples/ConsoleApp.Net48/ConsoleApp.Net48.csproj +++ b/samples/ConsoleApp.Net48/ConsoleApp.Net48.csproj @@ -6,7 +6,7 @@ - + diff --git a/samples/ConsoleApp.Net48/Documents/User.cs b/samples/ConsoleApp.Net48/Documents/User.cs index 678c87a..3035071 100644 --- a/samples/ConsoleApp.Net48/Documents/User.cs +++ b/samples/ConsoleApp.Net48/Documents/User.cs @@ -1,9 +1,12 @@ -using System; +using MongoDB.Bson; +using MongoDB.Bson.Serialization.Attributes; +using System; namespace ConsoleApp.Net48.Documents { internal class User { + [BsonGuidRepresentation(GuidRepresentation.Standard)] public Guid Id { get; set; } public string Login { get; set; } } diff --git a/samples/ConsoleApp.Net6/ConsoleApp.Net6.csproj b/samples/ConsoleApp.Net6/ConsoleApp.Net6.csproj index aeaeac4..2ffff61 100644 --- a/samples/ConsoleApp.Net6/ConsoleApp.Net6.csproj +++ b/samples/ConsoleApp.Net6/ConsoleApp.Net6.csproj @@ -7,7 +7,7 @@ - + diff --git a/samples/ConsoleApp.Net6/Documents/User.cs b/samples/ConsoleApp.Net6/Documents/User.cs index dbf800c..f979426 100644 --- a/samples/ConsoleApp.Net6/Documents/User.cs +++ b/samples/ConsoleApp.Net6/Documents/User.cs @@ -1,7 +1,11 @@ -namespace ConsoleApp.Net6.Documents; +using MongoDB.Bson; +using MongoDB.Bson.Serialization.Attributes; + +namespace ConsoleApp.Net6.Documents; internal class User { + [BsonGuidRepresentation(GuidRepresentation.Standard)] public Guid Id { get; set; } public string Login { get; set; } } diff --git a/samples/WebApiApp.Net6/Documents/User.cs b/samples/WebApiApp.Net6/Documents/User.cs index 6565a2b..a60f566 100644 --- a/samples/WebApiApp.Net6/Documents/User.cs +++ b/samples/WebApiApp.Net6/Documents/User.cs @@ -1,7 +1,11 @@ -namespace WebApiApp.Net6.Documents; +using MongoDB.Bson; +using MongoDB.Bson.Serialization.Attributes; + +namespace WebApiApp.Net6.Documents; internal class User { + [BsonGuidRepresentation(GuidRepresentation.Standard)] public Guid Id { get; set; } public string Login { get; set; } } diff --git a/samples/WebApiApp.Net6/WebApiApp.Net6.csproj b/samples/WebApiApp.Net6/WebApiApp.Net6.csproj index d016b05..19304d0 100644 --- a/samples/WebApiApp.Net6/WebApiApp.Net6.csproj +++ b/samples/WebApiApp.Net6/WebApiApp.Net6.csproj @@ -6,7 +6,7 @@ - +