The compiler generates code like: Position.AttributeName = @"<#Positions#>"; but that property does not exist on the object.