摘要: 1.创建console project 2.通过NuGet安装Ninject 3.创建一个类,一会我们将通过Ninject的方式来获得它的对象。 4.在Main方法里面,获取Salutation对象,并调用它的SayHello方法 5.运行 阅读全文
posted @ 2017-01-13 12:20 jinxinhelloworld 阅读(93) 评论(0) 推荐(0) 编辑
摘要: what? 是什么? 是除了直接new对象之外的,另一种获得对象的手段 why? 为什么要引入这个概念? 解耦 how? 它是怎么工作的? 向容器索要对象,而不是自己去创建需要的对象。 SomeClass a=Container.Get<SomeClass>(); 怎么实现? 通过Ninject实现 阅读全文
posted @ 2017-01-13 11:56 jinxinhelloworld 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 不可以混用,具体暂时不知道原因 阅读全文
posted @ 2016-11-01 21:33 jinxinhelloworld 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 代码下载 1. 新建项目。 新建MVC项目 EFCallSP 2. 新建数据库。添加表,存储过程。 a) 在App_Data里面添加数据库MyDataBase。 b) 新建表 T1 如下 c) 新建存储过程 SP_Select 如下 3. 新建EDMX,关联T1 和 SP_Select,并编译。 4 阅读全文
posted @ 2016-10-30 08:14 jinxinhelloworld 阅读(678) 评论(0) 推荐(0) 编辑
摘要: solution1.Tick the primary key 1.right click on the Id of the entity in dataset schema. 2.Edit Key 3.Tick the Primary Key 阅读全文
posted @ 2014-05-05 18:01 jinxinhelloworld 阅读(216) 评论(0) 推荐(0) 编辑
摘要: --Prepare test dataCREATE TABLE TblTest( GroupName varchar(max), MemberName varchar(max))INSERT INTO TblTestVALUES ( 'g1', 'm1' )INSERT INTO TblTest... 阅读全文
posted @ 2014-04-17 14:21 jinxinhelloworld 阅读(379) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/deerchao/archive/2006/08/24/zhengzhe30fengzhongjiaocheng.htmlmetacharacter(元字符) \b 单词的开头或结尾,也就是单词的分界处 \d 一位数字 \w 字母或数字或下划线或汉字 \s 任意的空白符,包括空格,制表符(Tab),换行符,中文全角空格等 . 匹配除换行符以外的任意字符 ^ 字符串开始 $ 字符串结束转义 unibetter\.com匹配unibetter.com C:\\Windows匹配C:\Windows。 \( ... 阅读全文
posted @ 2013-12-26 11:11 jinxinhelloworld 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Solution1.Set server authentication 1.Login database with other user. 2.After login,right click on the server,select Properties. 3.On the popup page,select Security,select SQL Server and Windows authentication mode. 4.Click ok. 5.Right click on SQL Server,Restart. 阅读全文
posted @ 2013-11-22 21:50 jinxinhelloworld 阅读(239) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/soldierluo/article/details/4732853 阅读全文
posted @ 2013-11-14 22:19 jinxinhelloworld 阅读(84) 评论(0) 推荐(0) 编辑
摘要: The request failed with the error message: Could not find schema information for the element 'urn:nhibernate-mapping-2.2:hibernate-mapping'. ...solution1.modify the .hbm.xml file correct the according others .hbm.xml file 阅读全文
posted @ 2013-09-20 15:19 jinxinhelloworld 阅读(212) 评论(0) 推荐(0) 编辑