sumbint
This commit is contained in:
parent
8cde999b5b
commit
a5e3b070c1
10
WebMVC/IEnumberable陷阱/IEnumberable陷阱.csproj
Normal file
10
WebMVC/IEnumberable陷阱/IEnumberable陷阱.csproj
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
10
WebMVC/IEnumberable陷阱/Program.cs
Normal file
10
WebMVC/IEnumberable陷阱/Program.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace IEnumberable陷阱
|
||||||
|
{
|
||||||
|
internal class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Hello, World!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -9,7 +9,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebMVCApi", "WebMVCApi\WebM
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DIWebApi", "DIWebApi\DIWebApi.csproj", "{47083CA0-B1CC-4F23-A78B-390B3D19B349}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DIWebApi", "DIWebApi\DIWebApi.csproj", "{47083CA0-B1CC-4F23-A78B-390B3D19B349}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary1", "ClassLibrary1\ClassLibrary1.csproj", "{4E56A6DB-EFE1-44C2-9C14-8EF49EAF7E9F}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClassLibrary1", "ClassLibrary1\ClassLibrary1.csproj", "{4E56A6DB-EFE1-44C2-9C14-8EF49EAF7E9F}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IEnumberable陷阱", "IEnumberable陷阱\IEnumberable陷阱.csproj", "{A6B358CF-6584-4C50-8939-4DD32AF0EFE2}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -33,6 +35,10 @@ Global
|
|||||||
{4E56A6DB-EFE1-44C2-9C14-8EF49EAF7E9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{4E56A6DB-EFE1-44C2-9C14-8EF49EAF7E9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{4E56A6DB-EFE1-44C2-9C14-8EF49EAF7E9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{4E56A6DB-EFE1-44C2-9C14-8EF49EAF7E9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{4E56A6DB-EFE1-44C2-9C14-8EF49EAF7E9F}.Release|Any CPU.Build.0 = Release|Any CPU
|
{4E56A6DB-EFE1-44C2-9C14-8EF49EAF7E9F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{A6B358CF-6584-4C50-8939-4DD32AF0EFE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{A6B358CF-6584-4C50-8939-4DD32AF0EFE2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{A6B358CF-6584-4C50-8939-4DD32AF0EFE2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{A6B358CF-6584-4C50-8939-4DD32AF0EFE2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -68,10 +68,12 @@ namespace WebMVCApi.Controllers
|
|||||||
{
|
{
|
||||||
return new { Id = classNom+6, schoolName=schoolName + "扛把子", };
|
return new { Id = classNom+6, schoolName=schoolName + "扛把子", };
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPut("UpdatePerson")]
|
[HttpPut("UpdatePerson")]
|
||||||
public async Task<Object> UpdatePerson(int id, Person p1)
|
public async Task<Object> UpdatePerson(int id, Person p1)
|
||||||
{
|
{
|
||||||
return _memoryCache.GetOrCreateAsync<String>("val", async (e)=>{
|
return _memoryCache.GetOrCreateAsync<String>("val", async (e)=>{
|
||||||
|
|
||||||
return $"id {id} 的用户{p1.Name}更新成功 {DateTime.Now}";
|
return $"id {id} 的用户{p1.Name}更新成功 {DateTime.Now}";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" />
|
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
|
||||||
|
<PackageReference Include="Zack.ASPNETCore" Version="1.0.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user