26ff8d9b4f
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
32 lines
865 B
C#
Executable File
32 lines
865 B
C#
Executable File
using WorkerService.Models.Reporting;
|
|
|
|
namespace TestApp.Templates
|
|
{
|
|
/// <summary>
|
|
/// Query template extensions
|
|
/// </summary>
|
|
public partial class QueryTemplate2
|
|
{
|
|
/// <summary>
|
|
/// Template data model
|
|
/// </summary>
|
|
public SearchModel Model { get; }
|
|
|
|
/// <summary>
|
|
/// Whether or not to write data inserts
|
|
/// </summary>
|
|
public bool AddData { get; }
|
|
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
/// <param name="model">Template data model</param>
|
|
/// <param name="addData">Whether or not to write data inserts</param>
|
|
public QueryTemplate2(SearchModel model = null, bool addData = false)
|
|
{
|
|
Model = model ?? new SearchModel();
|
|
AddData = addData;
|
|
}
|
|
}
|
|
}
|