sportdog

导航

 
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页

2015年8月11日

摘要: http://luo.apkbus.com/http://down.51cto.com/data/860725 阅读全文
posted @ 2015-08-11 09:20 sportdog 阅读(120) 评论(0) 推荐(0)
 
摘要: SDK版本:jdk-8u51-windows-x64SDKManager 代理服务器:mirrors.opencas.cn 端口:80 通过这个更新 Andriod API等(http://www.cnblogs.com/sunzn/p/4242131.html)Andriod 版本: 5.1.1... 阅读全文
posted @ 2015-08-11 08:53 sportdog 阅读(149) 评论(0) 推荐(0)
 

2015年1月6日

摘要: 理解如下:客户端不能直接调用具体的业务类时可以使用代理类.代理类和业务类重同一接口继承下来.代理类调用业务类,客户端调用代理类.接口代码: /// /// 定义客户端调用的目标对象的接口 /// public interface IPlayMusic { s... 阅读全文
posted @ 2015-01-06 14:44 sportdog 阅读(159) 评论(1) 推荐(0)
 

2014年12月25日

摘要: 需求:思想批量保存数据.思路:看了一下MVVM.发现只需要实现前台和后台数据的同步即可.也就是前台的文本框内容变化时后台的对象的属性也要变化就可以了.参考:http://www.cnblogs.com/luluping/archive/2011/05/06/2039475.html该网址只包括单个对... 阅读全文
posted @ 2014-12-25 11:12 sportdog 阅读(441) 评论(0) 推荐(0)
 

2014年12月4日

摘要: using System;using System.Data;using System.Data.SqlClient;using System.Data.SqlTypes;using Microsoft.SqlServer.Server;using System.Text;using System.... 阅读全文
posted @ 2014-12-04 15:39 sportdog 阅读(153) 评论(0) 推荐(0)
 

2014年10月23日

摘要: 将BlogTypes注释掉,但因为Blogs中定义了BlogType 这样类型的属性,所以Ef会聪明的找到BlogType类. public class BlogEntities:DbContext { static BlogEntities() { ... 阅读全文
posted @ 2014-10-23 10:05 sportdog 阅读(181) 评论(0) 推荐(0)
 
摘要: 参考:http://www.cnblogs.com/Wayou/archive/2012/09/20/EF_CodeFirst.htmlwebconfig中修改: 我的测试环境没用MVC,用的普通aspx页面:运行Step001页面时,就会自动将你的业务类创建到远程的数据库上了.public pa... 阅读全文
posted @ 2014-10-23 09:26 sportdog 阅读(267) 评论(0) 推荐(0)
 
摘要: BlogEntities这个类从DbContext继承,负责数据库的更新.Database.SetInitializer(new DropCreateDatabaseIfModelChanges());这段代码表示:当具体的类发生变化时将重新删除现有的数据库,重新生成新的数据库.测试:修改TestU... 阅读全文
posted @ 2014-10-23 09:20 sportdog 阅读(379) 评论(0) 推荐(0)
 
摘要: Code First 的核心是约定,这些默认的规则使我们可以用我们自己的类来创建模型。EF框架要求一个类必须有一个键属性。规则约定如果一个属性名为Id或者是类名+Id的形式(如PatientId),这一属性就被自动配置为键。如果无法找到满足这一规则的属性,将会在运行时抛出一个异常告诉你没有找到Key... 阅读全文
posted @ 2014-10-23 08:47 sportdog 阅读(469) 评论(0) 推荐(0)
 

2014年10月21日

摘要: 连接集合select '1' as id,'wang' as nameunion select '2' as id,'admin' as name现在可以这么写了select id,namefrom(values('1','wang'),('2','admin'))users(id,name) 阅读全文
posted @ 2014-10-21 11:33 sportdog 阅读(184) 评论(0) 推荐(0)
 
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页