Class DepartmentSearch
- Namespace
- InSite.Persistence
- Assembly
- InSite.Persistence.dll
public static class DepartmentSearch
- Inheritance
-
DepartmentSearch
- Inherited Members
-
Methods
BindFirst<T>(Expression<Func<Department, T>>, Expression<Func<Department, bool>>, string, string)
public static T BindFirst<T>(Expression<Func<Department, T>> binder, Expression<Func<Department, bool>> filter, string modelSort = null, string entitySort = null)
Parameters
binder Expression<Func<Department, T>>
filter Expression<Func<Department, bool>>
modelSort string
entitySort string
Returns
- T
Type Parameters
T
Bind<T>(Expression<Func<Department, T>>, DepartmentFilter)
public static T[] Bind<T>(Expression<Func<Department, T>> binder, DepartmentFilter filter)
Parameters
binder Expression<Func<Department, T>>
filter DepartmentFilter
Returns
- T[]
Type Parameters
T
Bind<T>(Expression<Func<Department, T>>, Expression<Func<Department, bool>>)
public static T[] Bind<T>(Expression<Func<Department, T>> binder, Expression<Func<Department, bool>> filter)
Parameters
binder Expression<Func<Department, T>>
filter Expression<Func<Department, bool>>
Returns
- T[]
Type Parameters
T
Bind<T>(Expression<Func<Department, T>>, Expression<Func<Department, bool>>, Paging, string, string)
public static T[] Bind<T>(Expression<Func<Department, T>> binder, Expression<Func<Department, bool>> filter, Paging paging, string modelSort = null, string entitySort = null)
Parameters
binder Expression<Func<Department, T>>
filter Expression<Func<Department, bool>>
paging Paging
modelSort string
entitySort string
Returns
- T[]
Type Parameters
T
Bind<T>(Expression<Func<Department, T>>, Expression<Func<Department, bool>>, string, string)
public static T[] Bind<T>(Expression<Func<Department, T>> binder, Expression<Func<Department, bool>> filter, string modelSort = null, string entitySort = null)
Parameters
binder Expression<Func<Department, T>>
filter Expression<Func<Department, bool>>
modelSort string
entitySort string
Returns
- T[]
Type Parameters
T
Count(DepartmentFilter)
public static int Count(DepartmentFilter filter = null)
Parameters
filter DepartmentFilter
Returns
- int
Count(Expression<Func<Department, bool>>)
public static int Count(Expression<Func<Department, bool>> filter)
Parameters
filter Expression<Func<Department, bool>>
Returns
- int
Exists(Guid)
public static bool Exists(Guid department)
Parameters
department Guid
Returns
- bool
Exists(Expression<Func<Department, bool>>)
public static bool Exists(Expression<Func<Department, bool>> filter)
Parameters
filter Expression<Func<Department, bool>>
Returns
- bool
Select(Guid)
public static Department Select(Guid department)
Parameters
department Guid
Returns
- Department
Select(Guid, params Expression<Func<Department, object>>[])
public static Department Select(Guid department, params Expression<Func<Department, object>>[] includes)
Parameters
department Guid
includes Expression<Func<Department, object>>[]
Returns
- Department
Select(string, Guid, string)
public static Department Select(string departmentName, Guid organizationId, string subtype = null)
Parameters
departmentName string
organizationId Guid
subtype string
Returns
- Department
SelectAll(Expression<Func<Department, bool>>, params Expression<Func<Department, object>>[])
public static Department[] SelectAll(Expression<Func<Department, bool>> filter, params Expression<Func<Department, object>>[] includes)
Parameters
filter Expression<Func<Department, bool>>
includes Expression<Func<Department, object>>[]
Returns
- Department[]
SelectCompanyDepartments(Guid, Guid?)
public static List<CompanyDepartment> SelectCompanyDepartments(Guid organizationId, Guid? excludeId = null)
Parameters
organizationId Guid
excludeId Guid?
Returns
- List<CompanyDepartment>
SelectDepartmentLabels(Guid)
public static List<string> SelectDepartmentLabels(Guid organizationId)
Parameters
organizationId Guid
Returns
- List<string>
SelectFirst(Expression<Func<Department, bool>>, params Expression<Func<Department, object>>[])
public static Department SelectFirst(Expression<Func<Department, bool>> filter, params Expression<Func<Department, object>>[] includes)
Parameters
filter Expression<Func<Department, bool>>
includes Expression<Func<Department, object>>[]
Returns
- Department