예제 #1
0
		/// <summary>
		/// Retrieves the table schema of an injected database
		/// </summary>
		/// <param name="TableData">The table data this should be stored into</param>
		public void PopulateTableStructure(ref GlobalDS.Table TableData)
		{			 
			int FieldCount;

			FieldCount = GetFieldCount(TableData.ObjectID);	
			
			for (int i=0; i < FieldCount; i++)
			{	
				TableData.AddField(GetFieldData(TableData.ObjectID, i));
			}
		}
예제 #2
0
		///<summary>Retrieve the information about the fields for a given table from the database schema.</summary>
		///<param name="TableData">The table to load field info for.</param>
		public void PopulateTableStructure(ref GlobalDS.Table TableData)
		{
			long[] FieldIDs;
			long PrimaryKey;
			int FieldCount;

			FieldIDs = GetFieldIDs(TableData.ObjectID);

			FieldCount = FieldIDs.Length;

			PrimaryKey = RetrievePrimaryKey(TableData.ObjectID);	

			for (int i=0; i < FieldCount; i++)
			{
				TableData.AddField(RetrieveField(FieldIDs[i], TableData.ObjectID, PrimaryKey));
			}
		}