using System;
namespace CQRS_Simple.Infrastructure
{
///
/// A result object with the generated sql and dynamic params.
///
public class QueryResult
{
///
/// The _result
///
private readonly Tuple _result;
///
/// Gets the SQL.
///
///
/// The SQL.
///
public string Sql
{
get
{
return _result.Item1;
}
}
///
/// Gets the param.
///
///
/// The param.
///
public dynamic Param
{
get
{
return _result.Item2;
}
}
///
/// Initializes a new instance of the class.
///
/// The SQL.
/// The param.
public QueryResult(string sql, dynamic param)
{
_result = new Tuple(sql, param);
}
}
}