posted @ 2023-03-21 10:45
microsoft-zhcn
阅读(9)
推荐(0)
摘要:
Micro 快速开发平台服务范围 一、基础服务 ApiServer 网关服务 500(Ocelot) 如,服务CMS地址:CMS:http://api.microsoft-zh.cn/cms/Health/check IDSServer 统一身份认证服务 5001(Identity)ConsulSe
阅读全文
posted @ 2023-03-21 10:37
microsoft-zhcn
阅读(116)
推荐(0)
摘要:
参考: WPF使用ThreadPool.QueueUserWorkItem线程池防界面假死 http://www.fogsvc.com/2922.html 在wpf中利用异步lambda编程,模拟数据库连接,防止界面假死 https://www.dandelioncloud.cn/article/d
阅读全文
posted @ 2023-03-17 14:24
microsoft-zhcn
阅读(156)
推荐(0)
摘要:
WPF TreeView拖动排序拖拽排列-CSDN博客 WPF:控件带阴影地任意拖动【转】 - Lester Duo - 博客园 (cnblogs.com) WPF拖动总结 - DebugLZQ - 博客园 (cnblogs.com)
阅读全文
posted @ 2023-03-17 11:21
microsoft-zhcn
阅读(227)
推荐(0)
摘要:
参考:WPF实现界面动态布局 - 码农教程 (manongjc.com) 【翻译】使用WPF进行拖拽和放置【Drag and Drop in WPF】-LiuHong's Blog (lofter.com)
阅读全文
posted @ 2023-03-15 17:59
microsoft-zhcn
阅读(256)
推荐(0)
摘要:
参考:https://blog.csdn.net/wf824284257/article/details/89164525
阅读全文
posted @ 2023-03-15 17:22
microsoft-zhcn
阅读(31)
推荐(0)
摘要:
下载:客户端自动更新程序.zip 第一步:复制文件到客户端bin目录下 第二步:客户端引用 Micro.Client.dll 第三步:客户端C#调用 public WebSocketClient _websoket { set; get; } Loaded +=(s, e)=> { #region
阅读全文
posted @ 2023-03-15 17:15
microsoft-zhcn
阅读(127)
推荐(0)
摘要:
参考:https://www.zhihu.com/question/460317126/answer/2673371726 调用exe https://www.cnblogs.com/guangzhiruijie/p/16467757.html 【WPF】如何获取命令行参数 参考:https://w
阅读全文
posted @ 2023-03-09 19:42
microsoft-zhcn
阅读(45)
推荐(0)
摘要:
C#搭建Websocket服务器 Fleck C#搭建Websocket服务器 参考: https://blog.csdn.net/sunjintaoxxx/article/details/120070707 https://blog.csdn.net/wysdong/article/details
阅读全文
posted @ 2023-03-09 05:14
microsoft-zhcn
阅读(53)
推荐(0)
摘要:
MVVM即Model-View-ViewModel,MVVM模式与MVP(Model-View-Presenter)模式相似,主要目的是分离视图(View)和模型(Model),具有低耦合、可重用性、独立开发、可测试 MVVM框架有很多,开源的主要有: PRISM:由微软提供,和MEF/Unity一
阅读全文
posted @ 2022-12-18 11:28
microsoft-zhcn
阅读(1300)
推荐(1)
摘要:
参考:https://www.it1352.com/2599186.html 1. 声明Claim数组 Claim[] myClaims = new Claim[] { new Claim("UserNo", "1"), //自定义 new Claim(ClaimTypes.Role,"User")
阅读全文
posted @ 2022-12-15 15:50
microsoft-zhcn
阅读(39)
推荐(0)
摘要:
一、查某一列(或多列)的重复值。(只可以查出重复记录的值,不能查出整个记录的信息)例如:查找id,name重复的记录: select id,name from datatable group by id,name having(count(*))>1 二、查某一列有重复值的记录。(此方法查出的是所有
阅读全文
posted @ 2022-12-09 17:30
microsoft-zhcn
阅读(5993)
推荐(0)
摘要:
C# 集合 using System.Data; using System.Collections; //数组(Array) string[] arr = { "Hello", "World" }; int[] nums = { 1, 99, 2, 66, 15, 8 }; //哈希表(Hashta
阅读全文
posted @ 2022-11-26 18:50
microsoft-zhcn
阅读(90)
推荐(0)
摘要:
[System.Runtime.InteropServices.DllImport("wininet")] private extern static bool InternetGetConnectedState(out int connectionDescription, int reserved
阅读全文
posted @ 2022-11-12 17:51
microsoft-zhcn
阅读(122)
推荐(0)
摘要:
MainWindow.xaml <Window x:Class="SevenZipTestWPF.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas
阅读全文
posted @ 2022-11-12 17:43
microsoft-zhcn
阅读(281)
推荐(0)
摘要:
//这里可以动态加载其他dll文件中的组件 Assembly assem = Assembly.LoadFile($"{Directory.GetCurrentDirectory()}\\{data.DllName}"); var onePage = assem.CreateInstance(dat
阅读全文
posted @ 2022-11-12 16:59
microsoft-zhcn
阅读(250)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //使用DllImport需导入命名空间 using System.
阅读全文
posted @ 2022-11-12 16:14
microsoft-zhcn
阅读(295)
推荐(0)
摘要:
参考: https://www.codenong.com/9732347/ C#中的循环赛事算法 https://qa.1r1g.com/sf/ask/90514091/
阅读全文
posted @ 2022-11-10 14:43
microsoft-zhcn
阅读(10)
推荐(0)
摘要:
参考 https://www.cnblogs.com/xianyuxihuamao/p/12849209.html https://www.cnblogs.com/akwkevin/p/14946496.html 一个Wpf控件库(Wpf客户端框架使用) Wpf登录验证方式(1)-滑动拼图的实现 h
阅读全文
posted @ 2022-11-10 14:21
microsoft-zhcn
阅读(132)
推荐(0)
摘要:
Linq提供两种方法:方法语法(Lambda语法)、查询语法(Linq语法) https://blog.csdn.net/weixin_45756851/article/details/126163607https://www.nhooo.com/note/qa074s.htmlhttps://bl
阅读全文
posted @ 2022-11-01 11:05
microsoft-zhcn
阅读(171)
推荐(0)
摘要:
创建型模式: 单例(Singleton)模式:某个类只能生成一个实例,该类提供了一个全局访问点供外部获取该实例,其拓展是有限多例模式。 原型(Prototype)模式:将一个对象作为原型,通过对其进行复制而克隆出多个和原型类似的新实例。 工厂方法(Factory Method)模式:定义一个用于创建
阅读全文
posted @ 2022-11-01 10:34
microsoft-zhcn
阅读(5303)
推荐(0)
摘要:
系统要求:业务逻辑清晰、数据完整性(数据同步)、数据安全性(数据密钥)、性能稳定性(本地化)
阅读全文
posted @ 2022-10-29 18:31
microsoft-zhcn
阅读(45)
推荐(0)
摘要:
约束说明 T : 结构 T必须是值类型。可以指定除 Nullable 以外的任何值类型。 T : 类 T必须是引用类型,包括任何类、接口、委托或数组类型。 T : 接口名称 T必须继承该接口,并实现其中的所有方法。可以指定多个接口约束。 T : 类名称 T必须该类本身或者继承其的基类类。 T : n
阅读全文
posted @ 2022-10-29 17:41
microsoft-zhcn
阅读(102)
推荐(0)
摘要:
一、依赖注入定义: 只依赖于服务类的一个接口,而不依赖于具体服务类。 二,依赖注入的类别1.构造注入 2.Setter注入 示例: using System; using System.Collections.Generic; using System.Linq; namespace SetterI
阅读全文
posted @ 2022-10-29 17:12
microsoft-zhcn
阅读(314)
推荐(0)
摘要:
SQL Server常用函数整理 SQL Server常用函数整理_凯酱的博客-CSDN博客_sql server 常用函数 SQLServer数据库语句大全汇总 SQLServer数据库语句大全汇总 (wjhsh.net) SQLServer 条件查询语句大全 SQLServer 条件查询语句大全
阅读全文
posted @ 2022-10-28 11:49
microsoft-zhcn
阅读(51)
推荐(0)
摘要:
1、清除表格数据 TRUNCATE TABLE "表格名"; 示例:TRUNCATE TABLE dbo.LocalTable 2、插入数据(初始化) INSERT INTO 目标表 SELECT * FROM 数据源 示例:INSERT INTO dbo.LocalTable SELECT * F
阅读全文
posted @ 2022-09-02 10:56
microsoft-zhcn
阅读(416)
推荐(0)
摘要:
SQL Server查询当前连接数 SELECT * FROM [Master].[dbo].[SYSPROCESSES] WHERE [DBID] IN ( SELECT [DBID]FROM [Master].[dbo].[SYSDATABASES]WHERE NAME='Your Db Nam
阅读全文
posted @ 2022-09-01 09:08
microsoft-zhcn
阅读(336)
推荐(0)
摘要:
使用 Transact-SQL开启CLR sp_configure 'show advanced options',1 RECONFIGURE sp_configure 'clr enabled',1 RECONFIGURE 修改 Transact-SQL 编码 DECLARE @hash AS B
阅读全文
posted @ 2022-07-28 11:18
microsoft-zhcn
阅读(236)
推荐(1)
摘要:
数据库连接远程服务器 exec sp_addlinkedserver 'name','','SQLOLEDB','连接地址' exec sp_addlinkedsrvlogin 'name','false',null,'sa','123456' exec sp_serveroption 'name'
阅读全文
posted @ 2022-07-28 09:43
microsoft-zhcn
阅读(64)
推荐(0)
摘要:
C# JsonConvert时间格式问题 var format = new IsoDateTimeConverter(); format.DateTimeFormat = "yyyy-MM-dd hh:mm:ss"; string param = JsonConvert.SerializeObjec
阅读全文
posted @ 2022-04-19 12:05
microsoft-zhcn
阅读(49)
推荐(0)
摘要:
获取 PasswordBox 中密码的代码如下: // 使用一个IntPtr类型值来存储加密字符串的起始点 IntPtr p = System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this.passwordBoxPassword.Se
阅读全文
posted @ 2022-04-08 15:46
microsoft-zhcn
阅读(207)
推荐(1)
摘要:
通过 Nuget 下载对应的包 下载完之后带上依赖一共有这么几个: EntityFramework System.Data.SQLite System.Data.SQLite.Core System.Data.SQLite.EF6 System.Data.SQLite.Linq 下载SQLite工具
阅读全文
posted @ 2022-04-01 14:08
microsoft-zhcn
阅读(281)
推荐(0)
摘要:
默认 C# 代码 public partial class DataGridView : Window { public DataGridViewModel viewModel; public DataGridView() { InitializeComponent(); this.viewMode
阅读全文
posted @ 2022-03-28 09:31
microsoft-zhcn
阅读(502)
推荐(0)
摘要:
XLS默认组件为2003: XLSX下载组件:AccessDatabaseEngine2007 下载地址:https://dl.pconline.com.cn/download/1059627.html DataTable dt = new DataTable(); string con = "Pr
阅读全文
posted @ 2022-03-24 17:08
microsoft-zhcn
阅读(250)
推荐(0)
posted @ 2022-03-17 14:04
microsoft-zhcn
阅读(40)
推荐(0)
摘要:
参考:https://www.cnblogs.com/zt199510/p/14510575.html Micro.Layer 是什么? Micro.Layer 是一款历年来备受青睐的 WPF 弹出层组件,具备全方位的解决方案,面向各个水平段的开发人员,您的页面会轻松地拥有丰富友好的操作体验。 Mi
阅读全文
posted @ 2022-03-17 00:59
microsoft-zhcn
阅读(1330)
推荐(0)
摘要:
参考:https://www.cnblogs.com/mq0036/p/12448153.html private void Window_Loaded(object sender, RoutedEventArgs e) { var Loads= this.Dispatcher.BeginInvok
阅读全文
posted @ 2022-03-15 22:36
microsoft-zhcn
阅读(379)
推荐(0)
摘要:
一、无边框窗体 XAML样式如下: <!--无边框窗体样式 START--> <Style TargetType="Window" x:Key="WindowStyle"> <!--无边框--> <Setter Property="WindowStyle" Value="None"></Setter
阅读全文
posted @ 2022-03-14 20:35
microsoft-zhcn
阅读(327)
推荐(0)
摘要:
MIM是一款通过手机网络给好友发送语音、文字消息、表情、图片和视频等功能的即时通讯软件。最新版本十分人性化,支持SVG,可以撤回两分钟内发出的最后一条消息,发出去的信息可以收回。 【微信简介】 1.可以发语音、文字消息、表情、图片、视频。30M流量可以收发上千条语音,省电省流量。 2.朋友圈,跟朋友
阅读全文
posted @ 2022-02-21 13:34
microsoft-zhcn
阅读(657)
推荐(0)
摘要:
如果目标表存在: insert into 目标表 select * from 原表 如果目标表不存在: select * into 目标表 from 原表
阅读全文
posted @ 2021-12-22 13:41
microsoft-zhcn
阅读(123)
推荐(0)