// Creates all foreign keys of the table
        public static void CreateForeignKeys(StoreSnapshot store)
        {
            TableSnapshot <DevicePinData> table = (TableSnapshot <DevicePinData>)store.Table("DevicePin");

            table.CreateForeignKey("PK_DevicePin", store.Table("Circuit"), DevicePinData.PinIdField.Field, ForeignKeyAction.Cascade, false);
            table.CreateForeignKey("FK_Circuit_DevicePin", store.Table("Circuit"), DevicePinData.CircuitIdField.Field, ForeignKeyAction.Restrict, false);
        }
Beispiel #2
0
        // Creates all foreign keys of the table
        public static void CreateForeignKeys(StoreSnapshot store)
        {
            TableSnapshot <CircuitSymbolData> table = (TableSnapshot <CircuitSymbolData>)store.Table("CircuitSymbol");

            table.CreateForeignKey("FK_Circuit_CircuitSymbol", store.Table("Circuit"), CircuitSymbolData.CircuitIdField.Field, ForeignKeyAction.Cascade, false);
            table.CreateForeignKey("FK_LogicalCircuit_CircuitSymbol", store.Table("LogicalCircuit"), CircuitSymbolData.LogicalCircuitIdField.Field, ForeignKeyAction.Restrict, false);
        }
Beispiel #3
0
        // Creates all foreign keys of the table
        public static void CreateForeignKeys(StoreSnapshot store)
        {
            TableSnapshot <WireData> table = (TableSnapshot <WireData>)store.Table("Wire");

            table.CreateForeignKey("FK_LogicalCircuit_Wire", store.Table("LogicalCircuit"), WireData.LogicalCircuitIdField.Field, ForeignKeyAction.Cascade, false);
        }
Beispiel #4
0
        // Creates all foreign keys of the table
        public static void CreateForeignKeys(StoreSnapshot store)
        {
            TableSnapshot <CircuitProbeData> table = (TableSnapshot <CircuitProbeData>)store.Table("CircuitProbe");

            table.CreateForeignKey("PK_CircuitProbe", store.Table("Circuit"), CircuitProbeData.CircuitProbeIdField.Field, ForeignKeyAction.Cascade, false);
        }
Beispiel #5
0
        // Creates all foreign keys of the table
        public static void CreateForeignKeys(StoreSnapshot store)
        {
            TableSnapshot <MemoryData> table = (TableSnapshot <MemoryData>)store.Table("Memory");

            table.CreateForeignKey("PK_Memory", store.Table("Circuit"), MemoryData.MemoryIdField.Field, ForeignKeyAction.Cascade, false);
        }
Beispiel #6
0
        // Creates all foreign keys of the table
        public static void CreateForeignKeys(StoreSnapshot store)
        {
            TableSnapshot <ProjectData> table = (TableSnapshot <ProjectData>)store.Table("Project");

            table.CreateForeignKey("FK_LogicalCircuit_Project", store.Table("LogicalCircuit"), ProjectData.LogicalCircuitIdField.Field, ForeignKeyAction.Restrict, false);
        }
Beispiel #7
0
        // Creates all foreign keys of the table
        public static void CreateForeignKeys(StoreSnapshot store)
        {
            TableSnapshot <LedMatrixData> table = (TableSnapshot <LedMatrixData>)store.Table("LedMatrix");

            table.CreateForeignKey("PK_LedMatrix", store.Table("Circuit"), LedMatrixData.LedMatrixIdField.Field, ForeignKeyAction.Cascade, false);
        }
Beispiel #8
0
        // Creates all foreign keys of the table
        public static void CreateForeignKeys(StoreSnapshot store)
        {
            TableSnapshot <SensorData> table = (TableSnapshot <SensorData>)store.Table("Sensor");

            table.CreateForeignKey("PK_Sensor", store.Table("Circuit"), SensorData.SensorIdField.Field, ForeignKeyAction.Cascade, false);
        }
        // Creates all foreign keys of the table
        public static void CreateForeignKeys(StoreSnapshot store)
        {
            TableSnapshot <GraphicsArrayData> table = (TableSnapshot <GraphicsArrayData>)store.Table("GraphicsArray");

            table.CreateForeignKey("PK_GraphicsArray", store.Table("Circuit"), GraphicsArrayData.GraphicsArrayIdField.Field, ForeignKeyAction.Cascade, false);
        }