layout: true
--- class: center, middle # WhatsNewNet7 => ( press > ) https://ignatandrei.github.io/Presentations/WhatsNewNet7prez.html Code at https://ignatandrei.github.io/Presentations/WhatsNewNet7.zip --- # Agenda 0. About me 1. What's new VS2022 ? 2. What's new C# 11 3. What's new Blazor 3. What's new ASP.NET Core 7 4. What's new EFCore 7 5. Links 7. Discussion / Questions ? --- class: center, top # About me ![:img ignat, 10%](ignat.jpg) Andrei Ignat http://msprogrammer.serviciipeweb.ro/ www.ASP.NET forum moderator YouTube 5 minutes .NET and tools : http://bit.ly/5MinTools Book Making Open Source Component : http://bit.ly/NetOpenSourceComponent Book Copy Paste from StackOverflow : https://amzn.to/2PQ8EDc Roslyn Source Code Generators with examples : Amazon: https://amzn.to/3f6gll3 Free: https://ignatandrei.github.io/RSCG_Examples/ Monthly meetings: https://www.meetup.com/Bucharest-A-D-C-E-S-Meetup/ --- class: center, top # What's new VS2022? committing across many repos: https://devblogs.microsoft.com/visualstudio/multi-repo-support-in-visual-studio/ More details at : https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes --- class: top # What's new .NET 7 https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-7 System.Formats.Tar System.Runtime.InteropServices.JavaScript StringSyntaxAttribute RSCG: https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation?source=recommendations Demo Folder : Net7Demo --- class: top # What's new C# 11
CentralPackageManagement https://learn.microsoft.com/en-us/nuget/consume-packages/Central-Package-Management There is currently no support in Visual Studio or the .NET CLI for Central Package Management. https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-11 Static interfaces and math support https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/static-virtual-interface-members ![:img int32, 10%](int32.png) https://learn.microsoft.com/en-us/dotnet/api/system.int32?view=net-7.0 Demo Folder : WhatsNewCSharp11
--- class: top # What's new Blazor https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-7.0?view=aspnetcore-7.0#blazor Not only Blazor - JSImport , JSExport https://learn.microsoft.com/en-us/aspnet/core/client-side/dotnet-interop?view=aspnetcore-7.0 Demo Folder: TestBlazor --- class: top # What's new ASP.NET 7 .showSmall[ https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-7.0?view=aspnetcore-7.0 #### Adopt : 1. Bind arrays and string values from headers and query strings https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis/parameter-binding?view=aspnetcore-7.0 2. IParsable .TryParse https://learn.microsoft.com/en-us/aspnet/core/mvc/models/model-binding?view=aspnetcore-7.0#itp7 3. Shadow copy IIS https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-dotnet-7-preview-2/ 4. TypedResults https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.inestedhttpresult #### Assess: 1. RateLimiter https://learn.microsoft.com/en-us/aspnet/core/performance/rate-limit 2. Problem details service https://learn.microsoft.com/en-us/aspnet/core/web-api/handle-errors #### Trial 1. The new mechanism to infer binding source of API Controller action parameters uses the following rules https://learn.microsoft.com/en-us/dotnet/core/compatibility/aspnet-core/7.0/api-controller-action-parameters-di 2. Request Decompression https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/request-decompression?preserve-view=true&view=aspnetcore-7.0 #### Demo Folder : ASPNET7 ] --- class: top # What's new EFCore 7 .showSmall[ https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/whatsnew 1. Faster ( identity, insert , graph ...) 1. JSON Columns - queries , updates.... 2. **ExecuteUpdate, ExecuteDelete** 3. TPC mapping ( inheritance ) 4. **Reverse engineering templates** 5. Applications can now remove or replace any of these Model Conventions 6. SP map for CRUD 7. **All kind of interceptors** 8. Lazy init of connection strings 9. Query enhancements 10. Entity modifications - splitting, struct for PK, sequences.... 11. Winforms 12. Others ! Demo Folder : EFCoreDemos ] --- class: center, top # Links to get started https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-7 https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-11 https://learn.microsoft.com/en-us/aspnet/core/client-side/dotnet-interop?view=aspnetcore-7.0 https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-7.0?view=aspnetcore-7.0 https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/whatsnew https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/static-virtual-interface-members https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation?source=recommendations --- class: left, top # Questions? Andrei Ignat http://msprogrammer.serviciipeweb.ro/ www.ASP.NET forum moderator YouTube 5 minutes .NET and tools : http://bit.ly/5MinTools Book Making Open Source Component : http://bit.ly/NetOpenSourceComponent Book Copy Paste from StackOverflow : https://amzn.to/2PQ8EDc Roslyn Source Code Generators with examples : Amazon: https://amzn.to/3f6gll3 Free: https://ignatandrei.github.io/RSCG_Examples/ Monthly meetings: https://www.meetup.com/Bucharest-A-D-C-E-S-Meetup/