Click here to Skip to main content
15,895,871 members
Articles / Programming Languages / XML

netTierGenerator

Rate me:
Please Sign up or sign in to vote.
4.81/5 (20 votes)
30 Nov 2008CPOL14 min read 67.6K   2.8K   108  
A 3-tier application framework and code generation tool - the way for rapid and effective development.
using System;
using System.Collections.Generic;
using System.Text;
using TierGenerator.Common.Util.ISql;

namespace TierGenerator.Common.Util.Settings
{
    public class TierGeneratorSettings
    {
        #region Class Members

        private bool _isDebug;

        private string _solution;
        private string _dalDialect;
        private DalDialectEnum _dalDialectEnum;

        private string _slnPath;
        private string _slnPathText;

        private string _tierModelPath;
        private string _tierModelPathText;

        private string _modelPath;
        private string _modelPathText;

        private string _iDalPath;
        private string _iDalPathText;

        private string _dalPath;
        private string _dalPathText;

        private string _bllPath;
        private string _bllPathText;

        private string[] _cultures;
        private string _resGenPath;

        #endregion Class Members

        #region Properties

        public bool IsDebug
        {
            get { return this._isDebug; }
            set { this._isDebug = value; }
        }

        public string Solution
        {
            get { return this._solution; }
            set { this._solution = value; }
        }

        public string DalDialect
        {
            get { return this._dalDialect; }
            set 
            {
                this._dalDialect = value;

                if (this._dalDialect.ToLower() == "MsSQL".ToLower())
                {
                    this.DalDialectEnum = DalDialectEnum.MS_SQL;
                }
                else if (this._dalDialect.ToLower() == "MsAccess".ToLower())
                {
                    this.DalDialectEnum = DalDialectEnum.MS_ACCESS;
                }
            }
        }

        public DalDialectEnum DalDialectEnum
        {
            get { return this._dalDialectEnum; }
            set { this._dalDialectEnum = value; }
        }

        /// <summary>
        /// Absolute path
        /// </summary>
        public string SolutionPath
        {
            get { return this._slnPath; }
            set { this._slnPath = value; }
        }

        /// <summary>
        /// Local path
        /// </summary>
        public string SolutionPathText
        {
            get { return this._slnPathText; }
            set { this._slnPathText = value; }
        }

        /// <summary>
        /// Absolute path
        /// </summary>
        public string TierModelPath
        {
            get { return this._tierModelPath; }
            set { this._tierModelPath = value; }
        }

        /// <summary>
        /// Local path
        /// </summary>
        public string TierModelPathText
        {
            get { return this._tierModelPathText; }
            set { this._tierModelPathText = value; }
        }

        /// <summary>
        /// Absolute path
        /// </summary>
        public string ModelPath
        {
            get { return this._modelPath; }
            set { this._modelPath = value; }
        }

        /// <summary>
        /// Local path
        /// </summary>
        public string ModelPathText
        {
            get { return this._modelPathText; }
            set { this._modelPathText = value; }
        }

        /// <summary>
        /// Absolute path
        /// </summary>
        public string IDalPath
        {
            get { return this._iDalPath; }
            set { this._iDalPath = value; }
        }

        /// <summary>
        /// Local path
        /// </summary>
        public string IDalPathText
        {
            get { return this._iDalPathText; }
            set { this._iDalPathText = value; }
        }

        /// <summary>
        /// Absolute path
        /// </summary>
        public string DalPath
        {
            get { return this._dalPath; }
            set { this._dalPath = value; }
        }

        /// <summary>
        /// Local path
        /// </summary>
        public string DalPathText
        {
            get { return this._dalPathText; }
            set { this._dalPathText = value; }
        }

        /// <summary>
        /// Absolute path
        /// </summary>
        public string BllPath
        {
            get { return this._bllPath; }
            set { this._bllPath = value; }
        }

        /// <summary>
        /// Local path
        /// </summary>
        public string BllPathText
        {
            get { return this._bllPathText; }
            set { this._bllPathText = value; }
        }

        /// <summary>
        /// Cultures
        /// </summary>
        public string[] Cultures
        {
            get
            {
                if (this._cultures == null)
                {
                    this._cultures = new string[0];
                }
                return this._cultures;
            }
            set { this._cultures = value; }
        }

        /// <summary>
        /// Local path
        /// </summary>
        public string ResGenPath
        {
            get { return this._resGenPath; }
            set { this._resGenPath = value; }
        }        

        #endregion

        public TierGeneratorSettings()
            : this(false)
        {
        }

        public TierGeneratorSettings(bool _isDebug)
        {
            this._isDebug = _isDebug;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions