-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from hasanmanzak/master
OrderByDynamic is modified to be able to handle inherited members...
- Loading branch information
Showing
14 changed files
with
776 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
|
||
namespace SieveUnitTests.Abstractions.Entity | ||
{ | ||
public interface IBaseEntity | ||
{ | ||
int Id { get; set; } | ||
DateTimeOffset DateCreated { get; set; } | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace SieveUnitTests.Abstractions.Entity | ||
{ | ||
public interface IComment: IBaseEntity | ||
{ | ||
string Text { get; set; } | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Sieve.Attributes; | ||
using SieveUnitTests.Entities; | ||
|
||
namespace SieveUnitTests.Abstractions.Entity | ||
{ | ||
public interface IPost: IBaseEntity | ||
{ | ||
[Sieve(CanFilter = true, CanSort = true)] | ||
string Title { get; set; } | ||
[Sieve(CanFilter = true, CanSort = true)] | ||
int LikeCount { get; set; } | ||
[Sieve(CanFilter = true, CanSort = true)] | ||
int CommentCount { get; set; } | ||
[Sieve(CanFilter = true, CanSort = true)] | ||
int? CategoryId { get; set; } | ||
[Sieve(CanFilter = true, CanSort = true)] | ||
bool IsDraft { get; set; } | ||
string ThisHasNoAttribute { get; set; } | ||
string ThisHasNoAttributeButIsAccessible { get; set; } | ||
int OnlySortableViaFluentApi { get; set; } | ||
Comment TopComment { get; set; } | ||
Comment FeaturedComment { get; set; } | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Sieve/Extensions/OrderByDynamic.cs