android SDK问题:<dl-ssl.google.com> != <www.google.com>

通过SDK Manager进行更新时,总是提示Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com refused很多网友也都说这些更新网站访问不了,大概是https 与 htt …… 阅读全文

EF中执行存储过程,获取output返回值

EF不能直接支持执行存储过程,于是使用转化成执行SQL语句的形式,却怎么也获取不到output的值,折腾的好久,终于解决了,分享下曲折的经历:public int AddVote(int titleId, int blockId, int typeId) { List paramArray = new List(); paramA …… 阅读全文

在Sql中使用Try Catch

今天在写sql中出现了!我想在sql使用trycatch吧! 哎..但是语法又记不住了! 那就清楚我们的google大师吧! 嘿,网上关于在sql中使用Try Catch的还有真不少的文章! 闲话就少了! 今天记录下来以便下次使时查阅!创建错误日志表:CREATE TABLE ErrorLog(errNum INT,ErrSev NVARCHAR(1000),ErrState IN …… 阅读全文

C# 对象的使用

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication2{ class object_sample { public int i = 10; } class Program …… 阅读全文

C#之 浅复制学习案例

using System;using System.Collections.Generic;using System.Linq;namespace ICloneable_test1{ class ShallowCopy : ICloneable { public int []v={1,2,3}; //初始化一个整型数组 public …… 阅读全文

C#之深复制学习案例

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ICloneable_test2{ class DeepCopy : ICloneable { public int[] v = { 1,2,3}; // …… 阅读全文