2022-02-04 15:59:35 +01:00
|
|
|
namespace zero.Search;
|
2021-11-22 14:29:22 +01:00
|
|
|
|
2022-02-04 15:59:35 +01:00
|
|
|
public class ZeroSearchOptions : List<SearchIndexMap>
|
2021-11-22 14:29:22 +01:00
|
|
|
{
|
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
|
|
|
|
|
|
public SearchIndexMap<T> Map<T>(string icon = null) where T : ZeroEntity, new()
|
|
|
|
|
{
|
|
|
|
|
SearchIndexMap<T> map = new(icon);
|
2021-11-27 16:33:05 +01:00
|
|
|
Add(map);
|
2021-11-22 14:29:22 +01:00
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
}
|