我已经找到了答案但是找不到适合我情况的任何东西.
当我在本地运行它时,该站点工作正常,但是当我将它发布到Azure后,如果我尝试使用访问数据库的页面,它会给我以下错误页面:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Unable to find the requested .Net Framework Data Provider. It may not be installed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
Source Error:
An unhandled exception was generated during the execution …Run Code Online (Sandbox Code Playgroud) 我试图这样做,当用户输入一个值并提交它时,它存储的每个单词的首字母大写,其余的小写.我想为model.Name做:
@Html.EditorFor(model => model.Name)
Run Code Online (Sandbox Code Playgroud)
我发现这个整洁的功能可以做我想要的,但我不能为我的生活弄清楚如何将两者结合起来:
s = System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(s.toLower());
Run Code Online (Sandbox Code Playgroud)
我会非常感谢任何帮助,我一直在努力解决这个问题.
我遇到了一个非常困难的排序问题,我想知道是否有人可以帮我解决这个问题.基本上我有一个充满以下信息的SQL表:
ID (The comment's Unique Identifier)
Previous ID (The ID of the comment that is being replied to with this comment)
Position (The position of how "deep" the comment is, a post directly on a
page would be "1" a reply to that "2", etc.
Run Code Online (Sandbox Code Playgroud)
是否可以使用此信息对C#/ LINQ进行排序,使其在调用时以正确的顺序返回?
一个例子可能如下:
ID | Position | PreviousID | Message|
1 | 1 | 0 | Hello
2 | 1 | 0 | How
3 | 2 | 1 | There!
4 | 2 | …Run Code Online (Sandbox Code Playgroud)