Initial
This commit is contained in:
		
							
								
								
									
										21
									
								
								Datamodels/SearchModels/FieldModel.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								Datamodels/SearchModels/FieldModel.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Datamodels.SearchModels | ||||
| { | ||||
|  | ||||
|     public enum FieldTypes | ||||
|     { | ||||
|         String, | ||||
|         Integer, | ||||
|         Double, | ||||
|         Boolean, | ||||
|         DateTime, | ||||
|         Currency, | ||||
|         Blob | ||||
|     } | ||||
|     public sealed class FieldModel | ||||
|     { | ||||
|         public string FieldName { get; set; } | ||||
|         public FieldTypes FieldType { get; set; } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										14
									
								
								Datamodels/SearchModels/FilterModel.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Datamodels/SearchModels/FilterModel.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Text; | ||||
|  | ||||
| namespace Datamodels.SearchModels | ||||
| { | ||||
|     public class FilterModel | ||||
|     { | ||||
|         public TableModel TableName { get; set; } | ||||
|         public List<SearchDescription> SearchDescriptions { get; set; } | ||||
|         public long Skip { get; set; } | ||||
|         public long Take { get; set; } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										19
									
								
								Datamodels/SearchModels/SearchDescription.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								Datamodels/SearchModels/SearchDescription.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Text; | ||||
|  | ||||
| namespace Datamodels.SearchModels | ||||
| { | ||||
|     public enum JoinTypes | ||||
|     { | ||||
|         And, | ||||
|         Or | ||||
|     } | ||||
|     public class SearchDescription | ||||
|     { | ||||
|         public string TableName { get; set; } | ||||
|         public SearchObject SearchData { get; set; } | ||||
|         public JoinTypes JoinType { get; set; } | ||||
|          | ||||
|     } | ||||
| } | ||||
							
								
								
									
										36
									
								
								Datamodels/SearchModels/SearchObject.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								Datamodels/SearchModels/SearchObject.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Text; | ||||
|  | ||||
| namespace Datamodels.SearchModels | ||||
| { | ||||
|     public enum SearchTypes | ||||
|     { | ||||
|         Phrase, | ||||
|         Range, | ||||
|         Terms | ||||
|     } | ||||
|  | ||||
|     public enum PhraseOperators | ||||
|     { | ||||
|         Equal, | ||||
|         NotEqual, | ||||
|         LowerThan, | ||||
|         LowerThanOrEqual, | ||||
|         GreaterThan, | ||||
|         GreaterThanOrEqual, | ||||
|         StartsWith, | ||||
|         Contains, | ||||
|         EndsWith | ||||
|     } | ||||
|  | ||||
|     public class SearchObject | ||||
|     { | ||||
|         public List<string> Values { get; set; } | ||||
|         public string FieldName { get; set; } | ||||
|         public SearchTypes SearchType { get; set; } | ||||
|         public PhraseOperators PhraseOperator { get; set; } | ||||
|  | ||||
|  | ||||
|     } | ||||
| } | ||||
							
								
								
									
										11
									
								
								Datamodels/SearchModels/TableModel.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Datamodels/SearchModels/TableModel.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Datamodels.SearchModels | ||||
| { | ||||
|     public sealed class TableModel | ||||
|     { | ||||
|         public string TableName { get; set; } | ||||
|         public List<FieldModel> Fields { get; set; } = new List<FieldModel>(); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user