随笔分类 -  C#.Net & MVC

摘要:1,首先需要将MySql.Data.dll复制到codesmith安装目录下bin文件夹下,注意dll的版本 2,其次因为codesmith7采用的是.net4.0的配置文件,(64位系统)找到C:\Windows\Microsoft.Net\Framework64\v4.0.30319\Confi 阅读全文
posted @ 2016-06-23 13:50 深南大道 阅读(1997) 评论(1) 推荐(1) 编辑
摘要:做C#的同学们,都知道,一类只能有一个继承类,但可以实现多个接口。这句话就告诉我们:IEnumerable,ICollection,IList,List区别了 阅读全文
posted @ 2016-06-21 16:38 深南大道 阅读(163) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Data; using System.Configuration; using System.Data.SqlClient; namespace Dapper { public class b_base { public IDbConnection Connection = null; publ... 阅读全文
posted @ 2016-06-21 16:32 深南大道 阅读(594) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2016-06-12 12:23 深南大道 阅读(310) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { s... 阅读全文
posted @ 2016-06-12 12:01 深南大道 阅读(793) 评论(0) 推荐(0) 编辑
摘要:①确保服务器上安装了Web Deploy,可以使用微软Web Paltform Installer安装。https://www.microsoft.com/web/downloads/platform.aspx ②VS中生成Web Deploy打包文件 ③确保系统服务中“Web部署代理服务”已经启动 阅读全文
posted @ 2016-06-11 21:54 深南大道 阅读(836) 评论(0) 推荐(0) 编辑
摘要:控制器部分 视图部分 确认邮件模板 阅读全文
posted @ 2016-06-11 11:14 深南大道 阅读(224) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Text; using System.Net.Sockets; using System.Threading; namespace EventBase { /*解决Socket的粘包处理 使用方法 A2DTcpClient client = ... 阅读全文
posted @ 2016-06-06 11:30 深南大道 阅读(419) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; namespace socket2016 { class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2016-05-18 09:25 深南大道 阅读(1637) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-06-12 10:56 深南大道 阅读(245) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-04-04 15:16 深南大道 阅读(241) 评论(0) 推荐(0) 编辑
摘要:// 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... 阅读全文
posted @ 2015-03-31 14:53 深南大道 阅读(332) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2015-03-10 17:04 深南大道 阅读(1349) 评论(0) 推荐(0) 编辑
摘要:C#无限级分类递归显示示例 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.T... 阅读全文
posted @ 2015-03-05 13:06 深南大道 阅读(450) 评论(0) 推荐(0) 编辑
摘要: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序列化与反序列化 /// ... 阅读全文
posted @ 2015-02-06 16:02 深南大道 阅读(369) 评论(0) 推荐(0) 编辑
摘要:①打开C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config目录,找到machine.config文件新增 <add name="SQLite Data Provider" invariant="System.Data.SQLite" descr 阅读全文
posted @ 2014-12-25 15:08 深南大道 阅读(342) 评论(0) 推荐(0) 编辑
摘要:因为ASP.NET中Session的存取机制与ASP相同,都是保存在进行中, 一旦进程崩溃,所有Session信息将会丢失,所以我采取了将Session信息保存到SQL Server中,尽管还有其它的 几个方式(本文不作介绍),要将Session保存到SQL Server中,需要有以下几个步骤: 1 阅读全文
posted @ 2014-08-28 15:23 深南大道 阅读(561) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2014-07-09 14:19 深南大道 阅读(365) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2014-07-04 14:30 深南大道 阅读(287) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2014-07-03 17:34 深南大道 阅读(785) 评论(0) 推荐(0) 编辑