diff --git "a/\346\261\237\346\226\207\346\267\257/20241204.LING.md" "b/\346\261\237\346\226\207\346\267\257/20241204.LING.md" new file mode 100644 index 0000000000000000000000000000000000000000..58e1a2a5a263e449450bc971ccb34aca88229c4c --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/20241204.LING.md" @@ -0,0 +1,12 @@ +## LING & Lanmbda +1. 查询是一种从数据源检索数据的表达式,查询通常用专门的查询语言来表示。LINQ最大的优势就是可使用相同的基本查询表达式模式来查询和转换SQL数据库,ADO.NET数据集,XML文档和流及.NET合集中的数据,极大的降低了学习成本提高了代码维护性和可续性 +## 基本LINQ操作 +1. 简单的例子,以下代码是从customers中获取city为london或者Paris的成员,然后排序。比起传统的foreach+if else 简单多了 +- var queryLondonCustomers = from cust in customers +- where cust.city == "london" || cust.city == "Paris" +- orderby cust.Name ascending 4 +- select cust; +## lambda表达式 +1. 如何写一个Lambda表达式 +- 首先,在写lambda表达式之前。需要先了解两个特殊的类型:Func和Action +这是两个委托,这里先不急着了解什么是委托,可以把它们当做是一种名称规范就行,他们都可以表示一个方法,不容的是其中FUNC、表示有一个返回值的方法,Action表示一个没有返回值的方法。 \ No newline at end of file diff --git "a/\346\261\237\346\226\207\346\267\257/20241205-\345\210\240\351\231\244\357\274\214\350\247\206\345\233\276.md" "b/\346\261\237\346\226\207\346\267\257/20241205-\345\210\240\351\231\244\357\274\214\350\247\206\345\233\276.md" new file mode 100644 index 0000000000000000000000000000000000000000..70a5b1730bc81868b71a73d101131f624ded3af9 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/20241205-\345\210\240\351\231\244\357\274\214\350\247\206\345\233\276.md" @@ -0,0 +1,32 @@ +### 控制台 +1. 创建一个名为BlogsController.cs(一定要有Controller) +2. 在View里创建对应的Blogs文件,里面有返回的Index视图 +3. View里完成表单的创建和美化 +4. 在Models里创建一个Blogs.cs,里面写上要传递的参数 +## 查询 + +1. 控制器 +```c# + public IActionResult Index(string oi) + { + + + if(string.IsNullOrEmpty(oi)) + { + return View(DB.B); + } + oi=string.IsNullOrEmpty(oi)?"":oi.Trim(); + var a=DB.B.Where(x=>x.Title.Contains(oi)|| x.Content.Contains(oi)|| x.Author.Contains(oi)); + return View(a); + + } +``` +2. 视图 +```html +
+

+ + +

