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
using System; | |
using System.Diagnostics.Contracts; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
public class DynamicPropertyAccessor<TObject, TProperty> | |
{ | |
public string Name { get; private set; } | |
public Type PropertyType { get; private 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
IF OBJECT_ID('Articles', 'U') IS NOT NULL DROP TABLE Articles | |
IF OBJECT_ID('Authors', 'U') IS NOT NULL DROP TABLE Authors | |
CREATE TABLE Authors | |
( | |
ID INT NOT NULL IDENTITY, | |
Name NVARCHAR(100) NOT NULL, | |
CONSTRAINT PK_Authors PRIMARY KEY CLUSTERED (ID) | |
) |
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
SELECT | |
[Project4].[ID] AS [ID], | |
[Project4].[C1] AS [C1], | |
[Project4].[AuthorID] AS [AuthorID], | |
[Project4].[Title] AS [Title], | |
[Project4].[Revision] AS [Revision], | |
[Project4].[CreatedUTC] AS [CreatedUTC], | |
[Project4].[Body] AS [Body] | |
FROM ( SELECT | |
[Filter1].[ID] AS [ID], |
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
SELECT | |
[Project4].[ID] AS [ID], | |
[Project4].[C2] AS [C1], | |
[Project4].[Title] AS [Title], | |
[Project4].[C1] AS [C2], | |
[Project4].[AuthorID] AS [AuthorID], | |
[Project4].[Title1] AS [Title1], | |
[Project4].[Revision] AS [Revision], | |
[Project4].[CreatedUTC] AS [CreatedUTC], | |
[Project4].[Body] AS [Body] |
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
// OUTPUT: | |
// | |
// QueueTask() was called for task = 403 | |
// TryExecuteTaskInline() was called for task = 403 | |
// | |
// === Non - completed task block START === | |
// TryExecuteTaskInline() was called for task = 412 | |
// QueueTask() was called for task = 412 | |
// === Non - completed task block END === | |
// |
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
REDIRECTS: ON | |
COPY-CONTENT-TO-OUTPUT-DIR: ALWAYS | |
CONTENT: ONCE | |
RESTRICTION: == net451 | |
NUGET | |
remote: https://www.nuget.org/api/v2 | |
Castle.Core (4.2.1) | |
DataAnnotationsValidator (2.1) | |
FluentAssertions (5.0) | |
System.ValueTuple (>= 4.3) |