Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be691c4
commit 31ce326
Showing
22 changed files
with
830 additions
and
908 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
src/ElCamino.AspNetCore.Identity.CosmosDB/Helpers/JsonHelpers.cs
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
src/ElCamino.AspNetCore.Identity.CosmosDB/Helpers/PartitionKeyHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ElCamino.AspNetCore.Identity.CosmosDB.Helpers | ||
{ | ||
public static class PartitionKeyHelper | ||
{ | ||
public static string GetPartitionKeyFromId(string id) | ||
{ | ||
id = id?.ToString()?.Trim(); | ||
if (!string.IsNullOrWhiteSpace(id)) | ||
{ | ||
if (id.Length > 4) | ||
{ | ||
return id.Substring(id.Length - 4, 4); | ||
} | ||
} | ||
|
||
return string.Empty; | ||
} | ||
} | ||
} |
Oops, something went wrong.