This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class HousesMinMaxIndex : AbstractIndexCreationTask<House, HousesMinMaxIndex.Result> | |
| { | |
| public HousesMinMaxIndex() | |
| { | |
| Map = houses => from house in houses | |
| select new | |
| { | |
| HouseType = house.HouseType, | |
| MinPrice = house.Price, | |
| MaxPrice = house.Price, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x.For<IDocumentStore>().Singleton().Use(context => | |
| { | |
| var documentStore = new DocumentStore | |
| { | |
| ConnectionStringName = "RavenDB", | |
| Conventions = { IdentityPartsSeparator = "-" } | |
| }.Initialize(); | |
| IndexCreation.CreateIndexes(typeof(HousesMinMaxIndex).Assembly, documentStore); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class HousesIndex : AbstractIndexCreationTask<House> | |
| { | |
| public HousesIndex() | |
| { | |
| Map = houses => from house in houses | |
| select new | |
| { | |
| house.HouseType, | |
| house.Name, | |
| house.Description, |
NewerOlder