随笔分类 -  其它

摘要:资料来源于网上: public static Bitmap ImageRotate(Bitmap bmp, float angle, Color bkColor) { int w = bmp.Width + 2; int h = bmp.Height + 2; PixelFormat pf; if 阅读全文
posted @ 2020-07-04 16:21 星星c# 阅读(1286) 评论(2) 推荐(0) 编辑
摘要:现象 string t1 = "bedf812f-2311-4717-a749-8b1272fc3c86"; string t2 = "bedf812f-2311-4717-a749-8b1272fc3c86"; var len1 = t1.Length; var len2 = t2.Length; 阅读全文
posted @ 2020-06-17 19:44 星星c# 阅读(973) 评论(0) 推荐(0) 编辑
摘要:一、添加System.Data.SQLite引用 二、添加linq2db引用 三、新建实体类 [Table("SysInfo")] public partial class SysInfo { [Column("Id"), PrimaryKey] [System.ComponentModel.Dat 阅读全文
posted @ 2020-06-09 18:06 星星c# 阅读(1941) 评论(0) 推荐(0) 编辑
摘要:1、修改Startup,添加如下代码: app.UseMvc(routes => { routes.MapAreaRoute( name: "PreviewFile", areaName: "PreviewFile", template: "PreviewFile/{controller=Home} 阅读全文
posted @ 2020-05-09 21:45 星星c# 阅读(903) 评论(0) 推荐(0) 编辑
摘要:先看一下,下面是C#实现提取小括号内的内容的示例代码 string str = "aaaaaaaaa(bbbbbb) 121 (fdsa) 121(aa)2121jlkoihj"; string pattern = @"\(.*?\)";//匹配模式 Regex regex = new Regex( 阅读全文
posted @ 2019-12-31 10:50 星星c# 阅读(3453) 评论(0) 推荐(0) 编辑
摘要:第一步 先在电子书根目录里新建一个book.json文件,内容如下: { "plugins":["expandable-chapters"] } 效果图如下: 第二步 还在放book.json的书籍的根目录,执行 gitbook install命令,如下图: 第三步 重新执行 gitbook bui 阅读全文
posted @ 2019-12-14 12:00 星星c# 阅读(2167) 评论(0) 推荐(1) 编辑
摘要:1、加body样式 <style> body { font-size: 12px; height: 100%; box-sizing: border-box; } </style> 2、上下结构的div代码 <div style="padding-top:65px; height:100%; box 阅读全文
posted @ 2019-11-26 16:57 星星c# 阅读(381) 评论(0) 推荐(0) 编辑
摘要:发布 NotifyAndSubscribe.Subscribe<EventArgs<SearchFolderSetting>>().HandlerOne += EvidencePackageList_HandlerOne; 通知 NotifyAndSubscribe.Notify(this, new 阅读全文
posted @ 2019-11-13 11:04 星星c# 阅读(327) 评论(0) 推荐(0) 编辑
摘要:System.InvalidOperationException:“An exception occurred while reading a database value for property 'EL_DDT.DataId'. The expected type was 'System.Nul 阅读全文
posted @ 2019-11-12 17:29 星星c# 阅读(703) 评论(0) 推荐(0) 编辑
摘要:一、让子站点的访问方式不带二级目录,直接主目录显示 操作步骤: 1、打开菜单:系统管理—站点管理—系统站点管理 2、占击该站记录右侧的“转移根目录”功能 阅读全文
posted @ 2019-08-04 10:20 星星c# 阅读(358) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta charset="utf-8" /> <meta name="viewport" con 阅读全文
posted @ 2019-07-31 17:09 星星c# 阅读(5398) 评论(0) 推荐(0) 编辑
摘要:HttpWebRequest request = WebRequest.Create("http://localhost:5001/identity") as HttpWebRequest; request.Method = "GET"; var headers = request.Headers; 阅读全文
posted @ 2019-07-03 17:29 星星c# 阅读(3249) 评论(0) 推荐(0) 编辑
摘要:应用程序池 >高级设置 >加载用户配置文件设置为True 阅读全文
posted @ 2019-07-03 17:07 星星c# 阅读(2603) 评论(3) 推荐(1) 编辑
摘要:1、建解决方案(本示使用的是 framework4.0)如图: 2、添加 System.Data.SQLite引用 如图: 3、制作sqlite数据库文件 使用的是navcat 建立一张Employee表 4、把新建的数据库文件起名为:TestSQLite 然后拷贝到程序的bin/Debug里,如图 阅读全文
posted @ 2019-05-31 10:15 星星c# 阅读(1684) 评论(0) 推荐(2) 编辑
摘要:在使用ajax向后台传值的时候,有的时候一个字段需要传多个值,这种情况下会想到用数组形式来传,比如: 1 2 3 4 5 6 7 8 9 10 $.ajax({ type: "post", async: true, data: { "records": ["123","456","789"] }, 阅读全文
posted @ 2019-04-06 10:36 星星c# 阅读(376) 评论(0) 推荐(0) 编辑
摘要:解决方法:在Startup的ConfigureServices方法里加上下面的红色部分。 public IServiceProvider ConfigureServices(IServiceCollection services) { services.AddMvc().SetCompatibili 阅读全文
posted @ 2018-12-08 11:22 星星c# 阅读(504) 评论(0) 推荐(0) 编辑
摘要:1、the provider did not return a ProviderManifestToken string EF 2、ef mysql System.NullReferenceException:“未将对象引用设置到对象的实例。” 解决方案: 使用6.9.10版本,不要用最新的 6.1 阅读全文
posted @ 2018-10-29 16:15 星星c# 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-09-26 22:40 星星c# 阅读(236) 评论(0) 推荐(0) 编辑
摘要:1、定义方法 public static T DESerializerStringToEntity<T>(string strXML) where T : class { try { using (StringReader sr = new StringReader(strXML)) { XmlSe 阅读全文
posted @ 2018-09-17 10:43 星星c# 阅读(5075) 评论(1) 推荐(1) 编辑

点击右上角即可分享
微信分享提示