This file contains hidden or 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
public class FetchUserByEmailQuery : IQuery<User> | |
{ | |
private readonly string email; | |
public FetchUserByEmailQuery(string email) | |
{ | |
this.email = email; | |
} | |
public async Task<User> ExecuteAsync(IDbConnection db) |
This file contains hidden or 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.Data; | |
namespace CommandQuery | |
{ | |
public interface ICommand | |
{ | |
Task ExecuteAsync(IDbConnection db); | |
} | |
public interface IQuery<T> |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |