From d306998584857feedd110249a878613ea011d93a Mon Sep 17 00:00:00 2001 From: Kevin Jump Date: Mon, 25 Sep 2023 23:08:40 +0100 Subject: [PATCH] Comment up guid extensions --- uSync.Migrations/Extensions/GuidExtensions.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/uSync.Migrations/Extensions/GuidExtensions.cs b/uSync.Migrations/Extensions/GuidExtensions.cs index 1a0fc326..6852835c 100644 --- a/uSync.Migrations/Extensions/GuidExtensions.cs +++ b/uSync.Migrations/Extensions/GuidExtensions.cs @@ -2,6 +2,19 @@ namespace uSync.Migrations.Extensions; +/// +/// Extensions for Guids +/// +/// +/// in general GUIDs are just unique numbers. +/// +/// but there are times where we want the unique numbers to +/// always be the same between migrations (e.g new GUIDs for new properties) +/// +/// this way if you re-migrate the content stays the same between migrations +/// makes migrations quicker. and more repeatable. +/// + public static class GuidExtensions { private static readonly int[] _guidByteOrder = new[] { 15, 14, 13, 12, 11, 10, 9, 8, 6, 7, 4, 5, 0, 1, 2, 3 };