Show / Hide Table of Contents

Class SearchQueryModel<TEntity, TPrimaryKey>

Inheritance
System.Object
SearchQueryModel<TEntity, TPrimaryKey>
SearchDataContentAssociationModel
SearchDataContentModel
SearchPostQueryModel
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mix.Lib.Models.Common
Assembly: mix.library.dll
Syntax
public class SearchQueryModel<TEntity, TPrimaryKey>

    where TEntity : EntityBase<TPrimaryKey> where TPrimaryKey : IComparable
Type Parameters
Name Description
TEntity
TPrimaryKey

Constructors

| Improve this Doc View Source

SearchQueryModel(Int32)

Declaration
public SearchQueryModel(int tenantId)
Parameters
Type Name Description
System.Int32 tenantId
| Improve this Doc View Source

SearchQueryModel(Int32, HttpRequest, Expression<Func<TEntity, Boolean>>, Expression<Func<TEntity, Boolean>>)

Declaration
public SearchQueryModel(int tenantId, HttpRequest request, Expression<Func<TEntity, bool>> andPredicate = null, Expression<Func<TEntity, bool>> orPredicate = null)
Parameters
Type Name Description
System.Int32 tenantId
Microsoft.AspNetCore.Http.HttpRequest request
System.Linq.Expressions.Expression<Func<TEntity, System.Boolean>> andPredicate
System.Linq.Expressions.Expression<Func<TEntity, System.Boolean>> orPredicate
| Improve this Doc View Source

SearchQueryModel(Int32, SearchRequestDto, HttpRequest, Expression<Func<TEntity, Boolean>>, Expression<Func<TEntity, Boolean>>)

Declaration
public SearchQueryModel(int tenantId, SearchRequestDto request, HttpRequest httpRequest, Expression<Func<TEntity, bool>> andPredicate = null, Expression<Func<TEntity, bool>> orPredicate = null)
Parameters
Type Name Description
System.Int32 tenantId
SearchRequestDto request
Microsoft.AspNetCore.Http.HttpRequest httpRequest
System.Linq.Expressions.Expression<Func<TEntity, System.Boolean>> andPredicate
System.Linq.Expressions.Expression<Func<TEntity, System.Boolean>> orPredicate

Properties

| Improve this Doc View Source

AndPredicate

Declaration
protected Expression<Func<TEntity, bool>> AndPredicate { get; set; }
Property Value
Type Description
System.Linq.Expressions.Expression<Func<TEntity, System.Boolean>>
| Improve this Doc View Source

Columns

Declaration
public string Columns { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Culture

Declaration
public string Culture { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

FromDate

Declaration
public DateTime? FromDate { get; set; }
Property Value
Type Description
System.Nullable<DateTime>
| Improve this Doc View Source

Keyword

Declaration
public string Keyword { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

MixTenantId

Declaration
public int MixTenantId { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

OrPredicate

Declaration
protected Expression<Func<TEntity, bool>> OrPredicate { get; set; }
Property Value
Type Description
System.Linq.Expressions.Expression<Func<TEntity, System.Boolean>>
| Improve this Doc View Source

PagingData

Declaration
public PagingRequestModel PagingData { get; set; }
Property Value
Type Description
PagingRequestModel
| Improve this Doc View Source

Predicate

Declaration
public Expression<Func<TEntity, bool>> Predicate { get; set; }
Property Value
Type Description
System.Linq.Expressions.Expression<Func<TEntity, System.Boolean>>
| Improve this Doc View Source

SearchColumns

Declaration
public string SearchColumns { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

SearchMethod

Declaration
public ExpressionMethod? SearchMethod { get; set; }
Property Value
Type Description
System.Nullable<ExpressionMethod>
| Improve this Doc View Source

Status

Declaration
public MixContentStatus? Status { get; set; }
Property Value
Type Description
System.Nullable<MixContentStatus>
| Improve this Doc View Source

ToDate

Declaration
public DateTime? ToDate { get; set; }
Property Value
Type Description
System.Nullable<DateTime>

Methods

| Improve this Doc View Source

BuildAndPredicate(SearchRequestDto, HttpRequest)

Declaration
protected virtual void BuildAndPredicate(SearchRequestDto req, HttpRequest request)
Parameters
Type Name Description
SearchRequestDto req
Microsoft.AspNetCore.Http.HttpRequest request
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