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

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

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

    [SQL Server]SQL Server数据库中搜索包含指定关键字的所有表的数据集合的方法有哪些?

    [SQL Server]SQL Server数据库中搜索包含指定关键字的所有表的数据集合的方法有哪些?方案一从所有表中搜索:SELECT c.name AS 'ColumnName' ,t.name AS 'TableName'FRO...

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

    User Secrets in Docker-based .NET Core Worker Applications

    As part of the recent Message Endpoints in Azure series, I wanted to check out the new .NET Core 3.0 Worker templates to see how the templates have improved the situation (actually, a lot), but there are still some things missing from the Worker SDK versus the Web SDK.

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

    dotCover 2019.3 新增功能

    在 2019 年的最新版本中,dotCover 获得了一些新增功能: 支持 JetBrains Rider 中的 Unity测 试。 在 Visual Studio 2017 或更高版本中支持 Microsoft Fakes。 可以通过 Rider 和 Visual...

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

    自动将 NuGet 包的引用方式从 packages.config 升级为 PackageReference

    在前段时间我写了一篇迁移 csproj 格式的博客 将 WPF、UWP 以及其他各种类型的旧 csproj 迁移成基于 Microsoft.NET.Sdk 的新 csproj,不过全过程是手工进行的,而且到最后处理 XAML 问题也非常头疼。现在,我们可以利用工具自动地完成这个过程。当然,工具并不将 csproj 格式进行迁移,而是在不迁移格式的情况下,使用到 PackageRefer...

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

    Using Dynamic LINQ With System.Linq.Dynamic.Core Library

    In most applications, we query data from a source, a database, for instance, and perform operations on that data. For this, we use can use LINQ. However, when we want to unlock more powerful features of the C# language, we use the System.Linq.Dynamic.Core library. In this article, we are going to learn about this library and its features through different use cases.

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

    Managing State in Vue.js

    I’ve recently given a few talks on the multiple different ways one can manage application level state in a Vue.js application. Realizing a lot of the content I’ve shared might be useful if in a written format, I’ve prepared this article to summarize the majority of ways we can think about managing state (i.e. data) in a Vue application.

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

    Handling Exceptions With Refit

    Refit is a very brilliant library that allows you to call REST APIs with minimal code. You just need to define an interface and write an implementation. Refit does the rest.

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

    Dependency Injection in .NET 6 - Adding and Injecting Dependencies

    This post is part 2 of a 3-part series. You might want to read Part 1 first.We know from the previous post in this series that in order to make a dependency injectable into another code object, the dependency must: Have an abstraction (most commonly an interface)...

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

    .NET Core下开源任务调度框架Hangfire的Api任务拓展(支持秒级任务)

    最近由于之前的任务调度框架总出现问题,因此想寻找一个替代品,之前使用的是Quartz.Net,这个框架方便之处就是支持cron表达式适合复杂日期场景使用,以及秒级任务。但是配置比较复杂,而且管理不方便,自己开发了个web管理页面,不过这个需要额外的单独线程去统一管理工作状态,很容易出现问题。 有考虑过 “FluentScheduler” ,使用简单,但是管理配置也很麻烦,我希望能做到配置简单,管理方便,高性能。最后想到了以前听过的hangfire,它的好处就是自带控制面板,在园子里看了很多相关资料,偶然发现了有人拓展过hangfire通过调用api接口来执行任务,这种方式可以避免依赖本地代码,方便部署,在此基础上,我用空闲时间拓展了一下现在已经基本可以满足需求。

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

    C#/.NET应用程序编程开发中如何根据主键读取或者设置(改变)特定的系统环境变量的值?

    问题描述在Windows操作系统,使用C#进行应用程序编程开发时,如何检测指定的环境变量是否存在?如果不存在,又怎样使用C#设置指定环境变量的值呢?方案一在.NET Framework中内置了可以操作Windows操作系统的类System.Environment。C#读取指定环境变量名的值的方法Ge...

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

    Bootstrap 如何实现两个元素垂直居中对齐呢?

    在Bootstrap进行前端网页设计和开发中,现需要对两个div元素进行垂直居中对齐,示例如下: <link rel="stylesheet" href="https://maxcdn.bootstrap...

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

    C#&.NET程序如何把bin目录下建立image文件夹内的多张图片读取到picturebox中呢?

    C#&.NET如何把bin目录下建立image文件夹内的图片读取到picturebox中,并且点击上一张,下一张可以换呢? 实现效果类似如下:

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

    ASP.NET Core中使用GraphQL - 第六章 使用EF Core作为持久化仓储

    ASP.NET Core中使用GraphQLASP.NET Core中使用GraphQL - 第一章 Hello WorldASP.NET Core中使用GraphQL - 第二章 中间件ASP.NET Core中使用GraphQL - 第三章 依赖注入ASP.NET Core中使用GraphQL - 第四章 GrahpiQLASP.NET Core中使用GraphQL - 第五章 字段,...

  • 匿名 浏览教程(114.119.138.**)

    定期嗅探

    SupportsReseeding返回结果为true的连接池可被配置成定期嗅探。除了在启动时嗅探和故障时嗅探之外,定期嗅探还在集群经常在高峰时间水平伸缩的场景中有帮助。应用程序可能拥有节点子集的健康视...

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

    Tenant-based dependency injection in multi-tenant ASP.NET Core applications

    One need in multitenant applications is injecting dependencies based on tenant configuration. It can be actually more complex as instances may need constructor parameters. Here is my example of dynamic injection of multiple file clients in ASP.NET Core multi-tenant web application.

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

    Using .NET and Docker Together - DockerCon 2018 Update

    I posted about Using .NET and Docker Togetherlast year. With DockerCon 2018being this week, it seemed like a great time to give you an update.  Since my last post, we’ve enabled a set of Docker workfl...

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

    【源码】进入ASP.NET MVC流程的大门 - UrlRoutingModule

    在ASP.NET MVC的请求过程中,UrlRoutingModule的作用是拦截当前的请求URL,通过URL来解析出RouteData,为后续的一系列流程提供所需的数据,比如Controller、Action等等。其实,UrlRoutingModule和我们自定义的HttpModule都是实现了IHttpModule接口的两个核心方法,Init方法和Dispose方法。下面是MVC中实现UrlRoutingModule代码。首先,在初始化的方法中检查该Module是否被加入到了当前请求的请求管道,然后注册了管道事件中的PostResolveRequestCache事件。其实最理想的注册事件应该是MapRequestHandler事件,但是为了考虑到兼容性(IIS 6 和 IIS 7 ISAPI模式下不可用),微软选择了紧邻MapRequestHandler事件之前的PostResolveRequestCache事件。

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

    C#/.NET/.NET Core应用程序编程开发中如何判断一个实例对象的数据类型是否为数组类型?

    在C#/.NET/.NET Core应用程序编程开发中如何,判断一个实例对象的数据类型是否为数组类型,应该怎样实现呢?

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

    SQL Server中编写自动生成指定时间段内按小时的连续的数据列表并按每个小时统计数据的SQL语句示例

    前言在我们编写SQL语句的时候,有可能遇到这样的场景:有一张用户信息表,里面记录和用户的一些数据,如:ID,姓名,创建时间…,为了了解每天每个时段(按小时)的用户创建量数据,我们需要从这张用户信息表的数据来统计。其中有可能用户创建时间的小时部分不是连续的,但统计出来的数据需要按小时连续,缺失的小时使...

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

    分享一款开源的非常轻量精美的jQuery模态弹窗插件(jquery-confirm),包含Bootstrap,Material等多种主题

    前言今天为大家分享一款开源的非常轻量且精美的jQuery模态弹窗插件:jquery-confirm,它包含Bootstrap,Material等多种主题供选择。如果你的前端项目中还在使用jQuery,那么jquery-confirm是你模态弹窗的完美选择。下面我们就来零距离感受一下jquery-co...