摘要: public string GetRouteUrl(string routeName, string physicalFile, params object[] parames) { RouteBase routeBase = RouteTable.Routes[routeName]; // GetRouteData(new HttpContextWrapper(HttpContext.Current)); if (routeBase != null) { Route route = (Route)routeBase; string url = route.Url; MatchCollecti 阅读全文
posted @ 2011-03-21 17:04 凌鸢 阅读(293) 评论(0) 推荐(0)
摘要: MVC中生成web.config默认只添加了linq的程序集引用,如果使用entity framework(EF)做为MVC的ORM,则需要在webconfig中添加程序集引用:如:<assemblies> ...... <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Data.Linq, Version=3.5.0.0, Culture= 阅读全文
posted @ 2011-03-21 08:36 凌鸢 阅读(1074) 评论(0) 推荐(0)