subsonic / SubSonic-3.0-Templates

T4 Template Project for the peeps
http://subsonic.github.io/
105 stars 46 forks source link

Simple Repository calls to Update throw NullReferenceExceptions #29

Open TylerBrinks opened 15 years ago

TylerBrinks commented 15 years ago

I downloaded the SubSonic source. The problem is in the Update.cs class in the Query folder, line 229. I believe the following line

var col= table.Columns.SingleOrDefault(x => x.Name.Equals( s.ColumnName,...

should be changed to

var col = table.Columns.SingleOrDefault(x => x.QualifiedName.Equals(s.ColumnName,...

Cheers.