public MwPropertyInfoDictionary GetProperties(string classId) { string template = @"SELECT * FROM [dbo].[WEB_SERVICE_PROPERTIES] P WHERE P.CLASS_ID = {0};"; string sql = string.Format(template, classId); DataSet dataSet = this.Database.ExecuteDataSet(CommandType.Text, sql); MwPropertyInfoDictionary dictionary = new MwPropertyInfoDictionary(); foreach (DataRow row in dataSet.Tables[0].Rows) { var info = MwPropertyInfo.FromDataRow(row); dictionary.Add(info.PropertyName, info); } return(dictionary); }
public MwClassInfo() { this.Properties = new MwPropertyInfoDictionary(); }