Permalink
Browse files

Little clarification in a comment.

And remove duplicated using statement.
  • Loading branch information...
1 parent 577af71 commit 50cac9b33e4a6d39a935b1e62b84461cf5b659de @andresmoschini committed Aug 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/CommonJobs/CommonJobs.Mvc.UI/Controllers/EmployeesController.cs
@@ -13,7 +13,6 @@
using CommonJobs.Infrastructure.AttachmentStorage;
using CommonJobs.Infrastructure.EmployeeSearching;
using NLog;
-using CommonJobs.Utilities;
namespace CommonJobs.Mvc.UI.Controllers
{
@@ -32,6 +31,8 @@ public ViewResult Index(EmployeeSearchParameters searchParameters)
* .Where(x => x.RelatedEntityType == typeof(Employee))
* porque Newtonsoft Json serializa el tipo con el nombre largo ("CommonJobs.Domain.Employee, CommonJobs.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")
* y RavenDB busca por el corto (CommonJobs.Domain.Employee)
+ *
+ * Otra opción sería buscar por prefijo del id (http://mattwarren.org/2012/07/12/fun-with-ravendb-documents-keys/)
* */
//TODO refactor it as Query
var slotsToShow = RavenSession.Query<AttachmentSlot>().Where(x => x.RelatedEntityTypeName == typeof(Employee).Name).ToList();

0 comments on commit 50cac9b

Please sign in to comment.