I had to change the line in BuildEntities() from if (!reader.HasRows) return; to if (!reader.HasRows) continue; otherwise I only got stored proc scripts generated and not views. I think this was because I had no functions in the target database and the BuildEntities loop was being exited prematurely.