上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 参考:https://www.cnblogs.com/hoojo/archive/2011/07/21/2112559.html SQL Server 编程示例 一、变量1、局部变量DECLARE @局部变量名 数据类型【例】创建varchar变量 DECLARE @变量名 varchar(50); 阅读全文
posted @ 2023-09-22 14:19 microsoft-zhcn 阅读(170) 评论(0) 推荐(0)
摘要: SQL Server 目录结构 数据库 系统数据库 master model msdb tempdb 数据库快照 使用 Transact-SQL 用户数据库 数据库关系图 表 系统表 File Tables 外部表 图形表 用户表 视图 系统视图 用户视图 外部资源 外部数据源 外部文件格式 同义词 阅读全文
posted @ 2023-09-20 16:01 microsoft-zhcn 阅读(154) 评论(0) 推荐(0)
摘要: 1.创建项目目录:mkdir HelloWorld-Flask2.进入项目目录:cd HelloWorld-Flask3.创建虚拟环境:python3 -m venv .venv4.安装Flask框架:python3 -m pip install flask4.1.查看Flask版本:python3 阅读全文
posted @ 2023-09-15 17:00 microsoft-zhcn 阅读(95) 评论(0) 推荐(0)
摘要: --如果表名含有中文,就需要用nvarchar 和 N'' DECLARE @strSQL NVARCHAR(MAX) SET @strSQL='' SELECT @strSQL=@strSQL+';drop table '+[name] from sysobjects WHERE [type]=' 阅读全文
posted @ 2023-08-28 09:29 microsoft-zhcn 阅读(70) 评论(0) 推荐(0)
摘要: 解决办法:外键添加[JsonIgnore] 特性即可解决 /// <summary> /// 文章相册 /// </summary> [Table("ArticleAlbum")] public class ArticleAlbumModel { /// <summary> /// 主键ID /// 阅读全文
posted @ 2023-08-26 10:52 microsoft-zhcn 阅读(66) 评论(0) 推荐(0)
摘要: 1.安装NuGet程序包 Microsoft.EntityFrameworkCore.Tools Microsoft.EntityFrameworkCore.SqlServer 2.配置Program,注入 AddDbContext 单例模式 builder.Services.AddDbContex 阅读全文
posted @ 2023-07-17 00:12 microsoft-zhcn 阅读(332) 评论(1) 推荐(0)
摘要: 引用Nuget包 AutoMapper.Extensions.Microsoft.DependencyInjection 配置Program.cs //添加Profile builder.Services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemb 阅读全文
posted @ 2023-07-08 20:32 microsoft-zhcn 阅读(62) 评论(0) 推荐(0)
摘要: 参考: https://mp.weixin.qq.com/s?__biz=MzA3NDM1MzIyMQ==&mid=2247486318&idx=1&sn=1f06f6de690ba6df16ed812de9588709 https://www.cnblogs.com/Ceri/p/17492359 阅读全文
posted @ 2023-06-30 11:32 microsoft-zhcn 阅读(53) 评论(0) 推荐(0)
摘要: 参考: http://layui.xhcen.com/doc/doc.html 表格 http://layui.apixx.net/demo/table.html 阅读全文
posted @ 2023-06-29 14:39 microsoft-zhcn 阅读(38) 评论(0) 推荐(0)
摘要: 1.使用局部临时表来调整自增长列 select * from #newtemp from grade --相当于备份 truncate table grade--删除数据 insert into grade select classname from #newtemp 2.使用全局临时表来调整自增长 阅读全文
posted @ 2023-06-29 11:13 microsoft-zhcn 阅读(199) 评论(0) 推荐(0)
摘要: 1.查询单列重复 select * from table where name in (select name from table group by name having count(name) > 1) 2.查询多列重复 SELECT a.* FROM table a,( SELECT nam 阅读全文
posted @ 2023-06-29 10:33 microsoft-zhcn 阅读(361) 评论(0) 推荐(0)
摘要: 1、复制表结构,当新表名称未经在,数据库会创建一个新表 select * into 新表名称 from 旧表名称 where 1=2; 2、复制表数据,当新表名称已经在 insert into 新表 select * from 旧表 ; INSERT INTO新表(字段1,字段2,.......)S 阅读全文
posted @ 2023-06-27 10:35 microsoft-zhcn 阅读(488) 评论(0) 推荐(0)
摘要: 1.根据数据库生成实体类 Models Scaffold-DbContext "Data Source=.;Initial Catalog=TEST;User ID=sa;Password=pwd;TrustServerCertificate=True" Microsoft.EntityFramew 阅读全文
posted @ 2023-06-25 22:57 microsoft-zhcn 阅读(356) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/RainFate/p/15720684.html 在.NET Core 3.0中加入了对JSON的内置支持 using System.Text.Json; using System.Text.Json.Serialization; 1.读取与写入 阅读全文
posted @ 2023-06-10 03:06 microsoft-zhcn 阅读(758) 评论(0) 推荐(0)
摘要: 创建存储过程 CREATE PROC [dbo].[sp_Data2InsertSQL] @TableName AS VARCHAR(100) AS DECLARE xCursor CURSOR FOR SELECT name,xusertype FROM syscolumns WHERE (id 阅读全文
posted @ 2023-06-08 18:34 microsoft-zhcn 阅读(661) 评论(0) 推荐(0)
摘要: 参考文献:https://www.cnblogs.com/team-xiong/p/12066200.html 阅读全文
posted @ 2023-06-07 18:01 microsoft-zhcn 阅读(43) 评论(0) 推荐(0)
摘要: 参考文献:https://blog.csdn.net/sD7O95O/article/details/130002295 阅读全文
posted @ 2023-06-07 17:13 microsoft-zhcn 阅读(87) 评论(0) 推荐(0)
摘要: 1.安装 NuGet 包:Microsoft.AspNetCore.Authentication.JwtBearer2.配置:appsettings.json3.配置:Program.cs4.获取Token,在控制器上加入[AllowAnonymous]5.鉴权,在控制器上加入[Authorize] 阅读全文
posted @ 2023-06-07 15:51 microsoft-zhcn 阅读(345) 评论(0) 推荐(0)
摘要: 1.NetCore 控制台应用程序依赖注入 添加依赖项:Microsoft.Extensions.Hosting using System; using System.Runtime; using ClassLibrary1; using Microsoft.Extensions.Configura 阅读全文
posted @ 2023-06-06 09:57 microsoft-zhcn 阅读(222) 评论(0) 推荐(1)
摘要: dotnet rundotnet run --urls=http: //*:8080 //urls指定ip和端口dotnet watch run //watch监听程序修改,一旦修改则重新启动dotnet watch run --urls=http: //*:8080dotnet run -p NE 阅读全文
posted @ 2023-06-06 09:29 microsoft-zhcn 阅读(80) 评论(0) 推荐(0)
摘要: 生成单独的exe文件 C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe Program.cs生成 exe 文件的步骤如下: 1. 使用文本编辑器(如 Notepad++ 或 Visual Studio Code)编写 C# 源代码,并将其保存 阅读全文
posted @ 2023-06-06 08:38 microsoft-zhcn 阅读(1343) 评论(0) 推荐(0)
摘要: Transient 瞬时生命周期 每一次GetService 都会创建一个新的实例 瞬时生名周期: 每次需要都创建一个全新的 Singleton 整个应用程序生命周期内只创建一个实例 Scoped 在同一个Scope内只初始化一个实例,可以理解为(每一个requset 级别只创建一个实例,同一个Ht 阅读全文
posted @ 2023-05-26 08:35 microsoft-zhcn 阅读(52) 评论(0) 推荐(0)
摘要: NetCore中的过滤器主要有以下几种 Authorization Filter 授权认证过滤器 Resource Filter 资源过滤器 Action Filter Action过滤器 Exception Filter 异常过滤器 Result Filter 结果过滤器 Filter的执行顺序 阅读全文
posted @ 2023-05-26 08:34 microsoft-zhcn 阅读(67) 评论(0) 推荐(0)
摘要: REPLACE(REPLACE(REPLACE(LTRIM(RTRIM(c.fokstd)), ' ', ' ' + '#'), '#' + ' ', ''), '#', '') 阅读全文
posted @ 2023-05-24 12:56 microsoft-zhcn 阅读(56) 评论(0) 推荐(0)
摘要: --清除临时表1 drop table #temp --取得休位次数 select * into #temp from (select fbarprjcode,fmolotno,fbarfgsize,fbarfgsize2,fsmalltypename,len(fbarfgsize2)-len(re 阅读全文
posted @ 2023-05-23 16:31 microsoft-zhcn 阅读(38) 评论(0) 推荐(0)
摘要: 邮件API:http://60.247.147.126:8082/ API参数: {"tolist":"接收邮箱@qq.com","subject":"测试主题","body":"<html><body><div style='color:red;'>测试内容</div></body></html> 阅读全文
posted @ 2023-05-17 23:30 microsoft-zhcn 阅读(50) 评论(0) 推荐(0)
摘要: 测试 您的资助是我最大的动力!金额随意,欢迎来赏! 付款后有任何问题请给我留言。 如果,您认为阅读这篇博客让您有些收获,不妨点击一下右下角的【推荐】按钮。 如果,您希望更容易地发现我的新博客,不妨点击一下绿色通道的【关注我】。(●'◡'●) 如果对你有所帮助,赞助一杯咖啡!打 付款后有任何问题请给我 阅读全文
posted @ 2023-05-06 17:10 microsoft-zhcn 阅读(69) 评论(0) 推荐(0)
摘要: 深圳微元科技 Micro 系列组件实行统一定价标准,进行明码实价销售。中国市场的价格由产品价格和软件产品增值税组成,我们会为客户提供 1% 的增值税专用发票。客户享有从购买之日起,免费获取一年内的产品大版本的升级与维护版本。 1. 选择产品 依据我们的产品介绍及项目的具体需求,选择适用的产品;同时, 阅读全文
posted @ 2023-05-03 13:59 microsoft-zhcn 阅读(260) 评论(0) 推荐(0)
摘要: 链接: https://pan.baidu.com/s/1iT4ADU0fmXiZllioxnj7Jg 提取码: hvc3 复制这段内容后打开百度网盘手机App,操作更方便哦 阅读全文
posted @ 2023-05-02 19:22 microsoft-zhcn 阅读(55) 评论(0) 推荐(0)
摘要: 功能介绍1.对销售后的软件或网站执行版权控制,防止被非法另行出售;2.对网站域名进行有效的管理监控,防止非法域名或未授权域名;3.防止黑客使用极端手段获取网站或程序原文件后非法部署; 系统功能:1.完整版Lisence生成工具。2.对网站使用域名执行控制。3.对网站域名使用时间执行授权控制。4.生成 阅读全文
posted @ 2023-04-27 10:10 microsoft-zhcn 阅读(2173) 评论(0) 推荐(0)
摘要: 组件 HTML Help Workshop hhc.exe 下载地址:https://www.helpandmanual.com/downloads_mscomp.html 参考:https://blog.csdn.net/snakorse/article/details/44963015/ 阅读全文
posted @ 2023-04-27 09:18 microsoft-zhcn 阅读(95) 评论(0) 推荐(0)
摘要: 实例图片: 实例代码: using System; using System.Drawing; using System.Drawing.Drawing2D; using System.IO; using System.Net; namespace Micro.Common { /// <summa 阅读全文
posted @ 2023-04-22 22:06 microsoft-zhcn 阅读(347) 评论(0) 推荐(0)
摘要: 1、CalcHelper —— 利用 MSScriptControl 组件实现公式计算2、CookieExpressionHelper —— 读取/设置 Cookie 数据,是对 CookieHelper 的扩展,参数使用表达式,目的是减少属性名的拼写错误。3、CookieHelper —— 读取/ 阅读全文
posted @ 2023-04-19 11:48 microsoft-zhcn 阅读(1117) 评论(0) 推荐(0)
摘要: 编译 Class1.cs 以产生 Class1.dll: csc /target:library Class1.cs这个就是我们使用最多的一个命令,其实可以简单的写成csc /t:library Class1.cs,另外的一个写法是csc /out:Class1.dll /t:library Cla 阅读全文
posted @ 2023-04-17 08:50 microsoft-zhcn 阅读(210) 评论(0) 推荐(0)
摘要: 参考: https://blog.csdn.net/weixin_53370274/article/details/122843287 阅读全文
posted @ 2023-04-16 22:13 microsoft-zhcn 阅读(184) 评论(0) 推荐(0)
摘要: C# 类转换为 SQL 表SQL 表转换为 C# 类C# 类转 WPF ModelC#实现实体类和XML相互转换https://blog.csdn.net/u011555996/article/details/112123458C# 将object对象转换为实体对象https://www.shuzh 阅读全文
posted @ 2023-04-14 12:01 microsoft-zhcn 阅读(84) 评论(0) 推荐(0)
摘要: 查询格式如下: var result = (from p in Package join q in PackageLocationPrices on p.Id equals q.PackageId into pq from r in pq.DefaultIfEmpty() select new {p 阅读全文
posted @ 2023-04-14 11:05 microsoft-zhcn 阅读(156) 评论(0) 推荐(0)
摘要: 参考:https://www.coder.work/article/3033640 阅读全文
posted @ 2023-04-14 10:21 microsoft-zhcn 阅读(50) 评论(0) 推荐(0)
摘要: 命令行运行:iExpress 参考:https://www.modb.pro/db/61122 阅读全文
posted @ 2023-04-13 17:44 microsoft-zhcn 阅读(129) 评论(0) 推荐(0)
摘要: 以管理员身份运行PowerShell键入命令start-process PowerShell -verb runas,然后按“enter”键。多行编辑: 在命令窗格中,要在当前行下插入空白行,请按SHIFT + ENTER。 Hello world 程序echo "Hello world....." 阅读全文
posted @ 2023-04-11 18:17 microsoft-zhcn 阅读(361) 评论(0) 推荐(1)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页