网站实时动态码友网--专注C#&.NET/.NET Core的中文技术网站

最近20条动态(数据无延迟、实时推送)

  • 匿名 浏览资讯(188.50.82.***)

    Custom User Message Extension Methods in C# and MVC

    Since I primarily work on internal business applications, I often find myself writing the same kinds of code multiple times. One of the most common situations is a "status message" or some kind of display to the user that lets them know that something successfully happened, or there's some kind of error, or warning, or just a friendly reminder...

  • 匿名 浏览资讯(216.73.216.***)

    Built-In, Nested, Custom Validators with FluentValidation

    In the previous article, we had a brief look at how to use FluentValidation in an ASP.NET Core application, as an alternative to using Data Annotations. We’ve created a simple API and demonstrated the basic concepts of FluentValidation. So, in this article, we are going to go a bit deeper and focus more on different validators with FluentValidation, covering the types of scenarios we’re likely to hit as developers.

  • 匿名 浏览文章(18.97.14.**)

    [Dapper].NET/C#中使用Dapper如何处理多层级实体映射的问题?

    [Dapper].NET/C#中使用Dapper如何处理多层级实体映射的问题?问题描述比如,当前有一个联系人实体类 Contact 以及一个 电话号码实体类 Phone,其中一个联系人实体类 Contact 可能包含多个电话号码(IEnumerable<Phone>),具体的实体类代码如...

  • 匿名 浏览文章(27.46.75.*)

    [RestSharp].NET/C#程序开发中当使用RestSharp时如何设置请求头内容(content-type)为xml格式?

    问题描述如题,在.NET/C#的程序开发中,当前使用了RestSharp来模拟请求,向远程服务器发送xml数据,代码如下:RestRequest request = new RestRequest();request.Method = Method.POST;request.Resource = &...

  • 匿名 浏览资讯(115.201.251.**)

    MongoDB 4.2 新特性解读

    MongoDB World 2019 上发布新版本 MongoDB 4.2 Beta,包含多项数据库新特性,本文尝试从技术角度解读

  • 匿名 浏览文章(18.97.14.**)

    [SQL Server]SQL Server数据库中如何使用SQL语句查询出指定数据库的所有索引?

    问题描述C#/.NET应用程序编程开发中,如何将JSON格式数据转换成XML格式,反之又如何将XML格式转换成JSON格式呢?方案一使用第三方组件库Json.NET,Json.NET内置了JSON与XML两种数据格式的相互转换,转换示例如下:XML转换成JSONstring xml = @"...

  • 匿名 浏览资讯(1.29.90.***)

    Events in C#

    Events in C# are a mechanism that classes use to send notifications or messages to other classes. They are a specialized delegate type that we use to notify other classes when something they listen to happens. Events are a vital part of many applications, and a perfect way to decouple and create flexible and extendable applications. In this article, we are going to learn what events in C# are and how to use events in C# applications.

  • 匿名 浏览资讯(61.135.212.***)

    ASP.NET Core 3.0:将会拥有更少的依赖

    ASP.NET Core 3.0:将会拥有更少的依赖在ASP.NET Core项目中,我们使用一个叫做Microsoft.AspNetCore.App的综合包。它也被称为ASP.NET Core Shared Framework,在ASP.NET Core Shared Framework之中包含了很多依赖项,它能满足一般应用的需求。但是如果你查看它的依赖项,在ASP.NET Core3.0中它的...

  • 匿名 浏览资讯(124.234.124.***)

    PEM Loading in .NET Core and .NET 5

    PEM is a file format that typically contains a certificate or private/public keys. PEM files have had patchy support in Windows and .NET but are the norm for other platforms. However, starting with .NET 5, .NET now has out of the box support for parsing certificates and keys from PEM files. This article will show you how to manually load a PEM file in .NET Core 3.1 (the old way) and how to do the same using the new .NET 5 APIs. You’ll also see how to use PEM certificates for Kestrel TLS.

  • 匿名 浏览资讯(18.97.14.**)

    Razor Pages And Bootstrap - Modal Master Details

    This is the first in a series of posts exploring how to use some of the components provided by Bootstrap within a database-driven Razor Pages web application. In this article, I look at using the Bootstrap Modal in a Master/Details scenario, to display the details of the selected record in a master list.

  • 匿名 浏览文章(113.238.107.**)

    国内前端框架Amaze UI 又发布新版啦-- v2.5.0

    国内前端框架Amaze UI于北京时间2015年12月1日又发布新的版本了,版本号为:v2.5.0。Amaze UI v2.5.0 包括以下更新:打包的 CSS 文件中不再包含内部使用的 one 相关样式;升级 Font Awesome 至 4.5.0;使用 Webpack 替换 Browserif...

  • 匿名 浏览问题(122.6.245.***)

    Bootstrap 中是否有自带Bootstrap风格的文件上传按钮,如果没有,又应该如何自定义美化文件上传按钮的样式呢?

    如题,Bootstrap 中是否有自带Bootstrap风格的文件上传按钮,如果没有,又应该如何自定义美化文件上传按钮的样式呢?浏览器默认的文件上传按钮样式实在是看不下去了,有没有使用CSS样式来美化默认的文件上传按钮样式呢?

  • 匿名 浏览资讯(113.201.101.**)

    C# Steps Up Programming Language Popularity Ladder

    Microsoft's C# programming language climbed a year-over-year notch on the TIOBE Index, which measures popularity among developers. The June 2020 TIOBE Index shows C# climbing to fifth place, one step up from the June 2019 report.

  • 匿名 浏览资讯(117.35.31.***)

    .Net微服务实践(五)[服务发现]:Consul介绍和环境搭建

    在上篇.Net微服务实践(四)[网关]:Ocelot限流熔断、缓存以及负载均衡中介绍Ocelot的限流、熔断、缓存、负载均衡以及其他一些特性,Ocelot的基本配置和功能都已经介绍完了。本篇我们会介绍服务发现Consul.

  • 匿名 浏览问题(18.97.14.**)

    C#&.NET Core(.NET 7)程序中如何使用Elasticsearch.Net和NEST直接执行原始的DSL查询脚本语句呢?

    Elasticsearch(简称:ES)是一种流行的分布式搜索和分析引擎,可以快速、可靠地存储和检索大量数据。在.NET Core中使用Elasticsearch可以帮助我们轻松地将搜索和分析功能集成到我们的应用程序中。 现在需要在C#&a...

  • 匿名 浏览资讯(1.194.142.**)

    Element 2.5.1 发布,基于 Vue 2.0 的桌面端组件库

    Element 2.5.1 发布了,Element 是一套为开发者、设计师和产品经理准备的基于 Vue 2.0 的桌面端组件库,提供了配套设计资源,帮助你的网站快速成型。由饿了么公司前端团队开源。更新内容优化DatePicker:添加月、年高亮的样式(by @Debiancc in #14211)更新 2.5.0 c...

  • 匿名 浏览资讯(116.149.17.***)

    Taking A Screenshot Of A WebPage In .NET Core

    I came across an interesting problem while developing a monitoring tool recently. It was a simple HTTP check to see if a webpage had a certain piece of text on it. When it didn’t, I was saving the HTML and I had to sift through it at a later date to try and work out what went wrong. At some point, reading HTML (Or loading the HTML without any CSS/JS) become really tiresome so what I really wanted was the ability to take a screenshot of a webpage and save it as an image.

  • 匿名 浏览资讯(41.242.163.***)

    .Net Core中的IOptions

    .NET Core为咱们提供的默认依赖注入方式[Microsoft.Extensions.DependencyInjection]相对来说功能已经很完善了,虽然有一些功能没有实现(比如在使用factory进行注册时无法获取type等),但并不影响我们令接口与实现进行分离。

  • 匿名 浏览资讯(18.97.14.**)

    Role-Based Authorization with Blazor WebAssembly

    Up until now, we have learned how to use AuthenticationStateProvider in Blazor WebAssembly. Additionally, we have learned how to create registration functionality as well as Login and Logout functionalities in our application. But what about the roles? Well, in this article, we are going to learn how to create a role-based authorization in our Blazor WebAssembly application and how to modify AuthenticationStateProvider to support this feature.

  • 匿名 浏览文章(123.53.230.**)

    [Dapper].NET/C#程序开发中使用Dapper批量插入数据集合的方法应该如何实现?

    问题描述使用Dapper如何向数据库中批量插入数据或者说使用Dapper如何插入一个集合(List<T>),在没有使用Dapper(使用Ado.net)的情况下,我们通常的实现方式如下:try { connection.Open(); for (...