.net rdp

.net 远程桌面 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 public class RdpConnect : UserControl { AxMSTSCLib....

2024-03-25 · 3 分钟 · SAM

.Net DataReader映射到实体

aaa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 #region Mapper public static IEnumerable<T> ReaderTo<T>(this IDataReader dataReader) { System....

2023-02-25 · 3 分钟 · SAM

.Net Wcf添加Knowntype

配置 1 2 3 4 5 6 7 8 9 <system.runtime.serialization> <dataContractSerializer> <declaredTypes> <add type = "Baidu.Modules.DataContract.Equipment.EquimentModel,TopStrong.Modules.DataContract,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null, processorArchitecture=MSIL"> <knownType type = "Baidu.Modules.DataContract.Equipment.PointCheckStd,TopStrong.Modules.DataContract, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=MSIL"/> </add> </declaredTypes> </dataContractSerializer> </system.runtime.serialization>

2023-02-25 · 1 分钟 · SAM

.Net Wcf添加服务调试日志

在web.config文件中,将配置添加到configuration节中,重启服务后日志文件将写入到c:\temp\log\log_Traces.svclog 1 2 3 4 5 6 7 8 9 10 11 12 13 <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="Information, ActivityTracing" propagateActivity="true"> <listeners> <add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\temp\log\log_Traces.svclog" /> </listeners> </source> </sources> </system.diagnostics>

2023-02-25 · 1 分钟 · SAM

Hello World

1 Console.WriteLine("hellow World"); mklink 命令是将文件或目录建立双向连接, 该变任何一方都会发生变化, 其主要文件链接有三: 符号链接(软件接), 目录连接(软件接), 文本文件链接(硬连接), 可以这样理解, 软连接, 是建立快捷方式, 硬连接, 是进行复制 win + R 打开资源管理器输入: cmd 点击: 确定 在 cmd 里面输入: mklink /? 来查看 mklink 命令和参数的使用 语法: mklink [[/D] | [/H] | [/J]] Link Target 参数: /D 创建符号目录连接,(软连接) /H 文本文件链接(硬连接) /J 创建目录连接(软连接) link 要创建新链接的文件 Target 源文件 ------------------------------------------------------ 参数 /D 和 /J 都是建立目录连接, /H 是建立文件链接 markdown用法: Hugo模板加载顺序: /layouts/section/-baseof.html /themes//layouts/section/-baseof.html /layouts//baseof.html /themes//layouts//baseof.html /layouts/section/baseof.html /themes//layouts/section/baseof.html /layouts/_default/-baseof.html /themes//layouts/_default/-baseof.html /layouts/_default/baseof.html /themes//layouts/_default/baseof....

2023-02-25 · 1 分钟 · SAM