When i use this function i get error:-
The data reader is incompatible with the specified 'SEOAnalysisModel.EntityFramework'. A member of the type, 'Year', does not have a corresponding column in the data reader with the same name.
public void SelectValue()
{
using (MyConnection ctx = new MyConnection())
{
var parameter = new SqlParameter
{
DbType = DbType.Int32,
ParameterName = "Year",
Value = 2005
};
var result = ctx.EntityFrameworks.SqlQuery("select_value @Year", parameter).ToList();
Response.Write(result);
// Assert.AreEqual(1, result.Id);
}
}