Created
January 28, 2013 21:20
-
-
Save sniffdk/4659154 to your computer and use it in GitHub Desktop.
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 interface IBaseItem | |
{ | |
int Id { get; set; } | |
string Name { get; set; } | |
} | |
public class ItemsIndex : AbstractIndexCreationTask<IBaseItem> | |
{ | |
public ItemsIndex() | |
{ | |
Map = items => from item in items | |
select new | |
{ | |
item.Id, | |
item.Name | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment