07 2015 档案
摘要:1. IEnumerable IEnumerable :对于在内存中集合上运行的方法,返回的可枚举对象将捕获传递到方法的参数。在枚举该对象时,将使用查询运算符的逻辑,并返回查询结果。 IEnumerable在.Net2.0引入。 IEnumberable使用的是LINQ to Object方式...
阅读全文
摘要:1. sessionState的4种mode模式 在ASP.NET中Session的sessionState的4中mode模式:Off、InProc、StateServer及SqlServer。2. Off模式 关闭模式,即不需要使用Session。 单个页面关闭Session:3. InPr...
阅读全文
摘要:1. Area简介 ASP.NET MVC Area机制构建项目,可以将相对独立的功能模块切割划分,降低项目的耦合度。2. Area设置Routing 新建Admin Area后,自动创建AdminAreaRegistration.cs,用于设置Area Routing。using System...
阅读全文
摘要:1. 查看用户表select name from sys.tablesselect name from sys.objects where type='U'select name from sysobjects where xtype='U' 其中type或xtype值:U = 用户表S = 系统...
阅读全文
摘要:1. Model任务 Model负责通过数据库、AD(Active Directory)、Web Service及其他方式获取数据,以及将用户输入的数据保存到数据库、AD、Web Service等中。 Model只专注于有效地提供数据访问机制、数据格式验证、业务逻辑验证等。2. 定义Model ...
阅读全文