+
+``` \ No newline at end of file diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/Blogs.csproj" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/Blogs.csproj" new file mode 100644 index 0000000000000000000000000000000000000000..2150e3797ba5eba3218d8435d31f8a8e2cc83c4c --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/Blogs.csproj" @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/Program.cs" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/Program.cs" new file mode 100644 index 0000000000000000000000000000000000000000..dfe3f1136cbcc2e90dff921e6552cd868318cf6f --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/Program.cs" @@ -0,0 +1,373 @@ +using System; +using System.Linq; + +namespace Blogs +{ + public class Student +{ + public int Id { get; set; } + public string Name { get; set; } + public int Age { get; set; } +} + class Program + { + public class Course +{ + public int StudentId { get; set; } + public string CourseName { get; set; } +} + + + static void Main(string[] args) + { + 初始化数组 + int[] numbers = { 1, 2, 3, 4, 5, 6 }; + + // 查询等于5的元素 + var query1 = numbers.Where(n => n == 5); + + // 打印结果 + foreach (var num in query1) + { + Console.WriteLine(num); + } + + Console.WriteLine("------------------------------------"); + // 找出数组中在2到8之间的元素。 + var query2 = numbers.Where(n => n >= 2 && n <= 8); + foreach (var num in query2) + { + Console.WriteLine(num); + } + Console.WriteLine("---------------------"); + // 将数组中的每个数字乘以2 + var query3 = numbers.Select(n => n * 2); + foreach (var num in query3) + { + Console.WriteLine(num); + } + Console.WriteLine("===================="); + // 找出所有名字以"王"开头的学生。 + 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 wangStu = students.Where(name => name.Name.StartsWith("王")); + foreach (var stu in wangStu) + { + Console.WriteLine(stu.Name); + } + // 找出所有年龄大于20岁的学生,并按年龄降序排列 + 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, + }, + }; + var sortedStudents = students.Where(s => s.Age > 20).OrderByDescending(s => s.Age); + foreach (var stu in sortedStudents) + { + Console.WriteLine(stu.Name); + } + // 找出数组中所有不重复的数字 + int[] numbers = { 1, 2, 3, 4, 5, 6, 18, 23, 64, 7, 18, 2, 3 }; + var distinctResult = numbers.Distinct(); + foreach (var num in distinctResult) + { + Console.WriteLine(num); + } + // 查询第一个元素 找出数组中第一个大于3的元素。 + int[] numbers = { 1, 2, 3, 4, 5, 6, 18, 23, 64, 7, 18, 2, 3 }; + var first = numbers.FirstOrDefault(n => n > 3); + Console.WriteLine(first); + + // 查询最后一个元素 找出数组中最后一个小于7的元素。 + int[] numbers = { 1, 2, 3, 4, 5, 6, 18, 23, 64, 7, 18, 2, 3 }; + var last = numbers.Where(n => n < 7).Last(); + Console.WriteLine(last); + + // 查询元素是否存在 检查数组中是否存在大于10的元素。 + int[] numbers = { 1, 2, 3, 4, 5, 6, 18, 23, 64, 7, 18, 2, 3 }; + bool i = numbers.Any(n => n > 10); + Console.WriteLine(i); + + // 查询元素的计数 计算数组中大于5的元素数量。 + int[] numbers = { 1, 2, 3, 4, 5, 6, 18, 23, 64, 7, 18, 2, 3 }; + int num = numbers.Count(n => n > 5); + Console.WriteLine(num); + // 查询元素的总和 计算数组中所有元素的总和。 + int sum = numbers.Sum(); + Console.WriteLine($"总和: {sum}"); + + // 查询元素的最大值 找出数组中的最大值。 + int max = numbers.Max(); + Console.WriteLine($"最大值: {max}"); + + // 查询元素的最小值 找出数组中的最小值。 + int min = numbers.Min(); + Console.WriteLine($"最小值: {min}"); + + // 查询元素的平均值 计算数组中所有元素的平均值。 + double average = numbers.Average(); + Console.WriteLine($"平均值: {average}"); + + // 查询特定条件的元素 找出数组中能被3整除的元素。 + var divisibleBy3 = numbers.Where(n => n % 3 == 0); + foreach (var num in divisibleBy3) + { + Console.WriteLine(num); + } + + //查询并选择特定属性 找出所有学生的姓名和年龄。 + + var result = students.Select(s => new { s.Name, s.Age }).ToList(); + foreach (var item in result) + { + Console.WriteLine($"Name: {item.Name}, Age: {item.Age}"); + } + + // 查询并分组 按年龄分组学生,并计算每个年龄组的学生数量。 + var groupedByAge = students + .GroupBy(s => s.Age) + .Select(g => new { Age = g.Key, Count = g.Count() }) + .ToList(); + foreach (var item in groupedByAge) + { + Console.WriteLine($"Age: {item.Age}, Count: {item.Count}"); + } + + // 查询并联结 联结学生和课程表,找出每个学生的所有课程。 + 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 query = + from student in students + join course in courses on student.Id equals course.StudentId + select new { student.Name, course.CourseName }; + + foreach (var item in query) + { + Console.WriteLine($"Name: {item.Name}, Course: {item.CourseName}"); + } + + // 查询并反转 反转数组中的元素顺序。 + int[] numbers = { 1, 2, 3, 4, 5, 6, 18, 23, 64, 7, 18, 2, 3 }; + var reversed = numbers.Reverse().ToArray(); + foreach (var num in reversed) + { + Console.WriteLine(num); + } + + // 查询并填充 找出数组中第一个大于2的元素,并用它填充后面的所有位置。 + int firstGreaterThanTwo = numbers.FirstOrDefault(n => n > 2); + for ( + int i = numbers.IndexOf(numbers.FirstOrDefault(n => n > 2)); + i < numbers.Length; + i++ + ) + { + numbers[i] = firstGreaterThanTwo; + } + foreach (var num in numbers) + { + Console.WriteLine(num); + } + + // 查询并排除 从数组中排除所有小于5的元素。 + var filtered = numbers.Where(n => n > 5).ToArray(); + foreach (var num in filtered) + { + Console.WriteLine(num); + } + + // 查询并填充默认值 如果数组中存在null值,用默认值0替换 + int?[] nullableNumbers = { 1, null, 3, null, 5 }; + var filled = nullableNumbers.Select(n => n ?? 0).ToArray(); + foreach (var num in filled) + { + Console.WriteLine(num); + } + + // 查询并转换类型 将字符串数组转换为整数数组。 + string[] stringNumbers = { "1", "2", "3", "4" }; + var intNumbers = stringNumbers.Select(int.Parse).ToArray(); + foreach (var num in intNumbers) + { + Console.WriteLine(num); + } + + // 查询并使用OfType过滤 从对象数组中过滤出字符串类型的元素。 + object[] objects = { "String", 123, "Another String", 456 }; + var result = objects.OfType().ToList(); + foreach (var str in result) + { + Console.WriteLine(str); + } + + // 1. 查询并使用Zip合并 合并两个数组,并创建一个包含元素对的新数组。 + int[] numbers1 = { 1, 2, 3 }; + int[] numbers2 = { 4, 5, 6 }; + var zipped = numbers1 + .Zip(numbers2, (n1, n2) => new { Number1 = n1, Number2 = n2 }) + .ToArray(); + Console.WriteLine("Zipped:"); + foreach (var pair in zipped) + { + Console.WriteLine($"({pair.Number1}, {pair.Number2})"); + } + + // 2. 查询并使用Range生成 生成一个包含1到10的整数数组。 + var range = Enumerable.Range(1, 10).ToArray(); + Console.WriteLine("\nRange:"); + Console.WriteLine(string.Join(", ", range)); + + // 3. 查询并使用Repeat重复 重复一个元素多次,创建一个新数组。 + var repeated = Enumerable.Repeat(7, 5).ToArray(); + Console.WriteLine("\nRepeated:"); + Console.WriteLine(string.Join(", ", repeated)); + + // 4. 查询并使用Take限制数量 从数组中取出前5个元素。 + int[] numbers = { 1, 2, 3, 4, 5, 6, 18, 23, 64, 7, 18, 2, 3 }; + var taken = numbers.Take(5).ToArray(); + Console.WriteLine("\nTaken:"); + Console.WriteLine(string.Join(", ", taken)); + + // 5. 查询并使用Skip跳过元素 跳过数组中的前3个元素,然后取出剩余的元素。 + var skipped = numbers.Skip(3).ToArray(); + Console.WriteLine("\nSkipped:"); + Console.WriteLine(string.Join(", ", skipped)); + } + } +} diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.deps.json" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.deps.json" new file mode 100644 index 0000000000000000000000000000000000000000..8b5e837408941f4adbd76d3a3303ea758fc7ddad --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.deps.json" @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "Blogs/1.0.0": { + "runtime": { + "Blogs.dll": {} + } + } + } + }, + "libraries": { + "Blogs/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.dll" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.dll" new file mode 100644 index 0000000000000000000000000000000000000000..697959b22ed8b64a527cecce8ad89bced716e3eb Binary files /dev/null and "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.dll" differ diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.exe" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.exe" new file mode 100644 index 0000000000000000000000000000000000000000..71da93541f0b034018e36055f4aa1bab5ef3454a Binary files /dev/null and "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.exe" differ diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.pdb" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.pdb" new file mode 100644 index 0000000000000000000000000000000000000000..64a54ebf8c816715731eda28c2f0671db4022029 Binary files /dev/null and "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.pdb" differ diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.runtimeconfig.json" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.runtimeconfig.json" new file mode 100644 index 0000000000000000000000000000000000000000..becfaeac95a0a28c70ce619e835f5322a54d3426 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/bin/Debug/net8.0/Blogs.runtimeconfig.json" @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.dgspec.json" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.dgspec.json" new file mode 100644 index 0000000000000000000000000000000000000000..ca4109ab5a42733a00f245aa0ba6f777156f867c --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.dgspec.json" @@ -0,0 +1,68 @@ +{ + "format": 1, + "restore": { + "G:\\作业上传处\\Gitee\\grade23-class4-note-mvc\\韦诗诗\\作业\\MVC-Linq集成查询\\Blogs\\Blogs.csproj": {} + }, + "projects": { + "G:\\作业上传处\\Gitee\\grade23-class4-note-mvc\\韦诗诗\\作业\\MVC-Linq集成查询\\Blogs\\Blogs.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "G:\\作业上传处\\Gitee\\grade23-class4-note-mvc\\韦诗诗\\作业\\MVC-Linq集成查询\\Blogs\\Blogs.csproj", + "projectName": "Blogs", + "projectPath": "G:\\作业上传处\\Gitee\\grade23-class4-note-mvc\\韦诗诗\\作业\\MVC-Linq集成查询\\Blogs\\Blogs.csproj", + "packagesPath": "C:\\Users\\Dishey\\.nuget\\packages\\", + "outputPath": "G:\\作业上传处\\Gitee\\grade23-class4-note-mvc\\韦诗诗\\作业\\MVC-Linq集成查询\\Blogs\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\Dishey\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + } + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.404/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.g.props" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.g.props" new file mode 100644 index 0000000000000000000000000000000000000000..f70a8f8cae231adf99f0e53198cbace1282bfd27 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.g.props" @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\Dishey\.nuget\packages\ + PackageReference + 6.11.1 + + + + + \ No newline at end of file diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.g.targets" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.g.targets" new file mode 100644 index 0000000000000000000000000000000000000000..3dc06ef3cc4057524bf5d2cd49936dff789cebe8 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Blogs.csproj.nuget.g.targets" @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs" new file mode 100644 index 0000000000000000000000000000000000000000..2217181c88bdc64e587ffe6e9301b67e1d462aab --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs" @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.AssemblyInfo.cs" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.AssemblyInfo.cs" new file mode 100644 index 0000000000000000000000000000000000000000..f4ea6b5037b3a5ae832597accd94aca861b35f6b --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.AssemblyInfo.cs" @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Blogs")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+e399d36e6be52fbfcb4ed1b6c9aaa4913c08ba1b")] +[assembly: System.Reflection.AssemblyProductAttribute("Blogs")] +[assembly: System.Reflection.AssemblyTitleAttribute("Blogs")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// 由 MSBuild WriteCodeFragment 类生成。 + diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.AssemblyInfoInputs.cache" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.AssemblyInfoInputs.cache" new file mode 100644 index 0000000000000000000000000000000000000000..a90655934be5a8ce3d1a575b2c99acdd1e6adb96 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.AssemblyInfoInputs.cache" @@ -0,0 +1 @@ +dd52f841d54b7b79a046643e579259d1689a28c8af655d7e6ad1f2d1af92a220 diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.GeneratedMSBuildEditorConfig.editorconfig" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.GeneratedMSBuildEditorConfig.editorconfig" new file mode 100644 index 0000000000000000000000000000000000000000..f3c8f9d40dc1ff503dd4def20fa7ff3910cecef7 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.GeneratedMSBuildEditorConfig.editorconfig" @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = Blogs +build_property.ProjectDir = G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.GlobalUsings.g.cs" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.GlobalUsings.g.cs" new file mode 100644 index 0000000000000000000000000000000000000000..8578f3d03de56aa5afbb2e6a3f0a9055b075f7fd --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.GlobalUsings.g.cs" @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.assets.cache" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.assets.cache" new file mode 100644 index 0000000000000000000000000000000000000000..850064398bc4731feedf259c68b9137ea7f00692 Binary files /dev/null and "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.assets.cache" differ diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.csproj.CoreCompileInputs.cache" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.csproj.CoreCompileInputs.cache" new file mode 100644 index 0000000000000000000000000000000000000000..c47c653e766f778b614d81ef1e9172bf986b3524 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.csproj.CoreCompileInputs.cache" @@ -0,0 +1 @@ +8f55a152e9f88e6257a0a31b27c65b8ff4cb2bbf6f47704ce0d4069a3a4107f0 diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.csproj.FileListAbsolute.txt" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.csproj.FileListAbsolute.txt" new file mode 100644 index 0000000000000000000000000000000000000000..7b1abd2f1f4b3bb146dca413ecc5eb6fb3dfefb1 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.csproj.FileListAbsolute.txt" @@ -0,0 +1,28 @@ +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\obj\Debug\net8.0\Blogs.GeneratedMSBuildEditorConfig.editorconfig +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\obj\Debug\net8.0\Blogs.AssemblyInfoInputs.cache +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\obj\Debug\net8.0\Blogs.AssemblyInfo.cs +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\obj\Debug\net8.0\Blogs.csproj.CoreCompileInputs.cache +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\bin\Debug\net8.0\Blogs.exe +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\bin\Debug\net8.0\Blogs.deps.json +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\bin\Debug\net8.0\Blogs.runtimeconfig.json +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\bin\Debug\net8.0\Blogs.dll +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\bin\Debug\net8.0\Blogs.pdb +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\obj\Debug\net8.0\Blogs.dll +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\obj\Debug\net8.0\refint\Blogs.dll +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\obj\Debug\net8.0\Blogs.pdb +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\obj\Debug\net8.0\Blogs.genruntimeconfig.cache +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blog\Blogs\obj\Debug\net8.0\ref\Blogs.dll +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\obj\Debug\net8.0\Blogs.GeneratedMSBuildEditorConfig.editorconfig +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\obj\Debug\net8.0\Blogs.AssemblyInfoInputs.cache +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\obj\Debug\net8.0\Blogs.AssemblyInfo.cs +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\obj\Debug\net8.0\Blogs.csproj.CoreCompileInputs.cache +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\obj\Debug\net8.0\Blogs.dll +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\obj\Debug\net8.0\refint\Blogs.dll +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\obj\Debug\net8.0\Blogs.pdb +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\bin\Debug\net8.0\Blogs.exe +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\bin\Debug\net8.0\Blogs.deps.json +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\bin\Debug\net8.0\Blogs.runtimeconfig.json +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\bin\Debug\net8.0\Blogs.dll +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\bin\Debug\net8.0\Blogs.pdb +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\obj\Debug\net8.0\Blogs.genruntimeconfig.cache +G:\作业上传处\Gitee\grade23-class4-note-mvc\韦诗诗\作业\MVC-Linq集成查询\Blogs\obj\Debug\net8.0\ref\Blogs.dll diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.dll" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.dll" new file mode 100644 index 0000000000000000000000000000000000000000..697959b22ed8b64a527cecce8ad89bced716e3eb Binary files /dev/null and "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.dll" differ diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.genruntimeconfig.cache" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.genruntimeconfig.cache" new file mode 100644 index 0000000000000000000000000000000000000000..57fb3e1af77ec368c4bdc6fa447b57ab2fd1f15f --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.genruntimeconfig.cache" @@ -0,0 +1 @@ +3e861c7fa5ecdd17b5cebdd99abcee244f3ad3d3b0d30b7b9eb0ee3c1b74ec2a diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.pdb" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.pdb" new file mode 100644 index 0000000000000000000000000000000000000000..64a54ebf8c816715731eda28c2f0671db4022029 Binary files /dev/null and "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/Blogs.pdb" differ diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/apphost.exe" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/apphost.exe" new file mode 100644 index 0000000000000000000000000000000000000000..71da93541f0b034018e36055f4aa1bab5ef3454a Binary files /dev/null and "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/apphost.exe" differ diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/ref/Blogs.dll" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/ref/Blogs.dll" new file mode 100644 index 0000000000000000000000000000000000000000..39088d4bc071eddc5339ad486d45dfefd2ad81b3 Binary files /dev/null and "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/ref/Blogs.dll" differ diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/refint/Blogs.dll" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/refint/Blogs.dll" new file mode 100644 index 0000000000000000000000000000000000000000..39088d4bc071eddc5339ad486d45dfefd2ad81b3 Binary files /dev/null and "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/Debug/net8.0/refint/Blogs.dll" differ diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/project.assets.json" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/project.assets.json" new file mode 100644 index 0000000000000000000000000000000000000000..b890492f71d00a84a6565c4960ed3cf67766c048 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/project.assets.json" @@ -0,0 +1,73 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "C:\\Users\\Dishey\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "G:\\作业上传处\\Gitee\\grade23-class4-note-mvc\\韦诗诗\\作业\\MVC-Linq集成查询\\Blogs\\Blogs.csproj", + "projectName": "Blogs", + "projectPath": "G:\\作业上传处\\Gitee\\grade23-class4-note-mvc\\韦诗诗\\作业\\MVC-Linq集成查询\\Blogs\\Blogs.csproj", + "packagesPath": "C:\\Users\\Dishey\\.nuget\\packages\\", + "outputPath": "G:\\作业上传处\\Gitee\\grade23-class4-note-mvc\\韦诗诗\\作业\\MVC-Linq集成查询\\Blogs\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\Dishey\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + } + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.404/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git "a/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/project.nuget.cache" "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/project.nuget.cache" new file mode 100644 index 0000000000000000000000000000000000000000..e7fd7860688f65ad8513e2c3b6978f9c3f204794 --- /dev/null +++ "b/\346\261\237\346\226\207\346\267\257/MVC-Linq\351\233\206\346\210\220\346\237\245\350\257\242/Blogs/obj/project.nuget.cache" @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "GtxhhZMJ/Zk=", + "success": true, + "projectFilePath": "G:\\作业上传处\\Gitee\\grade23-class4-note-mvc\\韦诗诗\\作业\\MVC-Linq集成查询\\Blogs\\Blogs.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file