Currently the designer imports TVFs are imported separately from other functions - TVFs are imported to CSpace model when reverse engineering db while other functions are imported as part of post processing (in ModelObjectItemWizard). We should unified this and do all the work when reverse engineering and possibly remove the whole post processing we have.
Note: it is further complicated by what happens if you hit the Stop button on the ProgressDialog half-way through downloading (you’ll probably only be able to do this if you download a large # of sprocs/TVFs). At that stage we may need to delete some S-side Functions – see ModelBuilderEngine.ProcessStoredProcedureReturnTypeInformation().
When doing this work make sure to test canceling the ProgressDialog.
When doing this work consider fixing a in this area https://entityframework.codeplex.com/workitem/1480
Note: it is further complicated by what happens if you hit the Stop button on the ProgressDialog half-way through downloading (you’ll probably only be able to do this if you download a large # of sprocs/TVFs). At that stage we may need to delete some S-side Functions – see ModelBuilderEngine.ProcessStoredProcedureReturnTypeInformation().
When doing this work make sure to test canceling the ProgressDialog.
When doing this work consider fixing a in this area https://entityframework.codeplex.com/workitem/1480