Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View scripts not being generated if no functions present in target database #7

Open
nzduck opened this issue Jun 18, 2012 · 1 comment

Comments

@nzduck
Copy link

nzduck commented Jun 18, 2012

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.

@sliekens
Copy link
Contributor

This issue still exists.

The problem is this line:

if (!reader.HasRows) return;

The return statement causes the program to exit early. Suppose that a database does not contain any stored procedures. PoweruP will not generate any scripts, even if the database contains other scriptable objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants