public override Dictionary <int, AttributeSchema> BuildAttributeSchemaDictionary() { MockDataRecordset rst = (MockDataRecordset)_rst; Dictionary <string, string> attrsch; for (int i = 0; i < rst.AttributeSchemaRecords.Values.Count; i++) { attrsch = rst.AttributeSchemaRecords.Values.ElementAt <Dictionary <string, string> >(i); AttributeSchema a = FillAttributeSchema(attrsch); _attrschlist.Add(a.Id, a); } return(_attrschlist); }
public override Dictionary <int, AttributeItem> BuildAttributeDictionary() { MockDataRecordset rst = (MockDataRecordset)_rst; Dictionary <string, string> attr; if (_attrschlist.Values.Count == 0) { BuildAttributeSchemaDictionary(); } for (int i = 0; i < rst.AttributeRecords.Values.Count; i++) { attr = rst.AttributeRecords.Values.ElementAt <Dictionary <string, string> >(i); AttributeItem a = FillAttribute(attr); _attrlist.Add(a.Id, a); } return(_attrlist); }
public MockRecordsetIntegration(MockDataRecordset Recordset) : base(Recordset) { Initialize(); }