随笔分类 - C#.Net & MVC
摘要:1,首先需要将MySql.Data.dll复制到codesmith安装目录下bin文件夹下,注意dll的版本 2,其次因为codesmith7采用的是.net4.0的配置文件,(64位系统)找到C:\Windows\Microsoft.Net\Framework64\v4.0.30319\Confi
阅读全文
摘要:做C#的同学们,都知道,一类只能有一个继承类,但可以实现多个接口。这句话就告诉我们:IEnumerable,ICollection,IList,List区别了
阅读全文
摘要:using System; using System.Data; using System.Configuration; using System.Data.SqlClient; namespace Dapper { public class b_base { public IDbConnection Connection = null; publ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Threading.Tasks; using System.Collections.Concurrent; namespace ConsoleApplication...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { s...
阅读全文
摘要:①确保服务器上安装了Web Deploy,可以使用微软Web Paltform Installer安装。https://www.microsoft.com/web/downloads/platform.aspx ②VS中生成Web Deploy打包文件 ③确保系统服务中“Web部署代理服务”已经启动
阅读全文
摘要:控制器部分 视图部分 确认邮件模板
阅读全文
摘要:using System; using System.Collections.Generic; using System.Text; using System.Net.Sockets; using System.Threading; namespace EventBase { /*解决Socket的粘包处理 使用方法 A2DTcpClient client = ...
阅读全文
摘要:using System; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; namespace socket2016 { class Program { static void Main(string[] args) { ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Diagnostics; using System.IO; public partial c...
阅读全文
摘要:Restriction Operators Where - Simple 1 public void Linq1() { int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; var lowNums = from n in numbers where n 0 && p.UnitPrice > 3.00M...
阅读全文
摘要:// Create the in-memory bitmap where you will draw the image. // This bitmap is 300 pixels wide and 50 pixels high. Bitmap image = new Bitmap(300, 50); // get the grap...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Threading; using System.Web.UI.WebControls; public partial class muti_thread : S...
阅读全文
摘要:C#无限级分类递归显示示例 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.T...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Data; using System.Xml; using System.Xml.Serialization; /// /// Xml序列化与反序列化 /// ...
阅读全文
摘要:①打开C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config目录,找到machine.config文件新增 <add name="SQLite Data Provider" invariant="System.Data.SQLite" descr
阅读全文
摘要:因为ASP.NET中Session的存取机制与ASP相同,都是保存在进行中, 一旦进程崩溃,所有Session信息将会丢失,所以我采取了将Session信息保存到SQL Server中,尽管还有其它的 几个方式(本文不作介绍),要将Session保存到SQL Server中,需要有以下几个步骤: 1
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Thr...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Drawing; using System.IO; using System.Drawing.Imaging; public par...
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.InteropService...
阅读全文