/Raven.Tests/Bugs/TransformResults/ThorIndex.cs
C# | 17 lines | 16 code | 1 blank | 0 comment | 0 complexity | e77501defc7d697c0c2a3adb812283db MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, CC-BY-SA-3.0
- using System.Linq;
- using Raven.Client.Indexes;
-
- namespace Raven.Tests.Bugs.TransformResults
- {
- public class ThorIndex : AbstractIndexCreationTask<Thor>
- {
- public ThorIndex()
- {
- Map = thors => from doc in thors
- select new {doc.Name};
- TransformResults = (database, thors) =>
- from item in thors
- select new {Id = item.Id, item.Name};
- }
- }
- }