• 匿名 浏览资讯

    Exploring WebWindow examples for Blazor on desktop

    Blazor on desktop is one of latest hot topics and .NET Conf: Focus on Blazor only added more fuel to fire. Blazor seems to come everywhere and it’s unstoppable. One of interesting desktop experiments is WebWindow by Steve Sanderson. It’s cross-platform component to make Blazor WebAssembly applications run on desktop. Let’s take a closer look at WebWindow and Blazor on desktop.

  • 匿名 浏览文章

    [Bootstrap]Bootstrap中按钮如何设置靠右对齐呢?

    问题描述如题,Bootstrap中如何将以下列表中的按钮设置为靠右对齐呢?以下是一段简单的示例,需要将其中每个li中的按钮靠右对齐:<ul> <li>One <input class="btn pull-right" value="t...

  • 匿名 浏览资讯

    Minesweeper in Blazor WebAssembly Part 2: The Blazor Component

    In our previous post, we demonstrated how to model the classic computer game Minesweeper as a C# program. In this post, we're going to take that model and use Blazor WebAssembly to create a working game. Plus I've got a very special announcement near the end of this post that you don't want to miss. Let's go!

  • 匿名 浏览资讯

    【5min+】 一个令牌走天下!.Net Core中的ChangeToken

    ChangeToken这个东西好像已经不止看到它一次两次了,在Microsoft.Extensions.FileProviders包里面也有发现它的身影。迷惑了很久之后,今天总算可以找个机会来扒一扒它,看看它到底是一个什么东西。其实,从MSDN里面的第一句描述以及这个类的命名,咱们还是可以读懂它的大致意思的。这不就是一个像观察者模式的东西吗? 当某某某发生变化的时候,就执行一个某某操作。

  • 匿名 浏览资讯

    Zero Installer, Zero MSIX, Zero Packaging with .NET Single File Apps

    A feature that was added to .NET Core apps was the ability to publish as a single file. As we approach the release of .NET 5 I thought it worthwhile taking a look at the options for publishing Windows Forms and WPF applications with dotnet publish. For this post we’re going to work with a …

  • 匿名 浏览资讯

    .NET Core开发日志——配置

    .NET Core开发日志——配置熟悉ASP.NET的开发者一定对web.config文件不陌生。在ASP.NET环境中,要想添加配置参数,一般也都会在此文件中操作。其中最常用的莫过于AppSettings与ConnectionStrings两项。而要在代码中获得文件中的配置信息,ConfigurationManager则是必不可少需要引入的程序集。然而到了ASP.NET Core时代,存储与...

  • 匿名 浏览文章

    Log4net 的 ASP.NET Core 扩展库

    给大家安利一款 log4net 的 ASP.NET Core 扩展库,它是基于 log4net 开发的。 简单易用,开源免费,使用ASP.NET Core自身提供的DI容器来实现服务的注册和消费。直接在程序启动时注册到服务中即可完成全部配置,对于小白用户也可快速上手 log4net 日志组件。Lig...

  • 匿名 浏览资讯

    在.Net Core WebAPI下给Swagger增加导出离线文档功能

    一丶前言  最近刚接触到Swagger,在github上下载了它的源码和demo学习了一遍,发现这个组件非常好用,不过不足的是它没有导出离线文档的功能,于是乎我就想给它加一个导出功能 Swagger Github开源地址二丶思路其实说白了api文档就是一个html静态页面,html可以转word或者pdf,那问题就变简单了。1.想办法拿到swagger生成的api接口json数据。...

  • 匿名 浏览资讯

    ASP.NET Core Razor生成Html静态文件

    一、前言最近做项目的时候,使用Util进行开发,使用Razor写前端页面。初次使用感觉还是不大习惯,之前都是前后端分离的方式开发的,但是使用Util封装后的Angular后,感觉开发效率还是杠杠滴。二、问题在发布代码的时候,Webpack打包异常,提示是缺少了某些Html文件,我看了下相应的目录,发现目录缺少了部分Html文件,然后就问了何镇汐大大,给出的解决方案是,每个页面都需要访问一下才能...

  • 匿名 浏览文章

    .NET[C#]使用LINQ操作DataTable常用的方式

    前言在.NET[C#]的程序开发中,如果你还不会LINQ,那么你真的是OUT了,虽然说LINQ不是方能的,但没有LINQ,你的开发效率会大打折扣。在.NET[C#]的开发中,我们又是如何使用LINQ对DataTable进行操作呢?创建示例//创建 DataTable DataTable dt= ne...

  • 匿名 浏览资讯

    How to get the SyntaxNode of an ISymbol using Roslyn

    In this post, I’ll describe how to determine if a property is an auto-property, using its ISymbol as the source, and not by using reflection into Roslyn which computes this information internally. During the original development of the Uno CodeGen source generators, when building the Immutable generators (soon to be deprecated by the records feature in C# 9.0), we had to determine if a property’s backing field is generated or not.

  • 匿名 浏览文章

    MySQL数据库订单表按用户邮箱字段分组查询每个用户的第一条记录

    程序开发或者一些数据统计时,在MySQL中使用GROUP BY分组是很常用的SQL语句。那么,如果如下的简单示例订单数据表,我们现需要使用GROUP BY分组后查询每个用户的第一个订单记录,应该如何实现呢?首先,我们创建示例数据表:orders,SQL语句如下:CREATE TABLE `order...

  • 匿名 浏览资讯

    Using Named Handler Methods to Make jQuery AJAX GET Calls in Razor Pages

    Let's see how to wire up a jQuery AJAX request to a Named Handler Method in ASP.NET Core Razor Pages!

  • 匿名 浏览资讯

    Blazor State Management

    Imagine for a moment you are filling out the world's longest form. You've spent 30 minutes entering detailed information from your address to your date of birth to a list of the last seven countries you visited. You click the “submit” button and are immediately rewarded with a “The connection has been lost” message.

  • 匿名 浏览资讯

    Blazor Binding, Events and Parameters

    Three things that you will usually find yourself using on every Blazor page, Binding, Events, and Parameters, will be covered here. To demonstrate these, we will build a series of pages including a few that will allow a user to build and edit a list of To Do items.

  • 匿名 浏览资讯

    ASP.NET Core updates in .NET 5 Preview 6

    .NET 5 Preview 6 is now availableand is ready for evaluation. Here’s what’s new in this release:Blazor WebAssembly template now includedJSON extension methods for HttpRequest and HttpResponseExtension method to allow anonymous access to an endpointCustom handling of authorization failuresSignalR Hub...

  • 匿名 浏览资讯

    Blazor WebAssembly HttpClient – Consuming Web API

    In this article, we are going to learn more about Blazor WebAssembly HttpClient and how to use it to fetch data from the ASP.NET Core Web API server. The HttpClient service is preconfigured in BlazorWebAssembly applications, but since we are working with the API project on a different domain (Cross-origin resource sharing), we are going to create our custom HTTP logic and handle the results accordingly.

  • 匿名 浏览资讯

    Using Blazor JavaScript Isolation with Library Manager

    One of the new features in .NET 5 for Blazor is isolated JavaScript. It means that you can have JavaScript that is only for a specific component. It is also a fantastic way for component developers to include JavaScript into their libraries so the developers using their library will not have to add the JavaScript themselves.

  • 匿名 浏览文章

    学会正则表达式不再是难事--55分钟学会正则表达式(译)

    本文转载至:http://doslin.com/learn-regular-expressions-in-about-55-minutes/旨在分享给大家学习交流,如有涉及版权问题,请联系处理,谢谢!!! 翻译水平有限,如有谬误,欢迎评论斧正或者Pull Request。正则表达式(“re...

  • 匿名 浏览资讯

    ASP.NET Core Blazor 初探之 Blazor Server

    上周初步对Blazor WebAssembly进行了初步的探索(ASP.NET Core Blazor 初探之 Blazor WebAssembly)。这次来看看Blazor Server该怎么玩。Blazor ServerBlazor 技术又分两种:Blazor WebAssemblyBlazor ServerBlazor WebAssembly上次已经介绍过了,这次主要来看看Blazor Server。Blazor Server 有点像WebAssembly的服务端渲染模式。页面在服务器端渲染完成之后,通过SignalR(websocket)技术传输到前端,再替换dom元素。其实不光是页面...

  • 匿名 浏览文章

    最新Material界面风格的基于Bootstrap 4 响应式布局的后台管理系统模板/前端框架

    本文分享一套最新Material界面风格的基于Bootstrap 4 响应式布局的后台管理系统模板/前端框架。此Bootstrap前端框架共包含了6个HTML页面模板,分别为:仪表盘14种不同类型的组件;表格—4种表格样式;图表—自定义风格的线形、柱形、饼状等图表;表单—各种应用场景的表单样式和布局...

  • 匿名 浏览资讯

    Exploring .NET Core platform intrinsics: Part 1 - Accelerating SHA-256 on ARMv8

    Exploring .NET Core platform intrinsics: Part 1 - Accelerating SHA-256 on ARMv8Jun 6, 2018Hardware accelerated SIMD operations are almost necessary today for writinghigh-performance code. Prior to ....

  • 匿名 浏览资讯

    解读大内老A的《.NET Core框架本质》

    题外话相信很多读者已经看过老A写的这篇文章《200行代码,7个对象——让你了解ASP.NET Core框架的本质》,这是一篇模仿和重建的典范。重建说白了就是模仿,模仿有一个前置条件就是你对底层原理要烂熟于心。否则画虎难画骨,原本要画虎,最后出来的是只猫。要理解原理就要去阅读源码,就像新人学开车,如何使用尚且磕磕碰碰,更何况让你去了解汽车的构造和引擎。所以老A是引路人,我像个门外汉一样对前辈...

  • 匿名 浏览资讯

    Tutorial on Handling Multiple Resultsets and Multiple Mapping using Dapper

    In this article we will look at how to use dapper to read multiple resultsets from database in a single database call. We will look at the scenarios where we might want to do this and how dapper let us achieve this with its Query and QueryMultiple methods.

  • 匿名 浏览资讯

    手动造轮子——基于.NetCore的RPC框架DotNetCoreRpc

    一直以来对内部服务间使用RPC的方式调用都比较赞同,因为内部间没有这么多限制,最简单明了的方式就是最合适的方式。个人比较喜欢类似Dubbo的那种使用方式,采用和本地方法相同的方式,把接口层独立出来作为服务契约,为服务端提供服务,客户端也通过此契约调用服务。.Net平台上类似Dubbo这种相对比较完善的RPC框架还是比较少的,GRPC确实是一款非常优秀的RPC框架,能夸语言调用,但是每次还得编写proto文件,个人感觉还是比较麻烦的。如今服务拆分,微服务架构比较盛行的潮流下,一个简单实用的RPC框架确实可以提升很多开发效率。

  • 匿名 浏览资讯

    Announcing .NET Core 3.1 Preview 3

    Today, we’re announcing .NET Core 3.1 Preview 3. .NET Core 3.1 is a small and short release focused on key improvements in Blazor and Windows desktop, the two big additions in .NET Core 3.0.. It will be a long term support (LTS) release. We are coming near the end of the 3.1 release and expect to release it in early December.

  • 匿名 浏览资讯

    从.NET CORE2.2升级到3.0过程及遇到的一些问题

    RoadFlow工作流引擎从.NET Core2.2升级到3.0遇到了一些问题及解决方式这里记录一下。1、DLL项目框架从2.2选择到3.0,这个没什么好说的,没有问题。重点的WEB层的一些变化。 2、将ORM数据包升级到最新,MYSQL升级到8.0。   3、WEB项目中路由的不同Startup.cs中:2.2:    3.0:  4、SignalR的不同:2.2:    3.0统一加到的路由设置中:  5、3.0中输出都采用了异步,默认没有开启同步。也不建议开启,改代码采用异步输出。  6、这是遇到最大的坑,找了好久才找到原因。    这是不要设置,设置了一遇到Request.Form["...

  • 匿名 浏览资讯

    .Net Core自动化部署系列(二):使用Jenkins打造镜像发布流水线

    一、简介之前写过一篇关于Jenkins搭配GitLab实现.net core项目自动发布到IIS的博文,比较简单哈,只是个Demo。本篇我们将会使用Jenkins搭配GitLab实现镜像的自动打包和上传,这篇其实是一个铺垫篇,因为后面我们需要使用Jenkins实现kubernetes的发布流水线,即实现镜像的自动化打包和部署。 二、打包镜像Jenkin的安装和使用在.Net Cor...

  • 匿名 浏览资讯

    开发.NET Core NuGet包并实现CI/CD

    关于版本号: 这里指Net Framework风格的版本号, 即,主版本号.子版本号[.编译版本号[.修订版本号]] 英文对照: Major_Version_Number.Minor_Version_Number[.Build_Number[.Revision_Number]] 主版本号和次版本号是必选的; 编译版本号和修订号是可选的,但是如果定...

  • 匿名 浏览资讯

    Symmetric and Asymmetric Encryption in .NET Core

    This post looks at symmetric and asymmetric encryption and how this could be implemented in .NET Core. Symmetric encryption is fast and can encrypt or decrypt large amounts of text, streams or files but requires a shared key. Asymmetric encryption can be used without shared a key, but can only encrypt or decrypt small texts depending of the key size.

  • 匿名 浏览文章

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

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

  • 匿名 浏览文章

    C#/.NET连接各类主流数据库(SQL Server,MySQL,Microsoft Access,DB2,Oracle)的连接字符串整理

    C#/.NET项目开发过程中,特别是中大型的项目,跟数据库打交道那是再正常不过的事情了。数据库可以帮助我们保存和管理数据。C#/.NET的项目中,我们也可以使用不同的数据库。那么,我们今天就来总结整理一下C#/.NET的连接各类主流数据库(SQL Server,MySQL,Microsoft Acc...

  • 匿名 浏览资讯

    Deep Dive: How is the ASP.NET Core Middleware Pipeline Built?

    This post dives into some of the implementation details of ASP.NET Core. This is not required reading to effectively use ASP.NET Core, and it’s middleware pipeline. However, I believe there is value in understanding these details to appreciate what is happening inside your applications. I’ll show some rather complicated looking code snippets in this post and explain them as best I can. Don’t worry if you don’t understand everything at first.

  • 匿名 浏览个人主页

    浏览用户个人主页

    浏览用户[CoolT]的个人主页

  • 匿名 浏览资讯

    Writing the Code for a gRPC Service and Client in ASP.NET Core 3.0

    Once you've got a contract that describes a gRPC service, creating the service itself and a client that can call the service is easy. In fact, Visual Studio will do most of the work for you ... once you've got your projects set up correctly, that is.

  • 匿名 浏览资讯

    Vue的钩子函数[路由导航守卫、keep-alive、生命周期钩子]

    Vue-Router导航守卫:有的时候,我们需要通过路由来进行一些操作,比如最常见的登录权限验证,当用户满足条件时,才让其进入导航,否则就取消跳转,并跳到登录页面让其登录。为此我们有很多种方法可以植入路由的导航过程:全局的, 单个路由独享的, 或者组件级的,推荐优先阅读路由文档全局守卫vue-router全局有三个守卫:router.beforeEach 全局前置守卫 进入路由之前ro...

  • 匿名 浏览资讯

    Microsoft launches a Q&A site to replace MSDN and TechNet

    Back when Microsoft announced earlier this year that it would stop publishing MSDN Magazine, there was some worry about what it would mean for the company's MSDN and TechNet forums. Between the two of them, they had a lot of useful information on the company's enterprise-facing products. The answer, it turns out, is that Microsoft plans to migrate those databases to a new website called Microsoft Q&A.

  • 匿名 浏览资讯

    ASP.NET Core WebAPI中使用JWT Bearer认证和授权

    源代码参考为什么是 JWT BearerASP.NET Core 在 Microsoft.AspNetCore.Authentication 下实现了一系列认证, 包含 Cookie, JwtBearer, OAuth, OpenIdConnect 等,Cookie 认证是一种比较常用本地认证方式, 它由浏览器自动保存并在发送请求时自动附加到请求头中, 更适用于 MVC 等纯网页系统的本地认证...

  • 匿名 浏览资讯

    GraphQL with ASP.NET Core (Part- VIII : Entity Relations - One to Many)

    Read the previous part - GraphQL with ASP.NET Core (Part- VII : Mutation)Building a GraphQL end-point with a single entity ain't gonna cut it. In this post, we introduce two new entities for handling ...

  • 匿名 浏览资讯

    LambdaToSql(轻量级ORM) 入门篇 开源项目

    为什么开发(背景)最开始使用的是 sqlDbHelper,有微软的,有自己写的。后来开始使用比较成熟的框架开发,使用过一段时间的Hibernate,后期主要使用 Entity FrameWork。发现表越多 业务越复杂后,越不好控制项目,所以慢慢的自己根据业务写了一个小工具,也就是本文说的 LambdaToSql。最开始的功能 主要是准备替代DbHelper的,慢慢的把映射关系加上了,再后来重构了...