();//ĬSqlServer ݿ
+ });
+ });
+ }
+
+ // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
+ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
+ {
+ if (env.IsDevelopment())
+ {
+ app.UseDeveloperExceptionPage();
+ }
+ else
+ {
+ app.UseExceptionHandler("/Home/Error");
+ // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
+ app.UseHsts();
+ }
+ app.UseHttpsRedirection();
+ //app.UseStaticFiles();
+
+ app.UseRouting();
+
+ app.UseAuthorization();
+
+ //app.UseApp(options =>
+ //{
+ // options.UseSpecificationDocuments();
+ //});
+
+ app.UseEndpoints(endpoints =>
+ {
+ endpoints.MapRazorPages();
+ endpoints.MapAreaControllerRoute(
+ name: "areas", "areas",
+ pattern: "{area:exists}/{controller=Home}/{action=Index}/{id?}");
+ endpoints.MapControllerRoute(
+ name: "default",
+ pattern: "{controller=Home}/{action=Index}/{id?}");
+ });
+ }
+ }
+}
diff --git a/framework/Fur.Web.MvcSample/Views/Home/Index.cshtml b/framework/Fur.Web.MvcSample/Views/Home/Index.cshtml
new file mode 100644
index 0000000000000000000000000000000000000000..69b9104dc88614240549e96a4a949075952094b0
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/Views/Home/Index.cshtml
@@ -0,0 +1,15 @@
+@{
+ ViewData["Title"] = "Home Page";
+}
+
+
+
+
+
+ Mvc/Home
+
+
+ 查询到数据条数:@(ViewBag.County)
+
\ No newline at end of file
diff --git a/framework/Fur.Web.MvcSample/Views/Home/Privacy.cshtml b/framework/Fur.Web.MvcSample/Views/Home/Privacy.cshtml
new file mode 100644
index 0000000000000000000000000000000000000000..af4fb195a3c9183e1a1944162e20f06c8eccce89
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/Views/Home/Privacy.cshtml
@@ -0,0 +1,6 @@
+@{
+ ViewData["Title"] = "Privacy Policy";
+}
+@ViewData["Title"]
+
+Use this page to detail your site's privacy policy.
diff --git a/framework/Fur.Web.MvcSample/Views/Shared/Error.cshtml b/framework/Fur.Web.MvcSample/Views/Shared/Error.cshtml
new file mode 100644
index 0000000000000000000000000000000000000000..9b14f37f625e2d1bee2fd71cd6ed2e2a91bc8a1f
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/Views/Shared/Error.cshtml
@@ -0,0 +1,25 @@
+@model Fur.Web.MvcSample.Models.ErrorViewModel
+@{
+ ViewData["Title"] = "Error";
+}
+
+Error.
+An error occurred while processing your request.
+
+@if (Model.ShowRequestId)
+{
+
+ Request ID: @Model.RequestId
+
+}
+
+Development Mode
+
+ Swapping to Development environment will display more detailed information about the error that occurred.
+
+
+ The Development environment shouldn't be enabled for deployed applications.
+ It can result in displaying sensitive information from exceptions to end users.
+ For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
+ and restarting the app.
+
diff --git a/framework/Fur.Web.MvcSample/Views/Shared/_Layout.cshtml b/framework/Fur.Web.MvcSample/Views/Shared/_Layout.cshtml
new file mode 100644
index 0000000000000000000000000000000000000000..3c25d93a57e06d59ea28a0bae4017db8852ede3f
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/Views/Shared/_Layout.cshtml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ @ViewBag.Title
+
+
+
+ @RenderBody()
+
+
+
diff --git a/framework/Fur.Web.MvcSample/Views/Shared/_ValidationScriptsPartial.cshtml b/framework/Fur.Web.MvcSample/Views/Shared/_ValidationScriptsPartial.cshtml
new file mode 100644
index 0000000000000000000000000000000000000000..5a16d80a9aa78592ddc961b1d48b549024a3dbbf
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/Views/Shared/_ValidationScriptsPartial.cshtml
@@ -0,0 +1,2 @@
+
+
diff --git a/framework/Fur.Web.MvcSample/Views/Test/Index.cshtml b/framework/Fur.Web.MvcSample/Views/Test/Index.cshtml
new file mode 100644
index 0000000000000000000000000000000000000000..798ebd8155bfdb6ea18cbd3422a2da2f2eff1f63
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/Views/Test/Index.cshtml
@@ -0,0 +1,6 @@
+@*
+ For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
+*@
+@{
+}
+sdfasdfasd
\ No newline at end of file
diff --git a/framework/Fur.Web.MvcSample/Views/_ViewImports.cshtml b/framework/Fur.Web.MvcSample/Views/_ViewImports.cshtml
new file mode 100644
index 0000000000000000000000000000000000000000..64c3808dab917f81fa39232e1f0d6f31652c25ff
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/Views/_ViewImports.cshtml
@@ -0,0 +1,2 @@
+@using Fur.Web.MvcSample
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
diff --git a/framework/Fur.Web.MvcSample/Views/_ViewStart.cshtml b/framework/Fur.Web.MvcSample/Views/_ViewStart.cshtml
new file mode 100644
index 0000000000000000000000000000000000000000..a5f10045db97461e9565c3273fdb9252687aa4f1
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/Views/_ViewStart.cshtml
@@ -0,0 +1,3 @@
+@{
+ Layout = "_Layout";
+}
diff --git a/framework/Fur.Web.MvcSample/appsettings.Development.json b/framework/Fur.Web.MvcSample/appsettings.Development.json
new file mode 100644
index 0000000000000000000000000000000000000000..8983e0fc1c5e2795ccfde0c771c6d66c88ef4a42
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/appsettings.Development.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft": "Warning",
+ "Microsoft.Hosting.Lifetime": "Information"
+ }
+ }
+}
diff --git a/framework/Fur.Web.MvcSample/appsettings.json b/framework/Fur.Web.MvcSample/appsettings.json
new file mode 100644
index 0000000000000000000000000000000000000000..9d41b345261de1e52ef6e9e1e74dfa89a7aee09c
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/appsettings.json
@@ -0,0 +1,18 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft": "Warning",
+ "Microsoft.Hosting.Lifetime": "Information",
+ "Microsoft.EntityFrameworkCore": "Information"
+ }
+ },
+ "AllowedHosts": "*",
+ "ConnectionStrings": {
+ "DbConnectionString": "Server=localhost;Database=Fur;User=sa;Password=000000;MultipleActiveResultSets=True;",
+ "Sqlite3ConnectionString": "Data Source=./Fur.db"
+ },
+ "AppSettings": {
+
+ }
+}
\ No newline at end of file
diff --git a/framework/Fur.Web.MvcSample/wwwroot/css/site.css b/framework/Fur.Web.MvcSample/wwwroot/css/site.css
new file mode 100644
index 0000000000000000000000000000000000000000..e679a8ea7fb5aa818c3d3544896b178a2e149578
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/wwwroot/css/site.css
@@ -0,0 +1,71 @@
+/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
+for details on configuring this project to bundle and minify static web assets. */
+
+a.navbar-brand {
+ white-space: normal;
+ text-align: center;
+ word-break: break-all;
+}
+
+/* Provide sufficient contrast against white background */
+a {
+ color: #0366d6;
+}
+
+.btn-primary {
+ color: #fff;
+ background-color: #1b6ec2;
+ border-color: #1861ac;
+}
+
+.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
+ color: #fff;
+ background-color: #1b6ec2;
+ border-color: #1861ac;
+}
+
+/* Sticky footer styles
+-------------------------------------------------- */
+html {
+ font-size: 14px;
+}
+@media (min-width: 768px) {
+ html {
+ font-size: 16px;
+ }
+}
+
+.border-top {
+ border-top: 1px solid #e5e5e5;
+}
+.border-bottom {
+ border-bottom: 1px solid #e5e5e5;
+}
+
+.box-shadow {
+ box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
+}
+
+button.accept-policy {
+ font-size: 1rem;
+ line-height: inherit;
+}
+
+/* Sticky footer styles
+-------------------------------------------------- */
+html {
+ position: relative;
+ min-height: 100%;
+}
+
+body {
+ /* Margin bottom by footer height */
+ margin-bottom: 60px;
+}
+.footer {
+ position: absolute;
+ bottom: 0;
+ width: 100%;
+ white-space: nowrap;
+ line-height: 60px; /* Vertically center the text there */
+}
diff --git a/framework/Fur.Web.MvcSample/wwwroot/favicon.ico b/framework/Fur.Web.MvcSample/wwwroot/favicon.ico
new file mode 100644
index 0000000000000000000000000000000000000000..63e859b476eff5055e0e557aaa151ca8223fbeef
Binary files /dev/null and b/framework/Fur.Web.MvcSample/wwwroot/favicon.ico differ
diff --git a/framework/Fur.Web.MvcSample/wwwroot/js/site.js b/framework/Fur.Web.MvcSample/wwwroot/js/site.js
new file mode 100644
index 0000000000000000000000000000000000000000..ac49c18641810b586571be0cad32a36f6e7141b9
--- /dev/null
+++ b/framework/Fur.Web.MvcSample/wwwroot/js/site.js
@@ -0,0 +1,4 @@
+// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
+// for details on configuring this project to bundle and minify static web assets.
+
+// Write your JavaScript code.
diff --git a/framework/Fur.sln b/framework/Fur.sln
index a9b318396d8d5e097badcb43f7d4efcb02dab7a9..ca79d0a0ada05ab4cb6b8cb9d81acdcf14814a5a 100644
--- a/framework/Fur.sln
+++ b/framework/Fur.sln
@@ -26,6 +26,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
EndProjectSection
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fur.Web.MvcSample", "Fur.Web.MvcSample\Fur.Web.MvcSample.csproj", "{97EB4788-84A9-4F62-AD12-0D641ACF7BF3}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -60,6 +62,10 @@ Global
{F31BF6DE-6357-43D6-811A-9B15EF5A9D9C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F31BF6DE-6357-43D6-811A-9B15EF5A9D9C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F31BF6DE-6357-43D6-811A-9B15EF5A9D9C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {97EB4788-84A9-4F62-AD12-0D641ACF7BF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {97EB4788-84A9-4F62-AD12-0D641ACF7BF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {97EB4788-84A9-4F62-AD12-0D641ACF7BF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {97EB4788-84A9-4F62-AD12-0D641ACF7BF3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE