Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Return NoContent
Authentication and Authorization Best Practices in ASP.NET Core
Authentication and authorization are two pillars of application security. Authentication verifies the identity of a user, while Authorization determines what that authenticated user is allowed to do. Understanding and applying proven tools is critical to prevent common vulnerabilities such as unauthorized access and data leaks. In today's post, I will walk you through the best practices for implementing both authentication and authorization in ASP.NET Core.
Implementing the Saga Pattern in C#
The Saga pattern is a design pattern that addresses the complexities involved in managing distributed transactions and ensuring data consistency across microservices. It breaks down a long-running transaction into a series of smaller, manageable transactions. Each transaction is coordinated by a saga orchestrator or via a choreography approach. If any transaction fails, the pattern ensures compensating actions are executed to maintain data integrity. Why Use the Saga Pattern?
Getting Started with ASP.NET Core API, EF Core, and PostgreSQL on Neon
Developing applications with ASP.NET Core is a powerful way to build high-performance and cross-platform web APIs. In this guide, we’ll integrate Entity Framework Core with PostgreSQL, hosted on Neon, to handle CRUD (Create, Read, Update, Delete) operations for a "Products" table. Prerequisites Visual Studio 2022 (or later) or Visual Studio Code with the .NET SDK 6+. Free account on Neon.tech, a fully managed serverless PostgreSQL provider. Postman (optional) to test the API endpoints.
Getting Started with Entity Framework Core
In this second part of the Entity Framework Core series, we will walk through the steps of setting up a basic project with EF Core, installing the required NuGet packages, configuring the DbContext, creating the first migration, and performing basic CRUD operations. We'll build an example application to manage events, categories, and attendees, which will continue to evolve as we progress through the series. To get started, create a new ASP.NET Core project in Visual Studio.
Manipulating Databases
Manipulating databases is a common activity in a web developer’s routine, so it is important to know the main approaches used to carry out this task and what features are available in ASP.NET Core. Learn about Code First and Database First with practical examples. Creating and maintaining databases is an essential part of web application development.
Developing Minimal APIs Quickly With ASP.NET Core
In today's web development landscape, the importance of crafting lightweight and efficient APIs cannot be overstated. Minimal APIs provide an efficient way to build APIs with complexity cutting down on unnecessary code and boosting developer efficiency.
.NET Aspire: Building Cloud-Native Applications
In today's fast-paced software development landscape the demand for resilient and easily manageable applications is more crucial than ever. .NET Aspire steps in to cater to these needs by offering a framework that streamlines the creation of native applications. This article will introduce you to .NET Aspire, and its core functionalities and present real-world examples to kickstart your journey. What Is .NET Aspire?
Revolutionizing Content Management
Implementing the Composite Pattern along with a Clean Architecture in an ASP.NET Core Web API involves multiple layers such as Presentation, Application, Domain, and Infrastructure. Additionally, you would need to create models, repositories, and services to achieve complete CRUD functionality. Below is a simplified example demonstrating the implementation.
使用MediatR和FluentValidation实现CQRS应用程序的数据验证 - 赵榕 - 博客园
本文将重点介绍如何通过MediatR的管道功能将FluentValidation集成到项目中实现验证功能。 什么是CQRS? CQRS(Command Query Responsibility Segregation)也叫命令查询职责分离,是近年来非常流行的应用程序架构模式。CQRS 背后的理念是在逻辑上将应用程序的流程分成两个独立的流程,即命令或查询。 命令用于改变应用程序的状态。对应CRUD的创建、更新和删除部分。查询用于检索应用程序中的信息,对应CRUD的读取部分。 优点: 单一职责 – 命令和查询只有一个职责。要么更改应用程序的状态,要么检索它。因此它们很容易推理和理解。 解耦 – 命令或查询与其处理程序完全解耦,因此在处理程序方面有很大的灵活性,可以按照自己认为最合适的方式来实现。 可扩展性 – CQRS 模式在如何组织数据存储方面非常灵活,为您提供了多种可扩展性选择。您可以将一个数据库用于命令和 查询。您可以使用独立的读/写数据库来提高性能,并在数据库之间使用消息传递或复制来实现同步。 可测试性 –...
用ChatGPT写一个REST API!
2023-04-10 14:20:47 ChatGPT是OpenAI公司开发的大型语言模型。在本文中,主要探讨如何使用ChatGPT在C#中创建REST API。 译者 | 朱先忠 策划 | 云昭 51CTO读者成长计划社群招募,咨询小助手(微信号:TTalkxiaozhuli) 一、简介 ChatGPT是由人工智能研究中心OpenAI创建的尖端自然语言处理模型,OpenAI公司是由埃隆·马斯克、萨姆·奥特曼和格雷格·布罗克曼共同创办的。该模型于2018年6月发布,并不断进行修改和升级,最新版本GPT-3(https://openai.com/blog/gpt-3-apps)于2020年发布。时下最火的ChatGPT是基于GPT-3模型开发而成,并于2022年发布。ChatGPT中的“GPT”代表“Generative Pre-trained...
Create a REST API in C# Using ChatGPT
ChatGPT is a cutting-edge natural language processing model created by OpenAI, an artificial intelligence research center founded by Elon Musk, Sam Altman, and Greg Brockman. The model was announced in June 2018, and has continuously been modified and upgraded, with the most recent version, GPT-3, being released in 2020. ChatGPT was made from GPT-3, and was released back in 2022.
What’s New in .NET 7 for Minimal APIs?
.NET 7 arrived and brought three great features to minimal APIs. Check out in this blog post what’s new with practical examples. Minimal APIs arrived with the promise of simplifying the creation of microservices and Web REST APIs, and although they already had several features in their launch in .NET 6, there are still many features that are under development.
Use web API conventions
Read in English Read in English Feedback Edit Twitter LinkedIn Facebook Email Article 10/11/2022 3 minutes to read In this article Common API documentation can be extracted and applied to multiple actions, controllers, or all controllers within an assembly. Web API conventions are a substitute for decorating individual actions with [ProducesResponseType]. A convention allows you to: Define the most common return types and status codes returned from a specific type of action.
Developing a Cloud-Native Application on Microsoft Azure Using Open Source Technologies
Key Takeaways Cloud native, best practices, open-source, terraform & azure rm, github The cloud native is not just a tool but an approach in building from scratch an application taking advantage of many modern patterns, frameworks, tools and DevOps methodologies. Distributed systems are more and more popular but as they bring undoubted benefits, but at the same time increase complexity leading developers to face new challenges - following best practices is essential.
Connecting a .NET Application with MongoDB Atlas
You have probably heard of MongoDB, one of the most popular NoSQL databases today. In this article, we are going to create an application in .NET 6 and connect it to MongoDB Atlas simply and objectively. Something that is strictly linked to software development is databases, so software developers must be familiar with this subject. A database that has been standing out in recent years is MongoDB, which is a NoSQL database and has a valuable resource, the MongoDB Atlas.
.NET 6 Has Arrived: Here Are a Few of My Favorite Things
In this article, let’s explore .NET 6 features like Hot Reload, minimal APIs, HTTP Logging and Blazor improvements. For the second straight November, .NET developers have received an early holiday gift: a new release of the .NET platform. Last month, Microsoft made .NET 6 generally available—and hosted a virtual conference to celebrate its new features. What were the goals of .NET 6?
ASP.NET Core for Beginners: Web APIs
If you work with the .NET platform or are new to this area, you need to know about Web APIs—robust and secure applications that use the HTTP protocol to communicate between servers and clients and are in high demand in the market. What Is a Web API? Application Programming Interfaces (APIs) are basically HTTP services that are used to communicate between applications in a simple and centralized way.
Adaptive Hierarchical Knowledge Management, Part I
Knowledge management (KM) is multidimensional, with the ability to search for, capture, update, and maintain relevant information all in a single platform. Anyone can curate or update information in real-time, sparking conversation and collaboration among peers and departments. Think of KM as a subset of content management that specializes in knowledge distribution.
Displaying Sql Results In Asp.Net Core
Learn how to effectively execute and display SQL queries in ASP.NET Core applications for optimal data management. The framework for autonomous intelligence To effectively fetch data using SQL queries in ASP.NET Core, it is essential to understand how to structure your queries and utilize the Entity Framework Core (EF Core) for optimal performance. This section will delve into the specifics of executing SQL queries, focusing on best practices and efficient data retrieval methods.
Building AI Software .Net Core MVC API
Explore how to create API controllers in .Net Core MVC for AI software development, enhancing your programming skills. The framework for autonomous intelligence To create a .NET Core MVC API controller, you need to follow a structured approach that ensures your API is both functional and maintainable. Start by setting up your project with the necessary dependencies. Ensure you have the Microsoft.AspNetCore.Mvc package installed, as it provides the core functionalities for building MVC applications.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Return
Contact Return, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack