Allowed configuring properties with identical name

This commit is contained in:
radeanurazvan
2019-02-03 18:10:34 +02:00
parent f97c0d3ff3
commit d5ed13e823
5 changed files with 90 additions and 10 deletions

View File

@@ -31,6 +31,14 @@ namespace SieveUnitTests.Services
mapper.Property<Post>(p => p.OnlySortableViaFluentApi)
.CanSort();
mapper.Property<Comment>(c => c.AuthorFirstName.Value)
.CanFilter()
.HasName("firstName");
mapper.Property<Comment>(c => c.AuthorLastName.Value)
.CanFilter()
.HasName("lastName");
return mapper;
}
}