Table of Contents

Class CounterRepository

Namespace
InSite.Persistence.Plugin.NCSHA
Assembly
InSite.Persistence.dll
public static class CounterRepository
Inheritance
CounterRepository
Inherited Members

Methods

BindFirst<T>(Expression<Func<Counter, T>>, Expression<Func<Counter, bool>>, string, string)

public static T BindFirst<T>(Expression<Func<Counter, T>> binder, Expression<Func<Counter, bool>> filter, string modelSort = null, string entitySort = null)

Parameters

binder Expression<Func<Counter, T>>
filter Expression<Func<Counter, bool>>
modelSort string
entitySort string

Returns

T

Type Parameters

T

Bind<T>(Expression<Func<Counter, T>>, Expression<Func<Counter, bool>>, string, string)

public static IReadOnlyList<T> Bind<T>(Expression<Func<Counter, T>> binder, Expression<Func<Counter, bool>> filter, string modelSort = null, string entitySort = null)

Parameters

binder Expression<Func<Counter, T>>
filter Expression<Func<Counter, bool>>
modelSort string
entitySort string

Returns

IReadOnlyList<T>

Type Parameters

T

Count(Expression<Func<Counter, bool>>)

public static int Count(Expression<Func<Counter, bool>> filter)

Parameters

filter Expression<Func<Counter, bool>>

Returns

int

Distinct<T>(Expression<Func<Counter, T>>, Expression<Func<Counter, bool>>, string)

public static T[] Distinct<T>(Expression<Func<Counter, T>> binder, Expression<Func<Counter, bool>> filter = null, string modelSort = null)

Parameters

binder Expression<Func<Counter, T>>
filter Expression<Func<Counter, bool>>
modelSort string

Returns

T[]

Type Parameters

T

Exists(Expression<Func<Counter, bool>>)

public static bool Exists(Expression<Func<Counter, bool>> filter)

Parameters

filter Expression<Func<Counter, bool>>

Returns

bool

Refresh(IEnumerable<int>, IEnumerable<Field>)

public static int Refresh(IEnumerable<int> years, IEnumerable<Field> fields)

Parameters

years IEnumerable<int>
fields IEnumerable<Field>

Returns

int

Select(Expression<Func<Counter, bool>>, params Expression<Func<Counter, object>>[])

public static IReadOnlyList<Counter> Select(Expression<Func<Counter, bool>> filter, params Expression<Func<Counter, object>>[] includes)

Parameters

filter Expression<Func<Counter, bool>>
includes Expression<Func<Counter, object>>[]

Returns

IReadOnlyList<Counter>

Select(Expression<Func<Counter, bool>>, string, params Expression<Func<Counter, object>>[])

public static IReadOnlyList<Counter> Select(Expression<Func<Counter, bool>> filter, string sortExpression, params Expression<Func<Counter, object>>[] includes)

Parameters

filter Expression<Func<Counter, bool>>
sortExpression string
includes Expression<Func<Counter, object>>[]

Returns

IReadOnlyList<Counter>