passing DB Connection object to methods

前端 未结 9 1697
抹茶落季
抹茶落季 2020-12-25 13:29

Was wondering if it is recomended to pass a database connection object around(to other modules) or let the method (in the other module) take care of setting it up. I am lea

9条回答
  •  孤城傲影
    2020-12-25 14:18

    I would use the web.config

    
        
            
            
        
    
    

    Then you can reference it from anywhere in the application

提交回复
热议问题