1618909901
The last week was an eventful one for the .NET community, with multiple releases from Microsoft - including the third preview for .NET 6, ASP.NET Core, MAUI, and EF Core 6. InfoQ examined these and a number of smaller stories in the .NET ecosystem from the week of April 5th, 2021.
The highlight of this week was the release of .NET MAUI Preview 3 as part of the .NET 6 preview release calendar. This release is important because it follows the recent release of Project Reunion 0.5, allowing early-adoption developers to use the first stable version of WinUI 3. Other features in the new MAUI release include improved startup builder, native lifecycle events, new semantics for accessibility, and updated UI controls and layouts. The development team also released a repository with sample projects that can be used with the 16.10 preview of Visual Studio 2019 (Windows).
#asp.net core #.net maui #.net core #sustainable computing #.net #c#
1602560783
In this article, we’ll discuss how to use jQuery Ajax for ASP.NET Core MVC CRUD Operations using Bootstrap Modal. With jQuery Ajax, we can make HTTP request to controller action methods without reloading the entire page, like a single page application.
To demonstrate CRUD operations – insert, update, delete and retrieve, the project will be dealing with details of a normal bank transaction. GitHub repository for this demo project : https://bit.ly/33KTJAu.
Sub-topics discussed :
In Visual Studio 2019, Go to File > New > Project (Ctrl + Shift + N).
From new project window, Select Asp.Net Core Web Application_._
Once you provide the project name and location. Select Web Application(Model-View-Controller) and uncheck HTTPS Configuration. Above steps will create a brand new ASP.NET Core MVC project.
Let’s create a database for this application using Entity Framework Core. For that we’ve to install corresponding NuGet Packages. Right click on project from solution explorer, select Manage NuGet Packages_,_ From browse tab, install following 3 packages.
Now let’s define DB model class file – /Models/TransactionModel.cs.
public class TransactionModel
{
[Key]
public int TransactionId { get; set; }
[Column(TypeName ="nvarchar(12)")]
[DisplayName("Account Number")]
[Required(ErrorMessage ="This Field is required.")]
[MaxLength(12,ErrorMessage ="Maximum 12 characters only")]
public string AccountNumber { get; set; }
[Column(TypeName ="nvarchar(100)")]
[DisplayName("Beneficiary Name")]
[Required(ErrorMessage = "This Field is required.")]
public string BeneficiaryName { get; set; }
[Column(TypeName ="nvarchar(100)")]
[DisplayName("Bank Name")]
[Required(ErrorMessage = "This Field is required.")]
public string BankName { get; set; }
[Column(TypeName ="nvarchar(11)")]
[DisplayName("SWIFT Code")]
[Required(ErrorMessage = "This Field is required.")]
[MaxLength(11)]
public string SWIFTCode { get; set; }
[DisplayName("Amount")]
[Required(ErrorMessage = "This Field is required.")]
public int Amount { get; set; }
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime Date { get; set; }
}
C#Copy
Here we’ve defined model properties for the transaction with proper validation. Now let’s define DbContextclass for EF Core.
#asp.net core article #asp.net core #add loading spinner in asp.net core #asp.net core crud without reloading #asp.net core jquery ajax form #asp.net core modal dialog #asp.net core mvc crud using jquery ajax #asp.net core mvc with jquery and ajax #asp.net core popup window #bootstrap modal popup in asp.net core mvc. bootstrap modal popup in asp.net core #delete and viewall in asp.net core #jquery ajax - insert #jquery ajax form post #modal popup dialog in asp.net core #no direct access action method #update #validation in modal popup
1618909901
The last week was an eventful one for the .NET community, with multiple releases from Microsoft - including the third preview for .NET 6, ASP.NET Core, MAUI, and EF Core 6. InfoQ examined these and a number of smaller stories in the .NET ecosystem from the week of April 5th, 2021.
The highlight of this week was the release of .NET MAUI Preview 3 as part of the .NET 6 preview release calendar. This release is important because it follows the recent release of Project Reunion 0.5, allowing early-adoption developers to use the first stable version of WinUI 3. Other features in the new MAUI release include improved startup builder, native lifecycle events, new semantics for accessibility, and updated UI controls and layouts. The development team also released a repository with sample projects that can be used with the 16.10 preview of Visual Studio 2019 (Windows).
#asp.net core #.net maui #.net core #sustainable computing #.net #c#
1624386660
It’s been a busy week for the .NET community with the release of new previews for .NET 6 and its related frameworks (including MAUI), along with the first preview of Visual Studio 2022, new Azure SDK libraries, and more. InfoQ examined these and a number of smaller stories in the .NET ecosystem from the week of June 14th, 2021.
This week’s highlight was the release of new previews for .NET 6 and its related frameworks. .NET 6 Preview 5 includes improvements to a new feature named SDK workloads, which - according to Richard Lander, program manager for the .NET team at Microsoft - is the foundation of the .NET unification vision. The new feature allows developers to add support for new application types (such as mobile and WebAssembly) without increasing the size of the SDK. The improvements to the new feature are the inclusion of two new verbs - list
and update
- providing a sense of the expected final experience with the general availability release in November. Other features in .NET 6 Preview 5 include NuGet package validation, more Roslyn analyzers, improvements in the Microsoft.Extensions
APIs (focused on hosting and dependency injection), WebSocket compression, and much more. Also according to Lander, “.NET 6 Preview 5 is perhaps the biggest preview yet in terms of breadth and quantity of features.” A comprehensive list of all features included in the new preview can be found in the official release post.
The ASP.NET Core framework also received significant improvements in .NET 6 Preview 5. One of the most important features of this release is the reduced Blazor WebAssembly download size with runtime relinking. Now developers can use the .NET WebAssembly tools (the same tools also used for .NET WebAssembly AOT compilation) to relink the runtime and remove unnecessary logic, dramatically reducing the size of the runtime. According to Microsoft, the size reduction is particularly relevant when using invariant globalization mode. Other features in the new release include .NET Hot Reload updates for dotnet watch
, faster get and set for HTTP headers, and ASP.NET Core SPA templates updated to Angular 11 and React 17.
#azure #.net #.net maui #visual studio 2019 #.net 6 #visual studio 2022 #devops #news
1620111180
This past week was marked by Microsoft joining the Bytecode Alliance. InfoQ examined this and a number of smaller stories in the .NET ecosystem from the week of April 26th, 2021.
Earlier this week, Microsoft joined the Bytecode Alliance, along with other companies such as Google and Embark Studios. Originally formed by Mozilla, Fastly, Intel, and RedHat, the objective of the non-profit organization is to “create new software foundations, building on standards such as WebAssembly and WebAssembly System Interface (WASI).” WebAssembly is the basis of the client-side hosting model for Blazor (named Blazor WebAssembly). According to Ralph Squillace, principal program manager at Microsoft:
Microsoft is excited to join the Bytecode Alliance as an incorporating member to support the effort to build a more open, scalable, secure web. WebAssembly and the emerging WebAssembly System Interface (WASI) specification enable cloud-native solutions to become more secure by default and help solve computing challenges across a variety of environments, including the ‘tiny edge’ of systems-on-a-chip (SoCs) and microcontroller units (MCUs). Microsoft looks forward to collaborating with the Bytecode Alliance members and community as this ecosystem continues to rapidly innovate and grow.
#webassembly #blazor #graphql #.net #.net 5
1622186675
Microsoft Build 2021 just wrapped up, and a lot of the new coverage was about things like the upcoming major updates to Windows, the retirement of IE and pre-Chromium Edge, and the new Windows app store that is being developed.
However, this year’s event also included some very exciting news for software developers and teams, including a new version of Windows Terminal and support for Linus GUI apps via the Windows Subsystem for Linux.
I’ve summarized a few of my other favorite tidbits below.
The ASP.NET team is introducing a new way to create APIs with much less overhead than MVC and very little ceremony or wire-up code to write.
app.MapGet("/", async httpContext =>
{
await httpContext.Response.WriteAsync("Hello World!");
});
Read more on the ASP.NET blog.
#.net core #.net #.net maui #asp.net #blazor