- 博客(23)
- 资源 (6)
- 问答 (1)
- 收藏
- 关注
原创 MVC 使用unity 完成构造注入demo
工程目录:1. IService 接口层,新增IUserService .IBaseService 是定义的一个基础类namespace IService{ public interface IUserService: IBaseService<User> { string getUserName(); }}2. Service 接口实现层,新增UserServices实现IUserServicenamespace Servi.
2020-07-02 17:30:19
282
原创 IIS的配置问题:Server Error in '/' Application.
The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">').
2016-11-25 17:22:57
12742
转载 MVC中JSON字符长度超出限制的异常
Type : System.InvalidOperationException, mscorlib, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b77a5c561934e089Message : 使用 JSON JavaScriptSerializer 进行序列化或反序列化时出错。字符串
2016-11-03 16:16:38
9790
原创 html5 学习笔记——canvas(一)
jquery 错误:Uncaught TypeError: $(...).getContext is not a function
2016-03-25 15:51:34
367
原创 nhibernate的简单配置与使用
配置nhibernate的方式有两种,一种是通过xml文件的方式配置,还有就是通过class的方式配置。网上大多数是以xml的方式配置nhibernate,本文则已class的方式来配置,并通过IOC(依赖注入,本文以构造注入)的方式注册nhibernate。下面就以一个demo来说明配置、注入以及使用的方法。创建一个工程,在工程下添加三个项目。 1、Web工程(demo采用的是MVC框架)...
2016-01-07 17:55:03
2669
Nhibernate配置demo
2016-01-07
监听浏览器标签关闭事件
2015-04-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人