Files
mixtape/zero.Core/Search/ZeroSearchOptions.cs
T
2022-02-04 15:59:35 +01:00

13 lines
280 B
C#

namespace zero.Search;
public class ZeroSearchOptions : 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;
}
}