first things
This commit is contained in:
15
Datamodels/SearchModels/FieldModel.cs
Normal file
15
Datamodels/SearchModels/FieldModel.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Datamodels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Datamodels.SearchModels
|
||||
{
|
||||
|
||||
public sealed class FieldModel
|
||||
{
|
||||
public string FieldName { get; set; }
|
||||
public string FieldAlias { get; set; }
|
||||
public FieldTypes FieldType { get; set; }
|
||||
public List<SearchDescription> SearchDescriptions { get; set; }
|
||||
}
|
||||
}
|
||||
13
Datamodels/SearchModels/FilterModel.cs
Normal file
13
Datamodels/SearchModels/FilterModel.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Datamodels.SearchModels
|
||||
{
|
||||
public class FilterModel
|
||||
{
|
||||
public List<TableModel> TableDescriptions { get; set; }
|
||||
public long Skip { get; set; }
|
||||
public long Take { get; set; }
|
||||
}
|
||||
}
|
||||
11
Datamodels/SearchModels/ResultDataModel.cs
Normal file
11
Datamodels/SearchModels/ResultDataModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Datamodels.SearchModels
|
||||
{
|
||||
public class ResultDataModel
|
||||
{
|
||||
public List<ResultRowModel> ResultRows { get; set; }
|
||||
}
|
||||
}
|
||||
21
Datamodels/SearchModels/ResultFieldModel.cs
Normal file
21
Datamodels/SearchModels/ResultFieldModel.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Datamodels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Datamodels.SearchModels
|
||||
{
|
||||
/// <summary>
|
||||
/// Field base query Result
|
||||
/// </summary>
|
||||
public class ResultFieldModel
|
||||
{
|
||||
public FieldTypes FieldType { get; set; }
|
||||
public string FieldContent { get; set; }
|
||||
public int FieldContentInt { get; set; }
|
||||
public DateTime FieldContentDate { get; set; }
|
||||
public Decimal FieldContentDecimal { get; set; }
|
||||
public float FieldContentFloat { get; set; }
|
||||
public string FieldContentString { get; set; }
|
||||
}
|
||||
}
|
||||
13
Datamodels/SearchModels/ResultModel.cs
Normal file
13
Datamodels/SearchModels/ResultModel.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Datamodels.SearchModels
|
||||
{
|
||||
public class ResultModel
|
||||
{
|
||||
public FilterModel SearchModel { get; set; }
|
||||
public ResultDataModel ResultData { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
11
Datamodels/SearchModels/ResultRowModel.cs
Normal file
11
Datamodels/SearchModels/ResultRowModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Datamodels.SearchModels
|
||||
{
|
||||
public class ResultRowModel
|
||||
{
|
||||
public List<ResultFieldModel> RowFields { get; set; }
|
||||
}
|
||||
}
|
||||
15
Datamodels/SearchModels/SearchDescription.cs
Normal file
15
Datamodels/SearchModels/SearchDescription.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Datamodels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Datamodels.SearchModels
|
||||
{
|
||||
|
||||
public class SearchDescription
|
||||
{
|
||||
public SearchObject SearchData { get; set; }
|
||||
public JoinTypes JoinType { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
17
Datamodels/SearchModels/SearchObject.cs
Normal file
17
Datamodels/SearchModels/SearchObject.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Datamodels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Datamodels.SearchModels
|
||||
{
|
||||
|
||||
public class SearchObject
|
||||
{
|
||||
public List<string> Values { get; set; }
|
||||
public SearchTypes SearchType { get; set; }
|
||||
public PhraseOperators PhraseOperator { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
12
Datamodels/SearchModels/TableModel.cs
Normal file
12
Datamodels/SearchModels/TableModel.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Datamodels.SearchModels
|
||||
{
|
||||
public sealed class TableModel
|
||||
{
|
||||
public string TableName { get; set; }
|
||||
public string TableAlias { get; set; }
|
||||
public List<FieldModel> Fields { get; set; } = new List<FieldModel>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user