Files
mixtape/zero.Api/Modules/Search/SearchOptions.cs
T
2021-11-29 18:25:50 +01:00

13 lines
288 B
C#

namespace zero.Api.Modules.Search;
public class SearchOptions : List<SearchIndexMap>
{
public bool Enabled { get; set; }
public SearchIndexMap<T> Map<T>(string icon = null) where T : ZeroEntity, new()
{
SearchIndexMap<T> map = new(icon);
Add(map);
return map;
}
}