Entity Framework NullReferenceException calling ToList?
问题 I'm very new to WPF and the EF, and I'm trying to display some data from a table in a datagrid. I've got the entity model pulled from an existing database and simple operations seem to work (getting row counts, using 'first'). I'm running against Firebird 2.5.0 using the 2.0.5 DDEX provider and 2.5.2 ADO NETProvider. When I try to get the data into the grid or simply into a list, I get a null reference exception. Possibly I just don't understand how to use the entity framework, but the