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

@ -3,8 +3,9 @@ using System.Text.Json.Serialization;
namespace Adaptation.FileHandlers.json.WIQL;
public class Root
internal class Root
{
[JsonConstructor]
public Root(
string queryType,
@ -23,10 +24,17 @@ public class Root
WorkItems = workItems;
}
public string QueryType { get; set; } // { init; get; }
public string QueryResultType { get; set; } // { init; get; }
public DateTime AsOf { get; set; } // { init; get; }
public Column[] Columns { get; set; } // { init; get; }
public SortColumn[] SortColumns { get; set; } // { init; get; }
public WorkItem[] WorkItems { get; set; } // { init; get; }
[JsonPropertyName("queryType")] public string QueryType { get; }
[JsonPropertyName("queryResultType")] public string QueryResultType { get; }
[JsonPropertyName("asOf")] public DateTime AsOf { get; }
[JsonPropertyName("columns")] public Column[] Columns { get; }
[JsonPropertyName("sortColumns")] public SortColumn[] SortColumns { get; }
[JsonPropertyName("workItems")] public WorkItem[] WorkItems { get; }
}
[JsonSourceGenerationOptions(WriteIndented = true)] // PropertyNameCaseInsensitive = true
[JsonSerializable(typeof(Root))]
internal partial class RootSourceGenerationContext : JsonSerializerContext
{
}