小新新2015

导航

 

2015年7月2日

摘要: 1 , Global.asax.cs添加如下代码:Database.SetInitializer(null);2 ,修改表结构 ,3 ,修改实体类和表结构同步4 ,如果第一次数据迁移 执行以下代码:Enable-Migrations -ProjectName SportStore.Domain -C... 阅读全文
posted @ 2015-07-02 17:54 小新新2015 阅读(1095) 评论(1) 推荐(0) 编辑
 
摘要: @Html.ActionLink(item.Name,"Edit",new{item.ProductID})生成如下连接:Soccer Ballparameter1:item.Name ================ Soccer Ballparemeter2:Edit =====... 阅读全文
posted @ 2015-07-02 11:01 小新新2015 阅读(488) 评论(0) 推荐(0) 编辑
 

2015年6月24日

摘要: CreateSMSTime>'2015-06-23' AND CreateSMSTime<'2015-06-25' 阅读全文
posted @ 2015-06-24 19:40 小新新2015 阅读(179) 评论(0) 推荐(0) 编辑
 

2015年6月19日

摘要: 1,用nuget引用entityframework2,添加配置文件: 3,设计实体: public class Book { public int BookID { get; set; } public string BookName { get; se... 阅读全文
posted @ 2015-06-19 10:32 小新新2015 阅读(166) 评论(0) 推荐(0) 编辑
 

2015年6月17日

摘要: "; mysql_set_charset( 'utf8', $mysqlconlink ); $mysqldblink = mysql_select_db($db,$mysqlconlink); if (!$mysqldblink) echo sprintf('No ... 阅读全文
posted @ 2015-06-17 17:58 小新新2015 阅读(332) 评论(0) 推荐(0) 编辑
 

2015年6月16日

摘要: mysql -u root -p --default-character-set=utf8 use dbname source /root/newsdata.sql 阅读全文
posted @ 2015-06-16 13:26 小新新2015 阅读(167) 评论(0) 推荐(0) 编辑
 

2015年6月15日

摘要: 阅读全文
posted @ 2015-06-15 11:03 小新新2015 阅读(197) 评论(0) 推荐(0) 编辑
 

2015年6月11日

摘要: int count =0; //分页 public IQueryable LoadPagerEntities(int pageSize, int pageIndex, out int total, Func whereLambda, bool isA... 阅读全文
posted @ 2015-06-11 10:03 小新新2015 阅读(160) 评论(0) 推荐(0) 编辑
 

2015年6月10日

摘要: $git clonehttps://github.com/username/Hello-World.git$git add READMEgit操作步骤:1,git add . git commit -m 'aaaa'2,git fetch origin master3,git merge orig... 阅读全文
posted @ 2015-06-10 17:18 小新新2015 阅读(115) 评论(0) 推荐(0) 编辑
 

2015年6月9日

摘要: ALTER TABLE xxx ADD INDEX xxxx( xxxx, xxxx, xxxxxx) 阅读全文
posted @ 2015-06-09 14:04 小新新2015 阅读(130) 评论(0) 推荐(0) 编辑