From 89a5853f738a13141b6c27587eab2e771c07a997 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E4=BD=B3=E8=B1=AA?=
<14091802+too-much-dialogue@user.noreply.gitee.com>
Date: Tue, 10 Dec 2024 20:59:49 +0800
Subject: [PATCH 1/3] =?UTF-8?q?Linq=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Blogs/Blogs.csproj" | 9 +
.../Blogs/Controllers/HomeController.cs" | 31 +
.../Blogs/Controllers/LinqController.cs" | 216 +
.../Blogs/Models/ErrorViewModel.cs" | 8 +
.../Blogs/Models/Student.cs" | 12 +
.../Blogs/Program.cs" | 27 +
.../Blogs/Properties/launchSettings.json" | 38 +
.../Blogs/Views/Home/Index.cshtml" | 5 +
.../Blogs/Views/Home/Privacy.cshtml" | 6 +
.../Blogs/Views/Linq/Eight.cshtml" | 0
.../Blogs/Views/Linq/Eleven.cshtml" | 0
.../Blogs/Views/Linq/Fifteen.cshtml" | 0
.../Blogs/Views/Linq/Five.cshtml" | 0
.../Blogs/Views/Linq/Four.cshtml" | 0
.../Blogs/Views/Linq/Fourteen.cshtml" | 0
.../Blogs/Views/Linq/Nine.cshtml" | 0
.../Blogs/Views/Linq/One.cshtml" | 0
.../Blogs/Views/Linq/Six.cshtml" | 0
.../Blogs/Views/Linq/Ten.cshtml" | 0
.../Blogs/Views/Linq/Thirteen.cshtml" | 0
.../Blogs/Views/Linq/Three.cshtml" | 0
.../Blogs/Views/Linq/Twelve.cshtml" | 0
.../Blogs/Views/Linq/Two.cshtml" | 0
.../Blogs/Views/Shared/Error.cshtml" | 25 +
.../Blogs/Views/Shared/_Layout.cshtml" | 49 +
.../Blogs/Views/Shared/_Layout.cshtml.css" | 48 +
.../Shared/_ValidationScriptsPartial.cshtml" | 2 +
.../Blogs/Views/_ViewImports.cshtml" | 3 +
.../Blogs/Views/_ViewStart.cshtml" | 3 +
.../Blogs/appsettings.Development.json" | 8 +
.../Blogs/appsettings.json" | 9 +
.../Blogs/bin/Debug/net8.0/Blogs.deps.json" | 23 +
.../Blogs/bin/Debug/net8.0/Blogs.dll" | Bin 0 -> 75776 bytes
.../Blogs/bin/Debug/net8.0/Blogs.exe" | Bin 0 -> 142848 bytes
.../Blogs/bin/Debug/net8.0/Blogs.pdb" | Bin 0 -> 51892 bytes
.../Debug/net8.0/Blogs.runtimeconfig.json" | 19 +
.../Blogs.staticwebassets.runtime.json" | 1 +
.../net8.0/appsettings.Development.json" | 8 +
.../Blogs/bin/Debug/net8.0/appsettings.json" | 9 +
.../Blogs/obj/Blogs.csproj.nuget.dgspec.json" | 72 +
.../Blogs/obj/Blogs.csproj.nuget.g.props" | 15 +
.../Blogs/obj/Blogs.csproj.nuget.g.targets" | 2 +
...oreApp,Version=v8.0.AssemblyAttributes.cs" | 4 +
.../obj/Debug/net8.0/Blogs.AssemblyInfo.cs" | 22 +
.../net8.0/Blogs.AssemblyInfoInputs.cache" | 1 +
...GeneratedMSBuildEditorConfig.editorconfig" | 103 +
.../obj/Debug/net8.0/Blogs.GlobalUsings.g.cs" | 17 +
...ogs.MvcApplicationPartsAssemblyInfo.cache" | 0
.../net8.0/Blogs.RazorAssemblyInfo.cache" | 1 +
.../Debug/net8.0/Blogs.RazorAssemblyInfo.cs" | 17 +
.../obj/Debug/net8.0/Blogs.assets.cache" | Bin 0 -> 152 bytes
.../Blogs.csproj.CoreCompileInputs.cache" | 1 +
.../net8.0/Blogs.csproj.FileListAbsolute.txt" | 30 +
.../Blogs/obj/Debug/net8.0/Blogs.dll" | Bin 0 -> 75776 bytes
.../net8.0/Blogs.genruntimeconfig.cache" | 1 +
.../Blogs/obj/Debug/net8.0/Blogs.pdb" | Bin 0 -> 51892 bytes
.../Blogs/obj/Debug/net8.0/apphost.exe" | Bin 0 -> 142848 bytes
.../Blogs/obj/Debug/net8.0/ref/Blogs.dll" | Bin 0 -> 26624 bytes
.../Blogs/obj/Debug/net8.0/refint/Blogs.dll" | Bin 0 -> 26624 bytes
.../Views/Shared/_Layout.cshtml.rz.scp.css" | 48 +
.../net8.0/scopedcss/bundle/Blogs.styles.css" | 49 +
.../projectbundle/Blogs.bundle.scp.css" | 49 +
.../Debug/net8.0/staticwebassets.build.json" | 1198 ++
.../net8.0/staticwebassets.development.json" | 1 +
.../Debug/net8.0/staticwebassets.pack.json" | 265 +
...icrosoft.AspNetCore.StaticWebAssets.props" | 980 ++
.../msbuild.build.Blogs.props" | 3 +
.../msbuild.buildMultiTargeting.Blogs.props" | 3 +
.../msbuild.buildTransitive.Blogs.props" | 3 +
.../Blogs/obj/project.assets.json" | 77 +
.../Blogs/obj/project.nuget.cache" | 8 +
.../Blogs/wwwroot/css/site.css" | 22 +
.../Blogs/wwwroot/favicon.ico" | Bin 0 -> 5430 bytes
.../Blogs/wwwroot/js/site.js" | 4 +
.../Blogs/wwwroot/lib/bootstrap/LICENSE" | 22 +
.../bootstrap/dist/css/bootstrap-grid.css" | 4997 +++++++
.../dist/css/bootstrap-grid.css.map" | 1 +
.../dist/css/bootstrap-grid.min.css" | 7 +
.../dist/css/bootstrap-grid.min.css.map" | 1 +
.../dist/css/bootstrap-grid.rtl.css" | 4996 +++++++
.../dist/css/bootstrap-grid.rtl.css.map" | 1 +
.../dist/css/bootstrap-grid.rtl.min.css" | 7 +
.../dist/css/bootstrap-grid.rtl.min.css.map" | 1 +
.../bootstrap/dist/css/bootstrap-reboot.css" | 427 +
.../dist/css/bootstrap-reboot.css.map" | 1 +
.../dist/css/bootstrap-reboot.min.css" | 8 +
.../dist/css/bootstrap-reboot.min.css.map" | 1 +
.../dist/css/bootstrap-reboot.rtl.css" | 424 +
.../dist/css/bootstrap-reboot.rtl.css.map" | 1 +
.../dist/css/bootstrap-reboot.rtl.min.css" | 8 +
.../css/bootstrap-reboot.rtl.min.css.map" | 1 +
.../dist/css/bootstrap-utilities.css" | 4866 +++++++
.../dist/css/bootstrap-utilities.css.map" | 1 +
.../dist/css/bootstrap-utilities.min.css" | 7 +
.../dist/css/bootstrap-utilities.min.css.map" | 1 +
.../dist/css/bootstrap-utilities.rtl.css" | 4857 +++++++
.../dist/css/bootstrap-utilities.rtl.css.map" | 1 +
.../dist/css/bootstrap-utilities.rtl.min.css" | 7 +
.../css/bootstrap-utilities.rtl.min.css.map" | 1 +
.../lib/bootstrap/dist/css/bootstrap.css" | 11221 ++++++++++++++++
.../lib/bootstrap/dist/css/bootstrap.css.map" | 1 +
.../lib/bootstrap/dist/css/bootstrap.min.css" | 7 +
.../bootstrap/dist/css/bootstrap.min.css.map" | 1 +
.../lib/bootstrap/dist/css/bootstrap.rtl.css" | 11197 +++++++++++++++
.../bootstrap/dist/css/bootstrap.rtl.css.map" | 1 +
.../bootstrap/dist/css/bootstrap.rtl.min.css" | 7 +
.../dist/css/bootstrap.rtl.min.css.map" | 1 +
.../bootstrap/dist/js/bootstrap.bundle.js" | 6780 ++++++++++
.../dist/js/bootstrap.bundle.js.map" | 1 +
.../dist/js/bootstrap.bundle.min.js" | 7 +
.../dist/js/bootstrap.bundle.min.js.map" | 1 +
.../lib/bootstrap/dist/js/bootstrap.esm.js" | 4977 +++++++
.../bootstrap/dist/js/bootstrap.esm.js.map" | 1 +
.../bootstrap/dist/js/bootstrap.esm.min.js" | 7 +
.../dist/js/bootstrap.esm.min.js.map" | 1 +
.../lib/bootstrap/dist/js/bootstrap.js" | 5026 +++++++
.../lib/bootstrap/dist/js/bootstrap.js.map" | 1 +
.../lib/bootstrap/dist/js/bootstrap.min.js" | 7 +
.../bootstrap/dist/js/bootstrap.min.js.map" | 1 +
.../LICENSE.txt" | 23 +
.../jquery.validate.unobtrusive.js" | 435 +
.../jquery.validate.unobtrusive.min.js" | 8 +
.../wwwroot/lib/jquery-validation/LICENSE.md" | 22 +
.../dist/additional-methods.js" | 1512 +++
.../dist/additional-methods.min.js" | 4 +
.../dist/jquery.validate.js" | 1661 +++
.../dist/jquery.validate.min.js" | 4 +
.../Blogs/wwwroot/lib/jquery/LICENSE.txt" | 21 +
.../Blogs/wwwroot/lib/jquery/dist/jquery.js" | 10881 +++++++++++++++
.../wwwroot/lib/jquery/dist/jquery.min.js" | 2 +
.../wwwroot/lib/jquery/dist/jquery.min.map" | 1 +
.../Linq\346\237\245\350\257\242.sln" | 25 +
132 files changed, 78045 insertions(+)
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Blogs.csproj"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Controllers/HomeController.cs"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Controllers/LinqController.cs"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Models/ErrorViewModel.cs"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Models/Student.cs"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Program.cs"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Properties/launchSettings.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Home/Index.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Home/Privacy.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Eight.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Eleven.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Fifteen.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Five.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Four.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Fourteen.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Nine.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/One.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Six.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Ten.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Thirteen.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Three.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Twelve.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Two.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Shared/Error.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Shared/_Layout.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Shared/_Layout.cshtml.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Shared/_ValidationScriptsPartial.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/_ViewImports.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/_ViewStart.cshtml"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/appsettings.Development.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/appsettings.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.deps.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.dll"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.exe"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.pdb"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.runtimeconfig.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.staticwebassets.runtime.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/appsettings.Development.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/appsettings.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.dgspec.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.g.props"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.g.targets"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.AssemblyInfo.cs"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.AssemblyInfoInputs.cache"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.GeneratedMSBuildEditorConfig.editorconfig"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.GlobalUsings.g.cs"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.MvcApplicationPartsAssemblyInfo.cache"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.RazorAssemblyInfo.cache"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.RazorAssemblyInfo.cs"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.assets.cache"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.csproj.CoreCompileInputs.cache"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.csproj.FileListAbsolute.txt"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.dll"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.genruntimeconfig.cache"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.pdb"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/apphost.exe"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/ref/Blogs.dll"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/refint/Blogs.dll"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/scopedcss/Views/Shared/_Layout.cshtml.rz.scp.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/scopedcss/bundle/Blogs.styles.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/scopedcss/projectbundle/Blogs.bundle.scp.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/staticwebassets.build.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/staticwebassets.development.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/staticwebassets.pack.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/staticwebassets/msbuild.Blogs.Microsoft.AspNetCore.StaticWebAssets.props"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/staticwebassets/msbuild.build.Blogs.props"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/staticwebassets/msbuild.buildMultiTargeting.Blogs.props"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/staticwebassets/msbuild.buildTransitive.Blogs.props"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/project.assets.json"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/obj/project.nuget.cache"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/css/site.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/favicon.ico"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/js/site.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/LICENSE"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery-validation/LICENSE.md"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery-validation/dist/additional-methods.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery-validation/dist/additional-methods.min.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery-validation/dist/jquery.validate.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery/LICENSE.txt"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery/dist/jquery.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery/dist/jquery.min.js"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/wwwroot/lib/jquery/dist/jquery.min.map"
create mode 100644 "\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Linq\346\237\245\350\257\242.sln"
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Blogs.csproj" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Blogs.csproj"
new file mode 100644
index 0000000..1b28a01
--- /dev/null
+++ "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Blogs.csproj"
@@ -0,0 +1,9 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Controllers/HomeController.cs" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Controllers/HomeController.cs"
new file mode 100644
index 0000000..8492f50
--- /dev/null
+++ "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Controllers/HomeController.cs"
@@ -0,0 +1,31 @@
+using System.Diagnostics;
+using Microsoft.AspNetCore.Mvc;
+using Blogs.Models;
+
+namespace Blogs.Controllers;
+
+public class HomeController : Controller
+{
+ private readonly ILogger _logger;
+
+ public HomeController(ILogger logger)
+ {
+ _logger = logger;
+ }
+
+ public IActionResult Index()
+ {
+ return View();
+ }
+
+ public IActionResult Privacy()
+ {
+ return View();
+ }
+
+ [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
+ public IActionResult Error()
+ {
+ return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
+ }
+}
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Controllers/LinqController.cs" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Controllers/LinqController.cs"
new file mode 100644
index 0000000..806fa6b
--- /dev/null
+++ "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Controllers/LinqController.cs"
@@ -0,0 +1,216 @@
+using System.Diagnostics.Metrics;
+using Microsoft.AspNetCore.Mvc;
+using System.Diagnostics;
+
+namespace Blogs.Models
+{
+ public class Linq : Controller{
+ // 1-3
+ public IActionResult One(){
+ // 定义一个数组
+ int [] numbers = {1,2,3,4,5,6};
+ // 1. 查询特定元素找出数组中等于5的元素
+ var one = numbers.Where(x => x ==5).ToList();
+ // 2.查询特定范围的元素 找出数组中在2到8之间的元素
+ var two = numbers.Where(x => x>2 && x<8).ToList();
+ // 3.查询并转换元素 将数组中的每个数字乘以2(select:可以指定要检索的列,以及应用于这些列的任何条件)
+ var three = numbers.Select(x => x*2).ToList();
+
+ return View();
+ }
+ public IActionResult Two(){
+ //定义一个学生集合
+ List students = new List
+ {
+ new Student {Id=1, Name = "王有才", Age = 21 },
+ new Student {Id=2, Name = "王中王", Age = 22 },
+ new Student {Id=3, Name = "张语嫣", Age = 23 },
+ new Student {Id=4, Name = "詹宇航", Age = 35 },
+ new Student {Id=5, Name = "郑雨良", Age = 26 },
+ };
+ //查询特定属性的对象 找出所有名字以"王"开头的学生。
+ var one =students.Where(x =>x.Name.Contains("王")).ToList();
+ return View();
+ }
+ public IActionResult Three(){
+ List students = new List
+ {
+ //定义一个学生集合
+ new Student {Id=1, Name = "王有才", Age = 21 },
+ new Student {Id=2, Name = "罗婷", Age = 21 },
+ new Student {Id=3, Name = "王中王", Age = 22 },
+ new Student {Id=4, Name = "李子柒", Age = 22 },
+ new Student {Id=5, Name = "张语嫣", Age = 23 },
+ new Student {Id=6, Name = "詹宇航", Age = 35 },
+ new Student {Id=7, Name = "郑雨良", Age = 26 },
+ new Student {Id=8, Name = "欧文", Age = 26 },
+ };
+ //查询并排序 找出所有年龄大于20岁的学生,并按年龄降序排列。
+ var one = students.Where(x => x.Age>=20).OrderByDescending(x =>x.Age).ToList();
+ return View();
+ }
+ //6-15
+ public IActionResult Four(){
+ //定义一个数组
+ int[] numbers = { 1, 2, 3, 4, 5, 6,18,23,64,7,18,2,3 };
+ // 1.查询并去重 找出数组中所有不重复的数字。
+ var a = numbers.Distinct().ToList();
+ // 2.查询第一个元素 找出数组中第一个大于3的元素。
+ var b = numbers.FirstOrDefault(x =>x>3);
+ // 3.查询最后一个元素 找出数组中最后一个小于7的元素。
+ var c = numbers.LastOrDefault(x =>x<7);
+ // 4.查询元素是否存在 检查数组中是否存在大于10的元素
+ var d = numbers.Any(x =>x>10);
+ // 5.查询元素的计数 计算数组中大于5的元素数量。
+ var e = numbers.Count(x =>x>5);
+ // 6.查询元素的总和 计算数组中所有元素的总和
+ var f = numbers.Sum();
+ // 7.查询元素的最大值 找出数组中的最大值。
+ var g = numbers.Max();
+ // 8.查询元素的最小值 找出数组中的最小值。
+ var h = numbers.Min();
+ // 9.查询元素的平均值 计算数组中所有元素的平均值。
+ double i = numbers.Average();
+ // var i = numbers.Sum()/numbers.Length;(方法二)
+ // 10.查询特定条件的元素 找出数组中能被3整除的元素
+ var j = numbers.Where(x =>x%3 ==0).ToList();
+ return View();
+ }
+ //16-17
+ public IActionResult Five(){
+ //定义一个学生集合
+ List students = new List
+ {
+ new Student {Id=1, Name = "王有才", Age = 21 },
+ new Student {Id=2, Name = "罗婷", Age = 21 },
+ new Student {Id=3, Name = "王中王", Age = 22 },
+ new Student {Id=4, Name = "李子柒", Age = 22 },
+ new Student {Id=5, Name = "张语嫣", Age = 23 },
+ new Student {Id=6, Name = "詹宇航", Age = 35 },
+ new Student {Id=7, Name = "郑雨良", Age = 26 },
+ new Student {Id=8, Name = "欧文", Age = 26 },
+ };
+ // 1.查询并选择特定属性 找出所有学生的姓名和年龄
+ var a = students.Select(x =>new{x.Name,x.Age}).ToList();
+ // 2.查询并分组 按年龄分组学生,并计算每个年龄组的学生数量。
+ var b = students.GroupBy(x =>x.Age).Select(x =>new{age =x.Key,Count=x.Count()}).ToList();
+ return View();
+ }
+ public IActionResult Six(){
+ //定义两个学生集合
+ List students = new List
+ {
+ new Student {Id=1, Name = "王有才", Age = 21 },
+ new Student {Id=2, Name = "罗婷", Age = 21 },
+ new Student {Id=3, Name = "王中王", Age = 22 },
+ new Student {Id=4, Name = "李子柒", Age = 22 },
+ new Student {Id=5, Name = "张语嫣", Age = 23 },
+ new Student {Id=6, Name = "詹宇航", Age = 35 },
+ new Student {Id=7, Name = "郑雨良", Age = 26 },
+ new Student {Id=8, Name = "欧文", Age = 26 },
+ };
+ List courses=new List
+ {
+ new Course{StudentId=1,CourseName="英语"},
+ new Course{StudentId=1,CourseName="数学"},
+ new Course{StudentId=2,CourseName="语文"},
+ new Course{StudentId=3,CourseName="物理"},
+ new Course{StudentId=4,CourseName="化学"},
+ new Course{StudentId=4,CourseName="生物"},
+ new Course{StudentId=4,CourseName="语文"},
+ };
+ //查询并联结 联结学生和课程表,找出每个学生的所有课程。
+ var a = from student in students join course in courses on student.Id equals course.StudentId into studentCourses
+ select new{StudentName = student.Name,Courses = studentCourses.Select(c => c.CourseName).ToList()};
+ return View(a.ToList());
+
+ }
+ public IActionResult Seven(){
+ //定义一个数组
+ int[] numbers = { 1, 2, 3, 4, 5, 6,18,23,64,7,18,2,3 };
+ //查询并反转 反转数组中的元素顺序。
+ var a = numbers.AsEnumerable().Reverse();
+ // 将结果转换回数组
+ int[] sever = a.ToArray();
+ //查询并填充 找出数组中第一个大于2的元素,并用它填充后面的所有位置。
+ int b = numbers.FirstOrDefault(n => n > 2);
+ // 如果找到了,用它填充后面的所有位置
+ if (b != 0) // 这里使用0是因为b是int类型,它的默认值是0
+ {
+ int index = Array.IndexOf(numbers, b);
+ for (int i = index + 1; i < numbers.Length; i++)
+ {
+ numbers[i] = b;
+ }
+ }
+ //查询并排除 从数组中排除所有小于5的元素。
+ var c = numbers.Where(n => n >= 5).ToList();
+ return View();
+ }
+ public IActionResult Eight(){
+ //定义一个数组
+ int?[] nullableNumbers = { 1, null, 3, null, 5 };
+ //查询并填充默认值 如果数组中存在null值,用默认值0替换。
+ var a = nullableNumbers.Select(n => n ?? 0).ToList();
+ return View();
+
+ }
+ public IActionResult Nine(){
+ //定义一个数组
+ string[] stringNumbers = { "1", "2", "3", "4" };
+ //查询并转换类型 将字符串数组转换为整数数组。
+ int[] a = stringNumbers.Select(int.Parse).ToArray();
+ return View();
+
+ }
+ public IActionResult Ten(){
+ //定义一个数组
+ object[] objects = { "String", 123, "Another String", 456 };
+ var result = objects.OfType().ToList();
+ //查询并使用OfType过滤 从对象数组中过滤出字符串类型的元素。
+ return View();
+
+ }
+ public IActionResult Eleven(){
+ //定义两个数组
+ int[] numbers1 = { 1, 2, 3 };
+ int[] numbers2 = { 4, 5, 6 };
+ //查询并使用Zip合并 合并两个数组,并创建一个包含元素对的新数组。
+ var a = numbers1.Zip(numbers2, (first, second) => new { first, second }).ToList();
+ return View();
+ }
+ public IActionResult Twelve(){
+ //查询并使用Range生成 生成一个包含1到10的整数数组
+ int[] a = Enumerable.Range(1, 10).ToArray();
+ return View(a);
+ }
+ public IActionResult Thirteen(){
+ //查询并使用Repeat重复 重复一个元素多次,创建一个新数组。
+ // 要重复的元素
+ int number = 7;
+ // 重复的次数
+ int repeatCount = 10;
+ // 使用LINQ的Repeat方法重复元素
+ var a = Enumerable.Repeat(number, repeatCount).ToArray();
+ // 将结果传递给视图
+ return View();
+ }
+ public IActionResult Fourteen(){
+ //查询并使用Skip跳过元素 跳过数组中的前3个元素,然后取出剩余的元素。
+ int[] numbers = { 1, 2, 3, 4, 5, 6,18,23,64,7,18,2,3 };
+ // 使用LINQ的Skip方法跳过前3个元素
+ var a = numbers.Skip(3).ToArray();
+ // 将结果传递给视图
+ return View();
+ }
+ public IActionResult Fifteen(){
+ //查询并使用Take限制数量 从数组中取出前5个元素。
+ int[] numbers = { 1, 2, 3, 4, 5, 6,18,23,64,7,18,2,3 };
+ // 使用LINQ的Take方法取出前5个元素
+ var a = numbers.Take(5).ToArray();
+ // 将结果传递给视图
+ return View();
+ }
+
+ }
+}
\ No newline at end of file
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Models/ErrorViewModel.cs" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Models/ErrorViewModel.cs"
new file mode 100644
index 0000000..0868622
--- /dev/null
+++ "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Models/ErrorViewModel.cs"
@@ -0,0 +1,8 @@
+namespace Blogs.Models;
+
+public class ErrorViewModel
+{
+ public string? RequestId { get; set; }
+
+ public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
+}
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Models/Student.cs" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Models/Student.cs"
new file mode 100644
index 0000000..6d27a9e
--- /dev/null
+++ "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Models/Student.cs"
@@ -0,0 +1,12 @@
+namespace Blogs.Models;
+public class Student
+{
+ public int Id { get; set; }
+ public string Name { get; set; } =null!;
+ public int Age { get; set; }
+}
+public class Course
+{
+ public int StudentId { get; set; }
+ public string CourseName { get; set; } =null!;
+}
\ No newline at end of file
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Program.cs" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Program.cs"
new file mode 100644
index 0000000..0727468
--- /dev/null
+++ "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Program.cs"
@@ -0,0 +1,27 @@
+var builder = WebApplication.CreateBuilder(args);
+
+// Add services to the container.
+builder.Services.AddControllersWithViews();
+
+var app = builder.Build();
+
+// Configure the HTTP request pipeline.
+if (!app.Environment.IsDevelopment())
+{
+ 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.MapControllerRoute(
+ name: "default",
+ pattern: "{controller=Home}/{action=Index}/{id?}");
+
+app.Run();
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Properties/launchSettings.json" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Properties/launchSettings.json"
new file mode 100644
index 0000000..889bf4c
--- /dev/null
+++ "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Properties/launchSettings.json"
@@ -0,0 +1,38 @@
+{
+ "$schema": "http://json.schemastore.org/launchsettings.json",
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:8994",
+ "sslPort": 44342
+ }
+ },
+ "profiles": {
+ "http": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "applicationUrl": "http://localhost:5153",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "https": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "applicationUrl": "https://localhost:7218;http://localhost:5153",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Home/Index.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Home/Index.cshtml"
new file mode 100644
index 0000000..349be26
--- /dev/null
+++ "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Home/Index.cshtml"
@@ -0,0 +1,5 @@
+@{
+ ViewData["Title"] = "Home Page";
+}
+
+
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Home/Privacy.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Home/Privacy.cshtml"
new file mode 100644
index 0000000..af4fb19
--- /dev/null
+++ "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/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/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Eight.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Eight.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Eleven.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Eleven.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Fifteen.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Fifteen.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Five.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Five.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Four.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Four.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Fourteen.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Fourteen.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Nine.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Nine.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/One.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/One.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Six.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Six.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Ten.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Ten.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Thirteen.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Thirteen.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Three.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Three.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Twelve.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Twelve.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Two.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Linq/Two.cshtml"
new file mode 100644
index 0000000..e69de29
diff --git "a/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Shared/Error.cshtml" "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Shared/Error.cshtml"
new file mode 100644
index 0000000..a1e0478
--- /dev/null
+++ "b/\346\235\216\344\275\263\350\261\252/\344\275\234\344\270\232/Linq\346\237\245\350\257\242/Blogs/Views/Shared/Error.cshtml"
@@ -0,0 +1,25 @@
+@model 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.
+