Creation of ADO Connection
This commit is contained in:
@ -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
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user