日期:2014-05-18 浏览次数:20809 次
[ConfigOP.CfgAttribute.CfgEntity (Name="DBInfo", Description="这是一个测试")] class CfgEntity_DbInfo { public string DataSource {get; set;} public string InitialCatalog { get; set; } public string User { get; set; } public string Pwd { get; set; } public int ID { get; set; } public int ADDItem { get; set; } public CfgEntity_DbInfo() { DataSource = "222.222.222.222"; InitialCatalog = "i dont know"; User = "aa"; Pwd = "123"; ID = 987654; ADDItem = 1; } }
CfgEntity_DbInfo et = new CfgEntity_DbInfo(); ConfigOP.ConfigOP cfg = new ConfigOP.ConfigOP(); cfg.IniConfig(et);