Extensions for data query
SearchFramework
01 Syntax
Microsoft.VisualBasic.ComponentModel.DataSourceModel.Repository.SearchFramework
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| UniqueNames | 1 | A general method for make the tuple name unique |
| MakeUniqueNames | 1 | update and set the unique names to the index collection |
| UniqueNames | 2 | |
| MultipleQuery | 1 | |
| Query | 1 | |
| GetUniqueNames | 1 | |
| MakeUniqueNames | 1 |
03 Members
UniqueNames``1(
IEnumerable(Of NamedValue(Of ``0)), String())A general method for make the tuple name unique
Remarks
the name is uniqued via the SearchFramework.UniqueNames() method via add numeric suffix to the name key string.
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
list | IEnumerable(Of NamedValue(Of ``0)) | - |
duplicated | String() | - |
MakeUniqueNames``1(
IEnumerable(Of ``0), String())update and set the unique names to the index collection
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
list | IEnumerable(Of ``0) | - |
duplicated | String() | - |
UniqueNames(
IEnumerable(Of String), String(), String)makes the name string unique by adding an additional numeric suffix
Remarks
this function will erase the duplicated at first and then make value assigned.
Parameters
| Name | Type | Description |
|---|---|---|
names | IEnumerable(Of String) | - |
duplicated | String() | get the duplicated names |
Returns
this function is a safe function, it will returns an empty string collection if the given names is nothing. this function returns a string array with the same size equals to the input string collection with duplicated values renamed with numeric counter suffix
MultipleQuery(
IEnumerable(Of T), IEnumerable(Of NamedValue(Of Term())), Func(Of T, Term, Boolean))Query(
IEnumerable(Of T), IEnumerable(Of Term), Func(Of T, Term, Boolean))UniqueNames(
IEnumerable(Of NamedValue(Of T)), String())GetUniqueNames(
IEnumerable(Of T), String())MakeUniqueNames(
IEnumerable(Of T), String())