Self Servicing
.NET 3.5
SQL Server 2008
I have a table MyTable and I have following code. I expect that query will only fetch Column1 and Column2 but for some reason its pulling back several other columns. Any ideas what I may be doing wrong here?
MyTableCollection Collection = new MyTableCollection();
ExcludeIncludeFieldsList fields = new ExcludeIncludeFieldsList(false);
fields.Add(MyTableFields.Column1);
fields.Add(MyTableFields.Column2);
Collection.GetMulti(new PredicateExpression(MyTableFields.ID == SomeId ), fields, null);