网站实时动态码友网--专注C#/.NET/.NET Core开发的编程爱好者社区

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

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

    Testing and Configuration in .NET Core

    When running automated tests, or running things locally, I often want to use a different configuration to what I would run in production. A JSON file often suffices for local development, however this isn’t useful for automated tests where I want different configurations for different tests, or if my configuration is dynamic (e.g. I need to spin up a docker container during startup, and I have to get some configuration from that on the fly).

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

    ASP.NET MVC Upload Multiple Files using HttpPostedFileBase

    ASP.NET MVC Uploading multiple Files using HttpPostedFileBase example: Often in a web project we have to integrate file upload control which can accept multiple files from the users and save it on the server side. In this example, we will see how to upload multiple files using HttpPostedFileBase in ASP.NET MVC project. Example shows a simple web page with one file input control which is being passed to the controller method and files are copied to a specified server folder location.

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

    ReactiveUI - ReactiveUI On The Web with Blazor

    I hope by now people are starting to learn about the existence of the ReactiveUI.Blazor package. Blazor means "writing Single Page Apps like Angular or Vue in C#" and it has all the potential in the world. And ReactiveUI supports it. The official samples are here but I don't feel that they really sell the reason why you'd want to do web work with ReactiveUI, and I should know, I wrote them.

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

    .NET Core November 2020 Updates – 3.1.10

    Today, we are releasing the .NET Core November 2020 Update. These updates contains reliability and other non-security fixes. See the individual release notes for details on updated packages.

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

    ASP.Net Core with HTTPS in Docker

    In my last post, I dockerized my ASP .net core 3.1 microservices but the HTTPS connection didn’t work. Kestrel needs a certificate to process HTTPS requests. Today, I will show you how to create a development certificate and how to provide it to your Docker container so you can use ASP .Net Core with HTTPS in Docker.

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

    选择要返回的字段

    概述在使用NEST查询Elasticsearch索引文档过程中,有时你可能不需要从一个搜索查询返回文档的所有字段。例如,当显示博客的最近文章时,你可能只需要从查询到的最近文章结果集中返回博客的标题。 ...

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

    C#委托(delegate、Action、Func、predicate)和事件

    刚开始工作的时候,觉得委托和事件有些神秘,而当你理解他们之后,也觉得好像没有想象中的那么难。在项目中运用委托和事件,你会发现他非常棒,这篇博文算是自己对委托和事件的一次梳理和总结。

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

    .NET[C#]泛型集合List<T>中如何按照泛型的某个属性排序,除了Linq你还能想什么哪些方式?

    问题描述.NET[C#]泛型集合List<T>中如何按照泛型的某个属性排序?比如有个类,它包含了OrderNumber,CreatedOn,Price以及Total等字段,现在有如下的代码片段:List<Order> listOrder = new List<Order...

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

    SQL2005,SQL2008,SQL2012等数据处理之用CTE删除重复数据的复本

    今天我们来检验一个用SQL SERVER 2005或者以后版本中的CTE和ROW_NUMBER() 功能来删除重复数据复本的代码片段。首先,我们需要创建一个用于测试的表,并在该表里插入几条数据(包括重复的数据),代码如下:/* Create Table with 7 records- 3 are d...

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

    Writing Honest Methods in C#

    This C# tutorial describes approaches for making methods/functions more honest. A more honest method makes it easier for readers to understand what the method does by reading its signature, i.e., without reading its implementation.

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

    Visual Studio 2019 版本 16.7 预览版 4 发布

    此次发布的 Visual Studio 2019 版本 16.7 预览版 4 内容 Git 效率 在 "Git 存储库" 窗口中查看传出提交 Git 生产力团队博客,其中包含最新功能的详细信息 测试资源管理器 “Run/Debug All T...

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

    [NewLife.XCode]对象字典缓存(百万军中取敌首级)

    NewLife.XCode是一个有10多年历史的开源数据中间件,支持nfx/netcore,由新生命团队(2002~2019)开发完成并维护至今,以下简称XCode。整个系列教程会大量结合示例代码和运行日志来进行深入分析,蕴含多年开发经验于其中,代表作有百亿级大数据实时计算项目。开源地址:https://github.com/NewLifeX/X (求star, 770+) 单对象...

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

    Windows操作系统中如何更改.nuget程序包默认路径(目录)呢?

    对于.NET开发者来说,无论是C#还是VB.NET语言,只要使用了NuGet程序包管理工具,开发环境的系统盘登录账户下均会默认生成一个存储NuGet程序包缓存的文件夹.nuget。 如果项目安装了诸多NuGet程序包,则这个.nuget文件...

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

    [javascript]使用jQuery如何选中一个复选框(checkbox)?

    问题描述如题,当前有需求,需要使用jQuery选中一个复选框(checkbox),以下为jQuery的伪代码:$(".myCheckBox").checked(true);或者$(".myCheckBox").selected(true);那么,使用jQuer...

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

    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.

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

    从壹开始前后端分离 [ Vue2.0+.NetCore2.1] 二十六║Client渲染、Server渲染知多少{补充}

    前言书接上文,昨天简单的说到了 SSR 服务端渲染的相关内容《二十五║初探SSR服务端渲染》,主要说明了相关概念,以及为什么使用等,昨天的一个小栗子因为时间问题,没有好好的给大家铺开来讲,今天呢,咱们就继续说一下这个 SSR 服务端渲染,并结合着 Client 客户端渲染,一起说一说相关的内容,当然还是围绕着原理来的,并不是要搭建项目,项目我会在下一个系列说到,经过和群里小伙伴的商量,并采纳大家的...

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

    Prerendering your Blazor WASM application with .NET 5 (part 2 - solving the missing HttpClient problem)

    In part 1 we saw how to set up your Blazor WASM site for prerendering. This means you can serve your application nice and quickly to your users without making them wait for Blazor WASM to finish loading. However, we were left with a bit of a problem. When you navigate to the /FetchData page and hit refresh you get an error that HttpClient hasn’t been registered.

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

    为 .net 生态贡献力量——制作并上传 nuget 包(内有独家彩蛋)

    nuget 是 .net 的常用包管理器,目前已经内置到 Visual Studio 2012 以后的版本。大多数 .net 包都托管在 nuget.org,包括 .net core 框架基础包,得益于 .net core 的模块化设计,很多非核心包都可以进行一定程度的独立升级。

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

    C#/.NET应用程序编程开发中如何对一个泛型集合进行LINQ动态分组(GroupBy)?

    问题描述在C#/.NET应用程序编程开发中,如何对一个泛型集合进行LINQ动态分组(GroupBy)?当前有一个泛型集合,一般情况下,使用LINQ进行分组都是按固定属性名称,比如有一个Customer集合,现要按固定的属性Grade进行分组统计数量,如下:using System;using Sys...

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

    什么是ADO.NET?

    概述ADO.NET是为.NET框架开发者公开数据访问服务的一组类。ADO.NET提供了一组丰富的组件来创建分布式的、数据共享的应用程序。它是.NET框架不可分割的一部分,提供对关系数据、XML和应用程...