Skip to content

Instantly share code, notes, and snippets.

@sniffdk
Created January 28, 2013 21:20
Show Gist options
  • Save sniffdk/4659154 to your computer and use it in GitHub Desktop.
Save sniffdk/4659154 to your computer and use it in GitHub Desktop.
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