摘要:
新建Windows服务项目 1、右键 添加安装程序 2、将serviceProcessInstaller1 Account 设置为LocalSystem 3、修改serviceInstaller1 服务名称和服务描述,并将StartType改为Automatic 4、编写程序逻辑 安装卸载服务 管理 阅读全文
摘要:
new Task(() => { //异步逻辑 BeginInvoke(new MethodInvoker(() => { //修改UI线程代码 })); //异步逻辑 }).Start(); 阅读全文
摘要:
1、在NuGet中搜索System.Data.SqLite.Core,下载SQLite数据库引擎: 2、在配置文件中添加连接字符串: <connectionStrings> <add name="DB" connectionString="data source=.\DB\DB.db;version 阅读全文
摘要:
“代理 XP”组件已作为此服务器安全配置的一部分被关闭。系统管理员可以使用 sp_configure 来启用“代理 XP”。有关启用“代理 XP”的详细信息,请参阅 SQL Server 联机丛书中的“外围应用配置器”。 (Microsoft.SqlServer.Management.Mainten 阅读全文
摘要:
工具类DbHelper.ttinclude: <#@ assembly name="System.Core.dll" #><#@ assembly name="System.Data.dll" #><#@ assembly name="System.Data.DataSetExtensions.dl 阅读全文
摘要:
在vue.config.js加入以下配置 module.exports = { css: { loaderOptions: { less: { javascriptEnabled: true } } } } 阅读全文
摘要:
public class FileStreamResult : IHttpActionResult { readonly Stream _stream; readonly string _mediaType = "application/octet-stream"; readonly string 阅读全文
摘要:
在App_Start文件夹下的WebApiConfig.cs中加入如下代码: public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API 配置和服务 // 阅读全文
摘要:
新建GetSummery.ttinclude <#@ assembly name="System.Core" #> <#@ assembly name="System.Data" #> <#@ import namespace="System.Data.SqlClient" #> <#+ strin 阅读全文
摘要:
webconfig中加入以下代码: <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="2072576000"/> </requestFiltering> </securit 阅读全文