Creation of ADO Connection

This commit is contained in:
2024-11-08 15:47:49 -07:00
parent 5d9b5a4022
commit 9c5651a862
46 changed files with 1094 additions and 561 deletions

View File

@ -2,11 +2,9 @@ using System.Text.Json.Serialization;
namespace Adaptation.FileHandlers.json.WorkItems;
public class Relation
internal class Relation
{
#nullable enable
[JsonConstructor]
public Relation(string rel,
string url,
@ -21,4 +19,16 @@ public class Relation
[JsonPropertyName("rel")] public string Rel { get; set; }
[JsonPropertyName("url")] public string URL { get; set; }
}
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSerializable(typeof(Relation))]
internal partial class RelationSourceGenerationContext : JsonSerializerContext
{
}
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSerializable(typeof(Relation[]))]
internal partial class RelationCollectionSourceGenerationContext : JsonSerializerContext
{
}