17 lines
358 B
C#
17 lines
358 B
C#
using Raven.Client.Documents.Indexes;
|
|
|
|
namespace zero.Backoffice.Modules;
|
|
|
|
public class zero_Backoffice_Countries_Listing : ZeroIndex<Country>
|
|
{
|
|
protected override void Create()
|
|
{
|
|
Map = items => items.Select(item => new
|
|
{
|
|
Name = item.Name,
|
|
IsPreferred = item.IsPreferred
|
|
});
|
|
|
|
Index(x => x.Name, FieldIndexing.Search);
|
|
}
|
|
} |