// Creates CircuitProbe wrapper
        private CircuitProbe CreateItem(
            // Fields of CircuitProbe table
            Guid CircuitProbeId,
            string Name,
            string Note
            // Fields of Circuit table

            )
        {
            TableSnapshot <CircuitData> tableCircuit = (TableSnapshot <CircuitData>) this.CircuitProject.Table("Circuit");
            CircuitData dataCircuit = new CircuitData()
            {
                CircuitId = CircuitProbeId
            };
            RowId rowIdCircuit = tableCircuit.Insert(ref dataCircuit);

            CircuitProbeData dataCircuitProbe = new CircuitProbeData()
            {
                CircuitProbeId = CircuitProbeId,
                Name           = Name,
                Note           = Note,
            };

            return(this.Create(this.Table.Insert(ref dataCircuitProbe), rowIdCircuit));
        }
        // Constructor
        public CircuitProbeSet(CircuitProject store)
        {
            ITableSnapshot table = store.Table("CircuitProbe");

            if (table != null)
            {
                Debug.Assert(store.IsFrozen, "The store should be frozen");
                this.Table = (TableSnapshot <CircuitProbeData>)table;
            }
            else
            {
                Debug.Assert(!store.IsFrozen, "In order to create table, the store should not be frozen");
                this.Table = CircuitProbeData.CreateTable(store);
            }
            this.InitializeCircuitProbeSet();
        }