I have queries wich are generated for many pages with different classes by the custom builder. That's why I want to execute a query directly with any type. How can I do it in dotConnect for Oracle 9.13.1098.0?
For example, for query "select name, id from test"
I have to create the class
Code: Select all
public class TestName
{
public string name {get; set;}
public int id {get;set;}
}
Code: Select all
var query = db.Query<TestName>("select name, id from test")
How can I execute this query and obtain the result as IQuerable<object>?
Note that after using
Code: Select all
var query = db.Query<object>("select name, id from test")