I have the following error message:
\'System.Collections.Generic.Dictionary\' does not
contain a definition for \'biff\' and no extensi
The problem is this part: cart.biff. cart is of type Dictionary, not of type SpoofClass.
I can only guess what you are trying to do, but the following code compiles:
Dictionary cart = new Dictionary();
int i=0;
foreach (var item in dbContext.DBView)
{
cart.Add(i, new SpoofClass { biff = item.biff });
++i;
}