c# - MVC Single Use Controller -


i have 'setup' view , associated controller use configure database , web.config of mvc site after cloning site source control.

once it's been run once, want prevent code in 'setup' controller method ever being run again.

would programmatically deleting 'setup' view @ end of 'setup' controller method suffice, or there better approach?

or there better approach?

yes, in setup controller action check if database created , if don't run code, return error or whatever.

basically code run if whatever code doing not yet done determine programatically.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -