最近20条动态(数据无延迟、实时推送)
-
匿名
于浏览资讯(27.46.69.*)
Using Dotnet CLI To Setup ASP.NET CORE Solution And Run With Tye
I have always created more complex solutions, which are more than 1 project, through the friendly and familiar UI of Visual Studio. Now we have had multiple version of dotnet core and we are about to receive .NET 5 by the end of the year I thought it would be fun to see if I can setup a more involved solution purely on the command line.
-
匿名
于浏览教程(117.25.59.***)
LINQ方法语法(LINQ Method Syntax)在上一节《LINQ查询语法》中,我们学习了LINQ查询语法的语法和基本使用,本节将学习LINQ的另一种语法—LINQ方法语法。 与LINQ查询语...
-
匿名
于浏览文章(27.46.69.*)
[C#].NET/C#应用程序开发中优雅地将一个按字节为单位的文件大小转换成人类可读的单位大小(KB,MB,GB,TB)的方法有哪些?
问题描述在.NET/C#的应用程序开发过程中,我们如何将一个以字节为单位的文件大小优雅地转换成人类可读的单位大小(KB,MB,GB,TB)呢?比如,当前有一个文件,以字节为单位的大小为: 7,326,629如何将这个字节单位转换为MB为单位呢?方案一使用FileInfo类为转换,如下:string[...
-
匿名
于浏览资讯(111.221.233.**)
Linq 可以轻松的查询对象集合。Linq代表语言集成查询,是.NET框架的扩展,支持从数据库、程序对象的集合以及XML文档中查询数据一个简单的示例:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ...
-
匿名
于浏览资讯(113.88.76.***)
Experimenting with ASP.NET Core Authentication Schemes
Some software is easier to understand if you remove the software from it’s usual environment and try some experiments. ASP.NET Security components, for example. What is the impact of having multiple authentication schemes? Why does a ClaimsPrincipal have multiple identities? What does it mean to SignOutAsync on an HttpContext? You’ll never use the following code in a real application. But, you might use this code to tinker and experiment.
-
匿名
于浏览资讯(27.46.75.*)
Using Google Cloud Storage in ASP.Net Core
In this post, I will show how to use Google Cloud Storage (GCS) to store and serve images of an ASP.NET Core web application.
-
匿名
于浏览资讯(113.88.76.***)
Use TempDataAttribute For Clean Code
In a previous post, I wrote about solving the form resubmission confirm issue that many developers run into when building web applications. In ASP.NET MVC, we have many tools at our disposal to pass information from one method to another, the most common being the TempDataProvider. In this short but enlightening post, we’ll take a look at how we can use a new feature in ASP.NET Core to clean up our usages of TempData.
-
匿名
于浏览教程(34.58.164.***)
C#+ADO.NET实现对SQL Server数据库的写入、更新、删除数据操作
概述上节《C#+ADO.NET读取MSSQL Server数据库中的数据》中,我们学习了在C#控制台应用程序中通过ADO.NET读取MSSQL Server数据库中数据的两种主要方式,分别是:通过Da...
-
匿名
于浏览文章(144.76.19.***)
.NET[C#]使用一行LINQ语句实现字符串数组(string[])到数字数组(int[])的转换?
.NET[C#]使用一行LINQ语句实现字符串数组(string[])到数字数组(int[])的转换?问题描述比如需有如下的字符串数组:var arr = new string[] { "1", "2", "3", "4"...
-
匿名
于浏览资讯(35.226.18.**)
从单体系统到微服务的正确打开方式原文标题:How to break a Monolith into Microservices原文链接:https://martinfowler.com/arti...注:每一段译文后跟作者原文,原文中可能包含着作者所提到的内容的跳转超链接。解耦目标和解耦时机随着整个系统变得过于庞大而难以应对,许多企业开始倾向于将其分解开来,转变为微服务架构。这是一个很有价值的旅程...
-
匿名
于浏览资讯(114.119.156.**)
In this article, we are going to look into Health Checks in ASP.NET Core. Then we are going to look into the Health Checks Middleware provided by ASP.NET Core to create some checks and add a nice dashboard to view all our Health Checks. Finally, we will briefly look at some ways to make our Health Check endpoints more secure.
-
匿名
于浏览问题(223.74.199.**)
C#/.NET/.NET Core应用程序编程开发中如何在运行时创建一个动态的类呢?
在C#/.NET的应用程序编程开发中,如何在运行时创建一个动态的类呢?比如,当前有一个实例类Field: public class Field { public string FieldName; public string...
-
匿名
于浏览资讯(216.244.66.***)
2018年5月4日,Angular6.0.0版正式发布,新版本主要关注底层框架和工具链,目的在于使其变得更小更快。下面就介绍下新版本的一些主要新特性,供大家参考。ng updateng update 是新增的一个cli命令。通过ng update不仅可以保持正确的版本依赖,而且能保持依赖关系的同步。第三方可以使用原理图提供更新脚本。如果您的某个依赖项提供了一个ng update原理图,那么他们...
-
匿名
于浏览资讯(122.8.92.***)
深入理解.NET Core的基元: deps.json, runtimeconfig.json, dll文件
原文链接: Deep-dive into .NET Core primitives: deps.json, runtimeconfig.json, and dll's作者: Nate McMasterC#编译器(The C# Compiler)C#的编译器可以将cs文件转换为dll文件, 即程序集文件。程序集文件是一个便携的可执行格式文件, 借助.NET Core,它可以运行在Window...
-
匿名
于浏览资讯(216.244.66.***)
Someone recently asked me why I was so enthusiastic about Blazor. This person didn’t like the programming experience as much as their JavaScript framework. So, here’s the deal. If you are happy with your stack, your tribe, rock on. Blazor obviously isn’t for you. So, who is it for?
-
匿名
于浏览资讯(216.244.66.***)
AOF简介Redis拥有者两种的持久化存储的方式一中是rdb序列化存储db的信息另外一种就是aof.Append-only file,将“操作 + 数据”以格式化指令的方式追加到操作日志文件的尾部,在append操作返回后(已经写入到文件或者即将写入),才进行实际的数据变更,“日志文件”保存了历史所有的操作过程;当server需要数据恢复时,可以直接replay此日志文件,即可还原所有的操作过程。...
-
匿名
于浏览个人主页(216.244.66.***)
浏览用户[miss]的个人主页
-
匿名
于浏览资讯(157.55.39.*)
Any() vs Count() in .NET: Which One is Better?
In this article, we are going to learn the main differences between Any and Count methods from LINQ. We work with different collections in C# all the time, and we often need to check if there are any records inside the collection or if it is empty. Both methods can help us to achieve that. We are going to see how each method works internally and compare the efficiency of each approach to determine which one we should use in specific use cases.
-
匿名
于浏览资讯(216.244.66.***)
Visual Studio 2017 15.8 正式发布,测试速度提高 82%
通过“工具”>“选项”>“项目”>“解决方案”>“常规”切换此选项。测试性能显著提升了在运行包含多个测试项目的大型解决方案期间的性能。 在我们的实验室中,超过 10,000 个 MSTest 的解决方案执行单个测试的速度提高了 82%!Visual Basic 性能改进Visual Basic 现显著提升了使用 CInt (Fix (number)) 模式将非整数类型转换为整数时的...
-
匿名
于浏览文章(144.76.19.***)
.NET[C#]LINQ将List<string>集合使用连接符连接成单个字符串?
.NET[C#]LINQ将List<string>集合使用连接符连接成单个字符串?问题描述比如有字符串集合:List<string> items = new List<string>() { "foo", "boo", &q...