Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. public class Log
  2. {
  3. public int Id { get; set; }
  4. public string Action { get; set; }
  5. public string Message { get; set; }
  6. }
  7.  
  8. public class LogIndex : AbstractIndexCreationTask<Log>
  9. {
  10. public LogIndex()
  11. {
  12. Map = xs => from x in xs
  13. select new
  14. {
  15. x.Id,
  16. x.Action,
  17. x.Message
  18. };
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement