Class ContactSearch
- Namespace
- InSite.Persistence
- Assembly
- InSite.Persistence.dll
public class ContactSearch : IContactSearch
- Inheritance
-
ContactSearch
- Implements
-
- Inherited Members
-
Constructors
Methods
public T BindFirstPerson<T>(Expression<Func<VPerson, T>> binder, Expression<Func<VPerson, bool>> filter, string modelSort = null, string entitySort = null)
Parameters
binder Expression<Func<VPerson, T>>
filter Expression<Func<VPerson, bool>>
modelSort string
entitySort string
Returns
- T
Type Parameters
T
public T BindFirst<T>(Expression<Func<VUser, T>> binder, Expression<Func<VUser, bool>> filter, string modelSort = null, string entitySort = null)
Parameters
binder Expression<Func<VUser, T>>
filter Expression<Func<VUser, bool>>
modelSort string
entitySort string
Returns
- T
Type Parameters
T
public T[] BindPerson<T>(Expression<Func<VPerson, T>> binder, Expression<Func<VPerson, bool>> filter, Paging paging, string modelSort = null, string entitySort = null)
Parameters
binder Expression<Func<VPerson, T>>
filter Expression<Func<VPerson, bool>>
paging Paging
modelSort string
entitySort string
Returns
- T[]
Type Parameters
T
public T[] BindPerson<T>(Expression<Func<VPerson, T>> binder, Expression<Func<VPerson, bool>> filter, string modelSort = null, string entitySort = null)
Parameters
binder Expression<Func<VPerson, T>>
filter Expression<Func<VPerson, bool>>
modelSort string
entitySort string
Returns
- T[]
Type Parameters
T
public T[] Bind<T>(Expression<Func<VUser, T>> binder, QUserFilter filter)
Parameters
binder Expression<Func<VUser, T>>
filter QUserFilter
Returns
- T[]
Type Parameters
T
public T[] Bind<T>(Expression<Func<VUser, T>> binder, Expression<Func<VUser, bool>> filter, Paging paging, string modelSort = null, string entitySort = null)
Parameters
binder Expression<Func<VUser, T>>
filter Expression<Func<VUser, bool>>
paging Paging
modelSort string
entitySort string
Returns
- T[]
Type Parameters
T
public T[] Bind<T>(Expression<Func<VUser, T>> binder, Expression<Func<VUser, bool>> filter, string modelSort = null, string entitySort = null)
Parameters
binder Expression<Func<VUser, T>>
filter Expression<Func<VUser, bool>>
modelSort string
entitySort string
Returns
- T[]
Type Parameters
T
public int Count(QUserFilter filter)
Parameters
filter QUserFilter
Returns
- int
public VAddress GetAddress(Guid addressIdentifier)
Parameters
addressIdentifier Guid
Returns
- VAddress
public EmailAddress GetEmailAddress(Guid user, Guid organization)
Parameters
user Guid
organization Guid
Returns
- EmailAddress
public EmailAddress[] GetEmailAddresses(IEnumerable<Guid> users, Guid organization)
Parameters
users IEnumerable<Guid>
organization Guid
Returns
- EmailAddress[]
public VGroup GetGroup(Guid group)
Parameters
group Guid
Returns
- VGroup
public List<DateTimeOffset> GetHolidays()
Returns
- List<DateTimeOffset>
public List<VPerson> GetPeopleWithEmailEnabled()
Returns
- List<VPerson>
public VPerson GetPerson(Guid user, Guid organization)
Parameters
user Guid
organization Guid
Returns
- VPerson
public VPerson GetPerson(string email, Guid organization)
Parameters
email string
organization Guid
Returns
- VPerson
public VPerson GetPersonByCode(string code, Guid organization)
Parameters
code string
organization Guid
Returns
- VPerson
public string GetPersonLanguage(Guid user, Guid organization)
Parameters
user Guid
organization Guid
Returns
- string
public VPerson[] GetPersons(IEnumerable<Guid> users, Guid organization)
Parameters
users IEnumerable<Guid>
organization Guid
Returns
- VPerson[]
public VUser GetUser(Guid user)
Parameters
user Guid
Returns
- VUser