您目前尚未登陆,请选择【登陆】或【注册
首页->全站代码->中小企业网站系统前台源码(SmallBusinessStarterKit)>>App-Code/People/People.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:中小企业网站系统前台源码(SmallBusinessStarterKit)


当前文件路径:SmallBusinessStarterKit/App_Code/People/People.cs 文件类型
普通视图
		            
1using System; 2using System.Configuration; 3using System.Web.Configuration; 4using System.Collections; 5using System.Collections.Specialized; 6using System.Collections.Generic; 7using System.Web; 8///<summary> 9/// class People 10/// Provides static functions to access 'people' 11/// and serves as abastraction layer between the web Page and 12/// actual data providers 13///</summary> 14 public static class People { 15 16 private static bool _isInitialized = false; 17 private static PeopleProvider _provider; 18 private static SmallBusinessDataProvidersSection _providersSection; 19 20 public static PeopleProvider Provider { 21 get { 22 Initialize(); 23 return _provider; 24 } 25 } 26 27 public static List<Person> GetAllPersons() 28 { 29 return Provider.GetAllPersons(); 30 } 31 32 33 private static void Initialize() { 34 if (!_isInitialized) { 35 _providersSection = (ConfigurationManager.GetSection("SmallBusinessDataProviders")) as SmallBusinessDataProvidersSection; 36 if (_providersSection == null) 37 { 38 throw new Exception(Messages.PeopleConfigSectionNotFound); 39 } 40 41 _provider = ProvidersHelper.InstantiateProvider(_providersSection.PeopleProviders[_providersSection.PeopleProviderName], 42 typeof(PeopleProvider)) as PeopleProvider; 43 44 if (_provider == null) { 45 throw new Exception("People default provider could not be instantiated"); 46 } 47 } 48 } 49 50 } 51
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:中小企业网站系统前台源码(SmallBusinessStarterKit)

- 简单饼型图报表源码

- Asp.net多线程下载示例源码

- 简单快乐留言簿源码

- myhome2009三层项目源码

- 荒野新闻系统Access最终开源版

- 开放式实验室预约系统 V1.0

- 天下新闻网程序源码

- 网博直销系统软件源码

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号