Skip to content

Commit

Permalink
Comment up guid extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Sep 25, 2023
1 parent 49c9be7 commit d306998
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions uSync.Migrations/Extensions/GuidExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

namespace uSync.Migrations.Extensions;

/// <summary>
/// Extensions for Guids
/// </summary>
/// <remarks>
/// 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.
/// </remarks>

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 };
Expand Down

0 comments on commit d306998

Please sign in to comment.