I am using SubSonic in my project. I need to selected rows filtered by some condition. I’m trying to use SqlQuery as follows:
SqlQuery q = new Select()
.From("TableName")
.Where(MyDALObject.Columns.Status)
.NotIn(new[] { 1, 8, 9, 22, 23});
IList<MyDALObject> list =
q.ExecuteTypedList<MyDALObject>();
but all the objects in list List are new. What is wrong?
Try this instead: