Config/ConfigItem.cs

(开头部分) 9KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

using ComLib.Entities;
using ComLib.Data;
using ComLib.ValidationSupport;


namespace ComLib.Configuration
{
    /// <summary>
    /// An entity to represent the config item in a persistant store.
    /// </summary>
    public class ConfigItem : ActiveRecordBaseEntity<ConfigItem>
    {
        /// <summary>
        /// Application name. 
        /// To associate config settings from a different application.
        /// </summary>
        public string App { get; set; }


        /// <summary>
        /// Dev.config
        /// </summary> 
        public string Name { get; set; }


        /// <summary>
        /// AppSettings
        /// </summary>
        public string Section { get; set; }


        /// <summary>
        /// PageSize
        /// </summary>
        public string Key { get; set; }


        /// <summary>
        /// 15
        /// </summary>
        public string Val { get; set; }


        /// <summary>
        ///  Int | bool | double etc.
        /// </summary>
        public string ValType { get; set; }


        /// <summary>
        /// Create the config entry.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="app">Application name.</param>
后面还有 175 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。