// Creates table. public static TableSnapshot <LogicalCircuitData> CreateTable(StoreSnapshot store) { TableSnapshot <LogicalCircuitData> table = new TableSnapshot <LogicalCircuitData>(store, "LogicalCircuit", LogicalCircuitData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_LogicalCircuit", LogicalCircuitData.LogicalCircuitIdField.Field, true); table.MakeUnique("AK_LogicalCircuit_Name", LogicalCircuitData.NameField.Field, false); // Return created table return(table); }
// Creates table. public static TableSnapshot <CircuitProbeData> CreateTable(StoreSnapshot store) { TableSnapshot <CircuitProbeData> table = new TableSnapshot <CircuitProbeData>(store, "CircuitProbe", CircuitProbeData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_CircuitProbe", CircuitProbeData.CircuitProbeIdField.Field, true); table.MakeUnique("AK_CircuitProbe_Name", CircuitProbeData.NameField.Field, false); // Return created table return(table); }
// Creates table. public static TableSnapshot <DevicePinData> CreateTable(StoreSnapshot store) { TableSnapshot <DevicePinData> table = new TableSnapshot <DevicePinData>(store, "DevicePin", DevicePinData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_DevicePin", DevicePinData.PinIdField.Field, true); table.MakeUnique("AK_DevicePinName", DevicePinData.CircuitIdField.Field, DevicePinData.NameField.Field); table.CreateIndex("IX_Circuit_DevicePin", DevicePinData.CircuitIdField.Field); // Return created table return(table); }
// Creates table. public static TableSnapshot <CollapsedCategoryData> CreateTable(StoreSnapshot store) { TableSnapshot <CollapsedCategoryData> table = new TableSnapshot <CollapsedCategoryData>(store, "CollapsedCategory", CollapsedCategoryData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_CollapsedCategory", CollapsedCategoryData.NameField.Field, true); // Return created table return(table); }
// Creates table. public static TableSnapshot <MemoryData> CreateTable(StoreSnapshot store) { TableSnapshot <MemoryData> table = new TableSnapshot <MemoryData>(store, "Memory", MemoryData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_Memory", MemoryData.MemoryIdField.Field, true); // Return created table return(table); }
// Creates table. public static TableSnapshot <ProjectData> CreateTable(StoreSnapshot store) { TableSnapshot <ProjectData> table = new TableSnapshot <ProjectData>(store, "Project", ProjectData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_Project", ProjectData.ProjectIdField.Field, true); // Return created table return(table); }
// Creates table. public static TableSnapshot <LedMatrixData> CreateTable(StoreSnapshot store) { TableSnapshot <LedMatrixData> table = new TableSnapshot <LedMatrixData>(store, "LedMatrix", LedMatrixData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_LedMatrix", LedMatrixData.LedMatrixIdField.Field, true); // Return created table return(table); }
// Creates table. public static TableSnapshot <SensorData> CreateTable(StoreSnapshot store) { TableSnapshot <SensorData> table = new TableSnapshot <SensorData>(store, "Sensor", SensorData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_Sensor", SensorData.SensorIdField.Field, true); // Return created table return(table); }
// Creates table. public static TableSnapshot <CircuitButtonData> CreateTable(StoreSnapshot store) { TableSnapshot <CircuitButtonData> table = new TableSnapshot <CircuitButtonData>(store, "CircuitButton", CircuitButtonData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_CircuitButton", CircuitButtonData.CircuitButtonIdField.Field, true); // Return created table return(table); }
// Creates table. public static TableSnapshot <GraphicsArrayData> CreateTable(StoreSnapshot store) { TableSnapshot <GraphicsArrayData> table = new TableSnapshot <GraphicsArrayData>(store, "GraphicsArray", GraphicsArrayData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_GraphicsArray", GraphicsArrayData.GraphicsArrayIdField.Field, true); // Return created table return(table); }
// Creates table. public static TableSnapshot <WireData> CreateTable(StoreSnapshot store) { TableSnapshot <WireData> table = new TableSnapshot <WireData>(store, "Wire", WireData.fields); // Create all but foreign keys of the table table.MakeUnique("PK_Wire", WireData.WireIdField.Field, true); table.CreateIndex("IX_LogicalCircuit_Wire", WireData.LogicalCircuitIdField.Field); // Return created table return(table); }