12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.ComponentModel;
- namespace CreateTableColumnFile
- {
- public class SetProperties
- {
- private string _namespace = "SysDataLibs.TableClass";
- [Description("产生的代码空间命名"), CategoryAttribute("基础配置")]
- public string NameSpace
- {
- get { return _namespace; }
- set { _namespace = value; }
- }
- private string _TablesClassName = "Tn";
- [Description("表所在的类名"), CategoryAttribute("基础配置")]
- public string TablesClassName
- {
- get { return _TablesClassName; }
- set { _TablesClassName = value; }
- }
- //private string _TableColumnName = "cn_";
- //[Description("表类的命名前缀"), CategoryAttribute("基础配置")]
- //public string TableColumnName
- //{
- // get { return _TableColumnName; }
- // set { _TableColumnName = value; }
- //}
- private string _server = "120.25.240.119";
- [Description("服务器名"), CategoryAttribute("数据库链接配置")]
- public string SERVER
- {
- get { return _server; }
- set { _server = value; }
- }
- private string _database = "GsMarket";
- [Description("数据库名"), CategoryAttribute("数据库链接配置")]
- public string database
- {
- get { return _database; }
- set { _database = value; }
- }
- private string _uid = "sa";
- [Description("登录用户名"), CategoryAttribute("数据库链接配置")]
- public string uid
- {
- get { return _uid; }
- set { _uid = value; }
- }
- private string _pwd = "syfsz,./";
- [Description("登录密码"), CategoryAttribute("数据库链接配置")]
- public string pwd
- {
- get { return _pwd; }
- set { _pwd = value; }
- }
- private bool _IsCreateMotheds = true;
- [Description("是否要创建表类的相关方法"), CategoryAttribute("其他配置")]
- public bool IsCreateMotheds
- {
- get { return _IsCreateMotheds; }
- set { _IsCreateMotheds = value; }
- }
- public string GetConnString()
- {
- return "server=" + _server + ";database=" + _database + ";uid=" + _uid + ";pwd=" + _pwd + ";";
- }
- // server=songyf;database=dbshwashar;uid=sa;pwd=;
- }
- }
|