forked from dotnet/AspNetCore.Docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to Razor Pages intro doc (dotnet#4262)
* Updates to Razor Pages intro doc * More updates * Remove @functions conversion reference * Remove all @functions references and code * Change code snippet type to cshtml
- Loading branch information
1 parent
a3a79df
commit d2f705f
Showing
32 changed files
with
74 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ public class Customer | |
[Required, StringLength(100)] | ||
public string Name { get; set; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
aspnetcore/mvc/razor-pages/index/sample/RazorPagesContacts/Pages/CreateCombined.cshtml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,4 @@ public async Task<IActionResult> OnPostAsync() | |
return RedirectToPage("/Index"); | ||
} | ||
} | ||
} | ||
} |
72 changes: 0 additions & 72 deletions
72
aspnetcore/mvc/razor-pages/index/sample/RazorPagesContacts/Pages/IndexCombined.cshtml
This file was deleted.
Oops, something went wrong.
14 changes: 6 additions & 8 deletions
14
aspnetcore/mvc/razor-pages/index/sample/RazorPagesContacts/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
#define Debug | ||
|
||
using Microsoft.AspNetCore; | ||
using Microsoft.AspNetCore.Hosting; | ||
using System.IO; | ||
|
||
namespace RazorPagesContacts | ||
{ | ||
public class Program | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
var host = new WebHostBuilder() | ||
.UseKestrel() | ||
.UseContentRoot(Directory.GetCurrentDirectory()) | ||
.UseIISIntegration() | ||
BuildWebHost(args).Run(); | ||
} | ||
|
||
public static IWebHost BuildWebHost(string[] args) => | ||
WebHost.CreateDefaultBuilder(args) | ||
#if Debug | ||
.UseStartup<StartupDebug>() | ||
#else | ||
.UseStartup<Startup>() | ||
#endif | ||
.Build(); | ||
|
||
host.Run(); | ||
} | ||
} | ||
} |
Oops, something went wrong.