开发者

Dispatching on the host header asp.net mvc

开发者 https://www.devze.com 2022-12-25 00:38 出处:网络
I开发者_如何学Go\'d like to implement Dispatching on the host header like stackexchange teamdid. Any ideas?This technique is simply taking in HttpContext.Current.Request.Urlor another request value an

I开发者_如何学Go'd like to implement Dispatching on the host header like stackexchange team did. Any ideas?


This technique is simply taking in HttpContext.Current.Request.Url or another request value and dynamically setting a connection string.

So a user requests horsesaresweet.com and connects to the horsesaresweet database.

Nothing fancy.

0

精彩评论

暂无评论...
验证码 换一张
取 消