dy-sh / MyNodes.NET

Home automation controller (new version available at https://github.com/dy-sh/singlehub)
GNU General Public License v3.0
73 stars 23 forks source link

Cleaned up some code while figuring out how the system is built #15

Closed stefaanv closed 8 years ago

stefaanv commented 8 years ago

Hi, I'm trying to figure out how the system is built up in preparation of extracting an IGateway from Gateway. Did some (superficial) code cleaning in meantime. Stefaan

dy-sh commented 8 years ago

I get ArgumentNullException at MySensorsRepositoryEf>GetNodes() (line 94) while trying to connect to gateway.

dy-sh commented 8 years ago

I think it's because public IEnumerable Sensors => sensors.AsEnumerable(); (line 25 at Node.cs)

dy-sh commented 8 years ago

Probably, you did the refactoring, and now the EF accesses the IEnumerable instead of List. I wrote this code long ago and already have little guidance in it, could be wrong.