⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 communityinfo.cs

📁 一个ASP.NET下的中文内容管理和社区系统
💻 CS
字号:
namespace ASPNET.StarterKit.Communities {
    using System;
    using System.Data;


    //*********************************************************************
    //
    // CommunityInfo Class
    //
    // Represents all the information about a particular community. 
    //
    //*********************************************************************
   
    public class CommunityInfo {

        private int _id;
		private string _name;
        private Guid _uniqueID;
        private string _primaryDomain;
        private string _domain;
        private string _subDomain;
        private string _smtpServer;
		private int _databaseQuota;
		private bool _isDisplayed;
        private bool _enableTopicMenu;



        //*********************************************************************
        //
        // ID Property
        //
        // The value of the identity column. 
        //
        //*********************************************************************
           
        public int ID {
            get {return _id;}
        } 


        //*********************************************************************
        //
        // Name Property
        //
        // The name of this community. 
        //
        //*********************************************************************
    		
		public string Name 
		{
			get {return _name;}
		}


        //*********************************************************************
        //
        // UniqueID Property
        //
        // The globally unique ID of this community. 
        //
        //*********************************************************************
    
        public Guid UniqueID {
            get {return _uniqueID;}
        } 



        //*********************************************************************
        //
        // PrimaryDomain Property
        //
        // The domain used when sending emails and forming absolute URLs. 
        //
        //*********************************************************************
    
        public string PrimaryDomain {
            get {return _primaryDomain;}
        } 


        //*********************************************************************
        //
        // Domain Property
        //
        // The domain name used for matching request for this community. 
        //
        //*********************************************************************
    
        public string Domain {
            get {return _domain;}
        } 



        //*********************************************************************
        //
        // SubDomain Property
        //
        // The sub domain matched when making requests for this community. 
        //
        //*********************************************************************
    
        public string SubDomain {
            get {return _subDomain;}
        } 


        //*********************************************************************
        //
        // SmtpServer Property
        //
        // The email server associated with this community. 
        //
        //*********************************************************************
    
        public string SmtpServer {
            get {return _smtpServer;}
        } 


        //*********************************************************************
        //
        // DatabaseQuota Property
        //
        // The total file and image data that can be stored for this community. 
        //
        //*********************************************************************
    
		public int DatabaseQuota 
		{
			get {return _databaseQuota;}
		}


        //*********************************************************************
        //
        // IsDisplayed Property
        //
        // Determines whether this community is displayed in the Communities menu. 
        //
        //*********************************************************************
    
		public bool IsDisplayed
		{
			get {return _isDisplayed;}
		}



        //*********************************************************************
        //
        // EnableTopicMenu Property
        //
        // Determines whether this community displays topics. 
        //
        //*********************************************************************
    
		public bool EnableTopicMenu
		{
			get {return _enableTopicMenu;}
		}


        //*********************************************************************
        //
        // CommunityInfo Constructor
        //
        // Retrieves community info from a datarow. 
        //
        //*********************************************************************
           
        public CommunityInfo(DataRow drow) {
            _id = (int)drow["community_id"];
            _uniqueID = (Guid)drow["community_uniqueID"];
            _primaryDomain = (string)drow["community_primaryDomain"];
            _domain = (string)drow["community_domain"];
            _subDomain = (string)drow["community_subDomain"];
            _smtpServer = (string)drow["community_smtpServer"];
			_name = (string)drow["community_name"];
			_databaseQuota = (int)drow["community_databaseQuota"];
			_isDisplayed = (bool)drow["community_isDisplayed"];
			_enableTopicMenu = (bool)drow["community_enableTopicMenu"];
		}
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -