Click or drag to resize
ITop100ForCompanyAndProvider<T>.GetTop100 Method

[This is preliminary documentation and is subject to change.]

Retrieves the first 100 matches of the search string. For each string, a maximum of 100 ids are returned. Please see the interface for the manager for documentation on supported properties and additional information

Namespace: Netadmin.Management.Common.Core
Assembly: Netadmin.Management.Interfaces (in Netadmin.Management.Interfaces.dll) Version: release/9.0@131b654fe7332b0776120c2b44d96c6cac5ac9a2
Syntax
IReadOnlyDictionary<string, IEnumerable<long>> GetTop100(
	Expression<Func<T, string>> property,
	string rawSearchString,
	IEnumerable<long> companyIds,
	Nullable<long> providerId
)

Parameters

property
Type: System.Linq.Expressions.Expression<Func<T, String>>
An expression starting with T and ending in a string. Example dto => dto.Name
rawSearchString
Type: System.String
The string for which to get matches
companyIds
Type: System.Collections.Generic.IEnumerable<Int64>
Optionally an set of company ids to match
providerId
Type: System.Nullable<Int64>
Optionally a service provider Id to match

Return Value

Type: IReadOnlyDictionary<String, IEnumerable<Int64>>
A case-insensitive dictionary with the result as key and its ids as value
Remarks
Note that if the dictionary value contains 100 entries, there is no guarantee that the id list contains all matches
See Also