Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Tons of new designer stuff |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
5d84d2aebfdf6a14e5a257eb0a3203b7 |
User & Date: | rmsimpson 2006-02-20 05:57:57.000 |
Context
2006-02-20
| ||
06:00 | Minor schema changes for new designer stuff check-in: ffe9777f44 user: rmsimpson tags: sourceforge | |
05:57 | Tons of new designer stuff check-in: 5d84d2aebf user: rmsimpson tags: sourceforge | |
2006-02-17
| ||
17:31 | Schema fixes for testing check-in: 11d1251b2a user: rmsimpson tags: sourceforge | |
Changes
Changes to SQLite.Designer/CtcComponents/PkgCmd.ctc.
︙ | ︙ | |||
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | CMDS_SECTION guidVSPackageBasedProviderPkg BUTTONS_BEGIN guidVSPackageBasedProviderCmdSet:cmdidCreateTable, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "&Create Table"; guidVSPackageBasedProviderCmdSet:cmdidAlterTable, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "&Alter Table"; guidVSPackageBasedProviderCmdSet:cmdidDropTable, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "&Drop Table"; BUTTONS_END CMDS_END CMDPLACEMENT_SECTION guidVSPackageBasedProviderCmdSet:cmdidCreateTable, guidVSData:IDG_DV_STATIC, 0x0100; guidVSPackageBasedProviderCmdSet:cmdidAlterTable, guidVSData:IDG_DV_OBJECT, 0x0100; guidVSPackageBasedProviderCmdSet:cmdidDropTable, guidVSData:IDG_DV_OBJECT, 0x0100; CMDPLACEMENT_END | > > > > > > > > > > > > | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | CMDS_SECTION guidVSPackageBasedProviderPkg BUTTONS_BEGIN guidVSPackageBasedProviderCmdSet:cmdidCreateTable, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "&Create Table"; guidVSPackageBasedProviderCmdSet:cmdidAlterTable, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "&Alter Table"; guidVSPackageBasedProviderCmdSet:cmdidDropTable, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "&Drop Table"; guidVSPackageBasedProviderCmdSet:cmdidCreateIndex, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "Create &Index"; guidVSPackageBasedProviderCmdSet:cmdidDropIndex, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "Drop Inde&x"; guidVSPackageBasedProviderCmdSet:cmdidDropView, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "Drop &View"; guidVSPackageBasedProviderCmdSet:cmdidVacuum, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "&Vacuum"; guidVSPackageBasedProviderCmdSet:cmdidRekey, Group_Undefined:0, 0x0000, OI_NOID, BUTTON, DIS_DEF, "Change &Password ..."; BUTTONS_END CMDS_END CMDPLACEMENT_SECTION guidVSPackageBasedProviderCmdSet:cmdidCreateTable, guidVSData:IDG_DV_STATIC, 0x0100; guidVSPackageBasedProviderCmdSet:cmdidAlterTable, guidVSData:IDG_DV_OBJECT, 0x0100; guidVSPackageBasedProviderCmdSet:cmdidDropTable, guidVSData:IDG_DV_OBJECT, 0x0100; guidVSPackageBasedProviderCmdSet:cmdidDropIndex, guidVSData:IDG_DV_OBJECT, 0x0100; guidVSPackageBasedProviderCmdSet:cmdidDropView, guidVSData:IDG_DV_OBJECT, 0x0100; guidVSPackageBasedProviderCmdSet:cmdidCreateTable, guidVSData:IDG_DV_CONNECTION, 0x0100; guidVSPackageBasedProviderCmdSet:cmdidVacuum, guidVSData:IDG_DV_CONNECTION, 0x0100; guidVSPackageBasedProviderCmdSet:cmdidRekey, guidVSData:IDG_DV_CONNECTION, 0x0100; CMDPLACEMENT_END |
Changes to SQLite.Designer/CtcComponents/PkgCmdID.h.
︙ | ︙ | |||
15 16 17 18 19 20 21 | // /////////////////////////////////////////////////////////////////////////////// // Commands #define cmdidCreateTable 256 #define cmdidAlterTable 257 #define cmdidDropTable 258 | > > > > > > | 15 16 17 18 19 20 21 22 23 24 25 26 27 | // /////////////////////////////////////////////////////////////////////////////// // Commands #define cmdidCreateTable 256 #define cmdidAlterTable 257 #define cmdidDropTable 258 #define cmdidCreateIndex 259 #define cmdidDropIndex 260 #define cmdidDropView 261 #define cmdidVacuum 262 #define cmdidRekey 263 |
Changes to SQLite.Designer/SQLite.Designer.csproj.
︙ | ︙ | |||
63 64 65 66 67 68 69 | <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> <Compile Include="SQLiteCommandHandler.cs" /> <Compile Include="SQLiteConnectionProperties.cs" /> <Compile Include="SQLiteConnectionUIControl.cs"> | | | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> <Compile Include="SQLiteCommandHandler.cs" /> <Compile Include="SQLiteConnectionProperties.cs" /> <Compile Include="SQLiteConnectionUIControl.cs"> <SubType>UserControl</SubType> </Compile> <Compile Include="SQLiteConnectionUIControl.Designer.cs"> <DependentUpon>SQLiteConnectionUIControl.cs</DependentUpon> </Compile> <Compile Include="SQLiteDataConnectionSupport.cs" /> <Compile Include="SQLiteDataObjectIdentifierResolver.cs" /> <Compile Include="SQLiteDataObjectSupport.cs" /> |
︙ | ︙ |
Changes to SQLite.Designer/SQLiteCommandHandler.cs.
1 2 3 4 5 6 7 8 9 10 | namespace SQLite.Designer { using System; using Microsoft.VisualStudio.Data; using System.Windows.Forms.Design; internal sealed class SQLiteCommandHandler : DataViewCommandHandler { private static readonly Guid guidDataCmdSet = new Guid("501822E1-B5AF-11d0-B4DC-00A0C91506EF"); private static readonly Guid guidSQLiteCmdSet = new Guid("814658EE-A28E-4b97-BC33-4B1BC81EBECB"); | > > > > > > > > > > > > > > | | > > > | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | | > > > > > > > > > > > > > > > | > > > > > | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | namespace SQLite.Designer { using System; using Microsoft.VisualStudio.Data; using System.Windows.Forms.Design; using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio; enum cmdid { CreateTable = 256, AlterTable = 257, DropTable = 258, CreateIndex = 259, DropIndex = 260, DropView = 261, Vacuum = 262, Rekey = 263, } internal sealed class SQLiteCommandHandler : DataViewCommandHandler { private static readonly Guid guidDataCmdSet = new Guid("501822E1-B5AF-11d0-B4DC-00A0C91506EF"); private static readonly Guid guidSQLiteCmdSet = new Guid("814658EE-A28E-4b97-BC33-4B1BC81EBECB"); private static readonly Guid guidIFCmdId = new Guid("{74d21311-2aee-11d1-8bfb-00a0c90f26f7}"); public SQLiteCommandHandler() { } public override OleCommandStatus GetCommandStatus(int[] itemIds, OleCommand command, OleCommandTextType textType, OleCommandStatus status) { if (command.GroupGuid == guidSQLiteCmdSet) { switch ((cmdid)command.CommandId) { case cmdid.CreateTable: case cmdid.CreateIndex: case cmdid.DropView: case cmdid.Vacuum: // case cmdid.Rekey: status.Supported = true; status.Visible = true; status.Enabled = true; break; case cmdid.AlterTable: case cmdid.DropTable: status.Supported = true; status.Visible = true; status.Enabled = (SystemTableSelected == false); break; case cmdid.DropIndex: status.Supported = true; status.Visible = true; status.Enabled = (SystemIndexSelected == false); break; default: base.GetCommandStatus(itemIds, command, textType, status); break; } } else { base.GetCommandStatus(itemIds, command, textType, status); } return status; } private bool SystemTableSelected { get { int[] items = DataViewHierarchyAccessor.GetSelectedItems(); int n; object[] parts; for (n = 0; n < items.Length; n++) { parts = DataViewHierarchyAccessor.GetObjectIdentifier(items[n]); if (parts == null) return true; if (parts[2].ToString().StartsWith("sqlite_", StringComparison.InvariantCultureIgnoreCase)) return true; } return false; } } private bool SystemIndexSelected { get { int[] items = DataViewHierarchyAccessor.GetSelectedItems(); int n; object[] parts; for (n = 0; n < items.Length; n++) { parts = DataViewHierarchyAccessor.GetObjectIdentifier(items[n]); if (parts == null) return true; if (parts[2].ToString().StartsWith("sqlite_", StringComparison.InvariantCultureIgnoreCase)) return true; if (parts.Length > 3) { if (parts[3].ToString().StartsWith("sqlite_autoindex_", StringComparison.InvariantCultureIgnoreCase) || parts[3].ToString().StartsWith("sqlite_master_PK_", StringComparison.InvariantCultureIgnoreCase)) return true; } } return false; } } /// <summary> /// This method executes a specified command, potentially based /// on parameters passed in from the data view support XML. /// </summary> public override object ExecuteCommand(int itemId, OleCommand command, OleCommandExecutionOption executionOption, object arguments) { object returnValue = null; if (command.GroupGuid == guidSQLiteCmdSet) { switch ((cmdid)command.CommandId) { case cmdid.CreateTable: CreateTable(); break; case cmdid.DropTable: DropSelectedTables(); break; case cmdid.DropIndex: DropSelectedIndexes(); break; case cmdid.DropView: DropSelectedViews(); break; case cmdid.Vacuum: Vacuum(); break; case cmdid.Rekey: ChangePassword(); break; default: returnValue = base.ExecuteCommand(itemId, command, executionOption, arguments); break; } } else { returnValue = base.ExecuteCommand(itemId, command, executionOption, arguments); } return returnValue; } private void CreateTable() { } private void DropSelectedTables() { int[] items = DataViewHierarchyAccessor.GetSelectedItems(); int n; object[] parts; for (n = 0; n < items.Length; n++) { parts = DataViewHierarchyAccessor.GetObjectIdentifier(items[n]); if (parts == null) continue; if (System.Windows.Forms.MessageBox.Show(String.Format("Drop table {0} ({1}), are you sure?", parts[2], parts[0]), "Confirm delete", System.Windows.Forms.MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { string sql = String.Format("DROP TABLE [{0}].[{1}]", parts[0], parts[2]); DataViewHierarchyAccessor.Connection.Command.ExecuteWithoutResults(sql, (int)System.Data.CommandType.Text, null, 0); DataViewHierarchyAccessor.DropObjectNode(items[n]); } } } private void DropSelectedViews() { int[] items = DataViewHierarchyAccessor.GetSelectedItems(); int n; object[] parts; for (n = 0; n < items.Length; n++) { parts = DataViewHierarchyAccessor.GetObjectIdentifier(items[n]); if (parts == null) continue; if (System.Windows.Forms.MessageBox.Show(String.Format("Drop view {0} ({1}), are you sure?", parts[2], parts[0]), "Confirm delete", System.Windows.Forms.MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { string sql = String.Format("DROP VIEW [{0}].[{1}]", parts[0], parts[2]); DataViewHierarchyAccessor.Connection.Command.ExecuteWithoutResults(sql, (int)System.Data.CommandType.Text, null, 0); DataViewHierarchyAccessor.DropObjectNode(items[n]); } } } private void DropSelectedIndexes() { int[] items = DataViewHierarchyAccessor.GetSelectedItems(); int n; object[] parts; for (n = 0; n < items.Length; n++) { parts = DataViewHierarchyAccessor.GetObjectIdentifier(items[n]); if (parts == null) continue; if (System.Windows.Forms.MessageBox.Show(String.Format("Drop index {0} ({1}), are you sure?", parts[3], parts[0]), "Confirm delete", System.Windows.Forms.MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { string sql = String.Format("DROP INDEX [{0}].[{1}]", parts[0], parts[3]); DataViewHierarchyAccessor.Connection.Command.ExecuteWithoutResults(sql, (int)System.Data.CommandType.Text, null, 0); DataViewHierarchyAccessor.DropObjectNode(items[n]); } } } private void Vacuum() { DataViewHierarchyAccessor.Connection.Command.ExecuteWithoutResults("VACUUM", (int)System.Data.CommandType.Text, null, 0); } private void ChangePassword() { } private void Refresh(int itemId) { IVsUIHierarchy hier = DataViewHierarchyAccessor.Hierarchy as IVsUIHierarchy; Guid g = VSConstants.GUID_VSStandardCommandSet97; hier.ExecCommand((uint)itemId, ref g, (uint)0xbd, (uint)OleCommandExecutionOption.DoDefault, IntPtr.Zero, IntPtr.Zero); } } } |
Changes to SQLite.Designer/SQLiteConnectionUIControl.Designer.cs.
︙ | ︙ | |||
26 27 28 29 30 31 32 | /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.Label labelPassword; System.Windows.Forms.GroupBox securityGroup; | < < | < < < | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.Label labelPassword; System.Windows.Forms.GroupBox securityGroup; System.Windows.Forms.GroupBox encodingGroup; System.Windows.Forms.GroupBox dateTimeGroup; System.Windows.Forms.GroupBox databaseGroup; System.Windows.Forms.Label cacheSizeLabel; System.Windows.Forms.Label pageSizeLabel; System.Windows.Forms.GroupBox syncGroup; this.passwordTextBox = new System.Windows.Forms.TextBox(); this.utf16RadioButton = new System.Windows.Forms.RadioButton(); this.utf8RadioButton = new System.Windows.Forms.RadioButton(); this.ticksRadioButton = new System.Windows.Forms.RadioButton(); this.iso8601RadioButton = new System.Windows.Forms.RadioButton(); this.cacheSizeTextbox = new System.Windows.Forms.TextBox(); this.pageSizeTextBox = new System.Windows.Forms.TextBox(); this.fileTextBox = new System.Windows.Forms.TextBox(); this.browseButton = new System.Windows.Forms.Button(); this.newDatabase = new System.Windows.Forms.Button(); this.offRadioButton = new System.Windows.Forms.RadioButton(); this.normalRadioButton = new System.Windows.Forms.RadioButton(); this.fullRadioButton = new System.Windows.Forms.RadioButton(); labelPassword = new System.Windows.Forms.Label(); securityGroup = new System.Windows.Forms.GroupBox(); encodingGroup = new System.Windows.Forms.GroupBox(); dateTimeGroup = new System.Windows.Forms.GroupBox(); databaseGroup = new System.Windows.Forms.GroupBox(); cacheSizeLabel = new System.Windows.Forms.Label(); pageSizeLabel = new System.Windows.Forms.Label(); syncGroup = new System.Windows.Forms.GroupBox(); securityGroup.SuspendLayout(); |
︙ | ︙ | |||
76 77 78 79 80 81 82 | labelPassword.Name = "labelPassword"; labelPassword.Size = new System.Drawing.Size(53, 13); labelPassword.TabIndex = 0; labelPassword.Text = "Password"; // // securityGroup // | < < | | < < < < < < < < < < < < < < < < < > | > > | > > | | | | | | | | > > > | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | labelPassword.Name = "labelPassword"; labelPassword.Size = new System.Drawing.Size(53, 13); labelPassword.TabIndex = 0; labelPassword.Text = "Password"; // // securityGroup // securityGroup.Controls.Add(this.passwordTextBox); securityGroup.Controls.Add(labelPassword); securityGroup.Location = new System.Drawing.Point(3, 263); securityGroup.Name = "securityGroup"; securityGroup.Size = new System.Drawing.Size(306, 56); securityGroup.TabIndex = 10; securityGroup.TabStop = false; securityGroup.Text = "Encryption"; // // passwordTextBox // this.passwordTextBox.Location = new System.Drawing.Point(65, 20); this.passwordTextBox.Name = "passwordTextBox"; this.passwordTextBox.Size = new System.Drawing.Size(235, 21); this.passwordTextBox.TabIndex = 1; this.passwordTextBox.UseSystemPasswordChar = true; this.passwordTextBox.Leave += new System.EventHandler(this.passwordTextBox_Leave); // // encodingGroup // encodingGroup.Controls.Add(this.utf16RadioButton); encodingGroup.Controls.Add(this.utf8RadioButton); encodingGroup.Location = new System.Drawing.Point(3, 159); encodingGroup.Name = "encodingGroup"; encodingGroup.Size = new System.Drawing.Size(75, 98); encodingGroup.TabIndex = 7; encodingGroup.TabStop = false; encodingGroup.Text = "Encoding"; // // utf16RadioButton // this.utf16RadioButton.AutoSize = true; this.utf16RadioButton.Location = new System.Drawing.Point(6, 44); this.utf16RadioButton.Name = "utf16RadioButton"; this.utf16RadioButton.Size = new System.Drawing.Size(60, 17); this.utf16RadioButton.TabIndex = 1; this.utf16RadioButton.TabStop = true; this.utf16RadioButton.Text = "UTF-16"; this.utf16RadioButton.UseVisualStyleBackColor = true; this.utf16RadioButton.CheckedChanged += new System.EventHandler(this.encoding_Changed); // // utf8RadioButton // this.utf8RadioButton.AutoSize = true; this.utf8RadioButton.Checked = true; this.utf8RadioButton.Location = new System.Drawing.Point(7, 21); this.utf8RadioButton.Name = "utf8RadioButton"; this.utf8RadioButton.Size = new System.Drawing.Size(54, 17); this.utf8RadioButton.TabIndex = 0; this.utf8RadioButton.TabStop = true; this.utf8RadioButton.Text = "UTF-8"; this.utf8RadioButton.UseVisualStyleBackColor = true; this.utf8RadioButton.CheckedChanged += new System.EventHandler(this.encoding_Changed); // // dateTimeGroup // dateTimeGroup.Controls.Add(this.ticksRadioButton); dateTimeGroup.Controls.Add(this.iso8601RadioButton); dateTimeGroup.Location = new System.Drawing.Point(84, 159); dateTimeGroup.Name = "dateTimeGroup"; dateTimeGroup.Size = new System.Drawing.Size(113, 98); dateTimeGroup.TabIndex = 8; dateTimeGroup.TabStop = false; dateTimeGroup.Text = "Date/Time Format"; // // ticksRadioButton // this.ticksRadioButton.AutoSize = true; this.ticksRadioButton.Location = new System.Drawing.Point(6, 44); this.ticksRadioButton.Name = "ticksRadioButton"; this.ticksRadioButton.Size = new System.Drawing.Size(48, 17); this.ticksRadioButton.TabIndex = 1; this.ticksRadioButton.TabStop = true; this.ticksRadioButton.Text = "Ticks"; this.ticksRadioButton.UseVisualStyleBackColor = true; this.ticksRadioButton.CheckedChanged += new System.EventHandler(this.datetime_Changed); // // iso8601RadioButton // this.iso8601RadioButton.AutoSize = true; this.iso8601RadioButton.Checked = true; this.iso8601RadioButton.Location = new System.Drawing.Point(7, 21); this.iso8601RadioButton.Name = "iso8601RadioButton"; this.iso8601RadioButton.Size = new System.Drawing.Size(71, 17); this.iso8601RadioButton.TabIndex = 0; this.iso8601RadioButton.TabStop = true; this.iso8601RadioButton.Text = "ISO-8601"; this.iso8601RadioButton.UseVisualStyleBackColor = true; this.iso8601RadioButton.CheckedChanged += new System.EventHandler(this.datetime_Changed); // // databaseGroup // databaseGroup.Controls.Add(cacheSizeLabel); databaseGroup.Controls.Add(this.cacheSizeTextbox); databaseGroup.Controls.Add(pageSizeLabel); databaseGroup.Controls.Add(this.pageSizeTextBox); databaseGroup.Controls.Add(this.fileTextBox); databaseGroup.Controls.Add(this.browseButton); databaseGroup.Controls.Add(this.newDatabase); databaseGroup.Location = new System.Drawing.Point(3, 3); databaseGroup.Name = "databaseGroup"; databaseGroup.Size = new System.Drawing.Size(306, 150); databaseGroup.TabIndex = 8; databaseGroup.TabStop = false; databaseGroup.Text = "Database"; // // cacheSizeLabel // cacheSizeLabel.AutoSize = true; cacheSizeLabel.Location = new System.Drawing.Point(7, 116); cacheSizeLabel.Name = "cacheSizeLabel"; cacheSizeLabel.Size = new System.Drawing.Size(59, 13); cacheSizeLabel.TabIndex = 5; cacheSizeLabel.Text = "Cache Size"; // // cacheSizeTextbox // this.cacheSizeTextbox.Location = new System.Drawing.Point(72, 113); this.cacheSizeTextbox.Name = "cacheSizeTextbox"; this.cacheSizeTextbox.Size = new System.Drawing.Size(100, 21); this.cacheSizeTextbox.TabIndex = 6; this.cacheSizeTextbox.Text = "2000"; this.cacheSizeTextbox.Leave += new System.EventHandler(this.cacheSizeTextbox_Leave); // // pageSizeLabel // pageSizeLabel.AutoSize = true; pageSizeLabel.Location = new System.Drawing.Point(13, 89); pageSizeLabel.Name = "pageSizeLabel"; pageSizeLabel.Size = new System.Drawing.Size(53, 13); pageSizeLabel.TabIndex = 3; pageSizeLabel.Text = "Page Size"; // // pageSizeTextBox // this.pageSizeTextBox.Location = new System.Drawing.Point(72, 86); this.pageSizeTextBox.Name = "pageSizeTextBox"; this.pageSizeTextBox.Size = new System.Drawing.Size(100, 21); this.pageSizeTextBox.TabIndex = 4; this.pageSizeTextBox.Text = "1024"; this.pageSizeTextBox.Leave += new System.EventHandler(this.pageSizeTextBox_Leave); // // fileTextBox // this.fileTextBox.Location = new System.Drawing.Point(6, 20); this.fileTextBox.Name = "fileTextBox"; this.fileTextBox.Size = new System.Drawing.Size(294, 21); this.fileTextBox.TabIndex = 0; this.fileTextBox.Leave += new System.EventHandler(this.fileTextBox_Leave); // // browseButton // this.browseButton.Location = new System.Drawing.Point(6, 47); this.browseButton.Name = "browseButton"; this.browseButton.Size = new System.Drawing.Size(75, 23); this.browseButton.TabIndex = 1; |
︙ | ︙ | |||
262 263 264 265 266 267 268 | this.newDatabase.Click += new System.EventHandler(this.newDatabase_Click); // // syncGroup // syncGroup.Controls.Add(this.offRadioButton); syncGroup.Controls.Add(this.normalRadioButton); syncGroup.Controls.Add(this.fullRadioButton); | | > > < < < < < | < < < < < < < < < < < < < | < < < < < < | < < | < < | 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 | this.newDatabase.Click += new System.EventHandler(this.newDatabase_Click); // // syncGroup // syncGroup.Controls.Add(this.offRadioButton); syncGroup.Controls.Add(this.normalRadioButton); syncGroup.Controls.Add(this.fullRadioButton); syncGroup.Location = new System.Drawing.Point(204, 159); syncGroup.Name = "syncGroup"; syncGroup.Size = new System.Drawing.Size(105, 98); syncGroup.TabIndex = 9; syncGroup.TabStop = false; syncGroup.Text = "Synchronization"; // // offRadioButton // this.offRadioButton.AutoSize = true; this.offRadioButton.Location = new System.Drawing.Point(6, 66); this.offRadioButton.Name = "offRadioButton"; this.offRadioButton.Size = new System.Drawing.Size(41, 17); this.offRadioButton.TabIndex = 2; this.offRadioButton.Text = "Off"; this.offRadioButton.UseVisualStyleBackColor = true; this.offRadioButton.CheckedChanged += new System.EventHandler(this.sync_Changed); // // normalRadioButton // this.normalRadioButton.AutoSize = true; this.normalRadioButton.Checked = true; this.normalRadioButton.Location = new System.Drawing.Point(6, 43); this.normalRadioButton.Name = "normalRadioButton"; this.normalRadioButton.Size = new System.Drawing.Size(58, 17); this.normalRadioButton.TabIndex = 1; this.normalRadioButton.TabStop = true; this.normalRadioButton.Text = "Normal"; this.normalRadioButton.UseVisualStyleBackColor = true; this.normalRadioButton.CheckedChanged += new System.EventHandler(this.sync_Changed); // // fullRadioButton // this.fullRadioButton.AutoSize = true; this.fullRadioButton.Location = new System.Drawing.Point(6, 20); this.fullRadioButton.Name = "fullRadioButton"; this.fullRadioButton.Size = new System.Drawing.Size(41, 17); this.fullRadioButton.TabIndex = 0; this.fullRadioButton.Text = "Full"; this.fullRadioButton.UseVisualStyleBackColor = true; this.fullRadioButton.CheckedChanged += new System.EventHandler(this.sync_Changed); // // SQLiteConnectionUIControl // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; this.Controls.Add(syncGroup); this.Controls.Add(databaseGroup); this.Controls.Add(dateTimeGroup); this.Controls.Add(encodingGroup); this.Controls.Add(securityGroup); this.Font = new System.Drawing.Font("MS Shell Dlg 2", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "SQLiteConnectionUIControl"; this.Size = new System.Drawing.Size(312, 322); securityGroup.ResumeLayout(false); securityGroup.PerformLayout(); encodingGroup.ResumeLayout(false); encodingGroup.PerformLayout(); dateTimeGroup.ResumeLayout(false); dateTimeGroup.PerformLayout(); databaseGroup.ResumeLayout(false); databaseGroup.PerformLayout(); syncGroup.ResumeLayout(false); syncGroup.PerformLayout(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.TextBox fileTextBox; private System.Windows.Forms.Button browseButton; private System.Windows.Forms.Button newDatabase; private System.Windows.Forms.TextBox passwordTextBox; private System.Windows.Forms.RadioButton utf16RadioButton; private System.Windows.Forms.RadioButton utf8RadioButton; private System.Windows.Forms.RadioButton ticksRadioButton; private System.Windows.Forms.RadioButton iso8601RadioButton; private System.Windows.Forms.TextBox pageSizeTextBox; private System.Windows.Forms.TextBox cacheSizeTextbox; private System.Windows.Forms.RadioButton offRadioButton; private System.Windows.Forms.RadioButton normalRadioButton; private System.Windows.Forms.RadioButton fullRadioButton; } } |
Changes to SQLite.Designer/SQLiteConnectionUIControl.cs.
︙ | ︙ | |||
10 11 12 13 14 15 16 17 | using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; | > | > > > > > > > > > | | > > > > | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.Data.ConnectionUI; public partial class SQLiteConnectionUIControl : UserControl, IDataConnectionUIControl { private SQLiteConnectionProperties _connectionProperties; public SQLiteConnectionUIControl() { InitializeComponent(); } private void browseButton_Click(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.FileName = fileTextBox.Text; dlg.Title = "Select SQLite Database File"; if (dlg.ShowDialog(this) == DialogResult.OK) { fileTextBox.Text = dlg.FileName; fileTextBox_Leave(sender, e); } } private void newDatabase_Click(object sender, EventArgs e) { SaveFileDialog dlg = new SaveFileDialog(); dlg.Title = "Create SQLite Database File"; if (dlg.ShowDialog() == DialogResult.OK) { fileTextBox.Text = dlg.FileName; fileTextBox_Leave(sender, e); } } #region IDataConnectionUIControl Members public void Initialize(IDataConnectionProperties connectionProperties) { _connectionProperties = (SQLiteConnectionProperties)connectionProperties; } public void LoadProperties() { fileTextBox.Text = _connectionProperties["Data Source"] as string; passwordTextBox.Text = _connectionProperties["Password"] as string; } #endregion private void passwordTextBox_Leave(object sender, EventArgs e) { _connectionProperties["Password"] = passwordTextBox.Text; } private void encoding_Changed(object sender, EventArgs e) { _connectionProperties["UseUTF16Encoding"] = utf16RadioButton.Checked; } private void datetime_Changed(object sender, EventArgs e) { _connectionProperties["DateTimeFormat"] = (iso8601RadioButton.Checked == true) ? "ISO8601" : "Ticks"; } private void sync_Changed(object sender, EventArgs e) { string sync = "Normal"; if (fullRadioButton.Checked == true) sync = "Full"; else if (offRadioButton.Checked == true) sync = "Off"; _connectionProperties["Synchronous"] = sync; } private void pageSizeTextBox_Leave(object sender, EventArgs e) { int n = Convert.ToInt32(pageSizeTextBox.Text); _connectionProperties["Page Size"] = n; } private void cacheSizeTextbox_Leave(object sender, EventArgs e) { int n = Convert.ToInt32(cacheSizeTextbox.Text); _connectionProperties["Cache Size"] = n; } private void fileTextBox_Leave(object sender, EventArgs e) { _connectionProperties["Data Source"] = fileTextBox.Text; } } } |
Changes to SQLite.Designer/SQLiteConnectionUIControl.resx.
︙ | ︙ | |||
119 120 121 122 123 124 125 | </resheader> <metadata name="labelPassword.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> <metadata name="securityGroup.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> | < < < < < < > > > > > > | 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | </resheader> <metadata name="labelPassword.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> <metadata name="securityGroup.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> <metadata name="encodingGroup.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> <metadata name="dateTimeGroup.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> <metadata name="databaseGroup.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> <metadata name="cacheSizeLabel.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> <metadata name="pageSizeLabel.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> <metadata name="cacheSizeLabel.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> <metadata name="pageSizeLabel.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </metadata> |
︙ | ︙ |
Changes to SQLite.Designer/SQLiteDataObjectIdentifierResolver.cs.
︙ | ︙ | |||
91 92 93 94 95 96 97 | } return identifier; } protected override object[] QuickContractIdentifier(string typeName, object[] fullIdentifier) { | | < | | < | < < | < | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | } return identifier; } protected override object[] QuickContractIdentifier(string typeName, object[] fullIdentifier) { if (fullIdentifier.Length < 2) return fullIdentifier; object[] identifier = new object[fullIdentifier.Length - 1]; for (int n = 1; n < fullIdentifier.Length; n++) { identifier[n - 1] = fullIdentifier[n]; } identifier[0] = fullIdentifier[0]; return identifier; } /// <summary> /// GetSite does not need to be implemented since /// DDEX only calls SetSite to site the object. |
︙ | ︙ |
Changes to SQLite.Designer/SQLiteDataObjectSupport.xml.
︙ | ︙ | |||
17 18 19 20 21 22 23 | <Property name="Database" type="System.String" itemName="Database"/> </Properties> <Actions> <Action name="Enumerate" guid="61CC0372-384D-42e5-9707-6D7C8DC5287A" handler="Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetRootObjectEnumerator"/> </Actions> </RootType> | | | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <Property name="Database" type="System.String" itemName="Database"/> </Properties> <Actions> <Action name="Enumerate" guid="61CC0372-384D-42e5-9707-6D7C8DC5287A" handler="Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetRootObjectEnumerator"/> </Actions> </RootType> <Type name="Table" defaultSort="Database,Name"> <Concepts> <Concept name="Table" restrictions="{Catalog},null,{Name},TABLE"/> </Concepts> <Identifier> <Part name="Database" itemName="table_catalog"> <Concepts> <Concept name="Identifier0"/> |
︙ | ︙ | |||
70 71 72 73 74 75 76 | </Parameter> </Parameter> </Parameter> </Action> </Actions> </Type> | | | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | </Parameter> </Parameter> </Parameter> </Action> </Actions> </Type> <Type name="TableColumn" defaultSort="Database,Table,Ordinal"> <Concepts> <Concept name="TableColumn" restrictions="{Catalog},null,{Table},{Name}"/> </Concepts> <Identifier> <Part name="Database" itemName="table_catalog"> <Concepts> <Concept name="Identifier0"/> |
︙ | ︙ | |||
146 147 148 149 150 151 152 | </Concepts> </Property> <Property name="Default" type="System.String" itemName="column_default"> <Concepts> <Concept name="Default"/> </Concepts> </Property> | > | | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | </Concepts> </Property> <Property name="Default" type="System.String" itemName="column_default"> <Concepts> <Concept name="Default"/> </Concepts> </Property> <Property name="InPrimaryKey" type="System.Boolean" itemName="primary_key"/> </Properties> <Actions> <Action name="Enumerate" guid="61CC0372-384D-42e5-9707-6D7C8DC5287A" handler="Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetObjectEnumerator"> <Parameter value="Columns"/> </Action> <Action name="BuildDSRef" guid="7C030900-E8DD-471b-8F18-D83DA7036144" handler="Microsoft.VisualStudio.Data.DSRefBuilder"> <Parameter> <Parameter value="{2}"/> |
︙ | ︙ | |||
182 183 184 185 186 187 188 | </Parameter> </Parameter> </Parameter> </Action> </Actions> </Type> | | | | 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | </Parameter> </Parameter> </Parameter> </Action> </Actions> </Type> <Type name="View" defaultSort="Database,Name"> <Concepts> <Concept name="View" restrictions="{Catalog},null,{Name}"/> </Concepts> <Identifier> <Part name="Database" itemName="table_catalog"> <Concepts> <Concept name="Identifier0"/> </Concepts> </Part> |
︙ | ︙ | |||
237 238 239 240 241 242 243 | </Action> </Actions> </Type> <!-- Defines a type that represents a view column. --> | | | 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | </Action> </Actions> </Type> <!-- Defines a type that represents a view column. --> <Type name="ViewColumn" defaultSort="Database,View,Ordinal"> <Concepts> <Concept name="ViewColumn" restrictions="{Catalog},null,{View},{Name}"/> </Concepts> <Identifier> <Part name="Database" itemName="table_catalog"> <Concepts> <Concept name="Identifier0"/> |
︙ | ︙ | |||
351 352 353 354 355 356 357 | </Parameter> </Action> </Actions> </Type> <!-- Defines a type that represents an index. --> | | | 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 | </Parameter> </Action> </Actions> </Type> <!-- Defines a type that represents an index. --> <Type name="Index" defaultSort="Database,Table,Name"> <Concepts> <Concept name="TableUniqueKey" restrictions="{Catalog},null,{Table},{Name}" filter="IsUnique = true"/> </Concepts> <Identifier> <Part name="Database" itemName="table_catalog"> <Concepts> <Concept name="Identifier0"/> |
︙ | ︙ | |||
379 380 381 382 383 384 385 | <Concepts> <Concept name="Identifier3"/> </Concepts> </Part> </Identifier> <Properties> <Property name="Name" type="System.String" itemName="index_name"/> | | > > > > | 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 | <Concepts> <Concept name="Identifier3"/> </Concepts> </Part> </Identifier> <Properties> <Property name="Name" type="System.String" itemName="index_name"/> <Property name="IsUnique" type="System.Boolean" itemName="UNIQUE"> <Concepts> <Concept name="IsUnique"/> </Concepts> </Property> <Property name="IsPrimary" type="System.Boolean" itemName="PRIMARY_KEY"> <Concepts> <Concept name="IsPrimary"/> </Concepts> </Property> </Properties> <Actions> |
︙ | ︙ | |||
419 420 421 422 423 424 425 | </Parameter> </Parameter> </Parameter> </Action> </Actions> </Type> | | | 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 | </Parameter> </Parameter> </Parameter> </Action> </Actions> </Type> <Type name="IndexColumn" defaultSort="Database,Table,Index,Ordinal"> <Concepts> <Concept name="TableUniqueKeyColumn" restrictions="{Catalog},null,{Table},{TableUniqueKey},{Name}"/> </Concepts> <Identifier> <Part name="Database" itemName="table_catalog"> <Concepts> <Concept name="Identifier0"/> |
︙ | ︙ | |||
504 505 506 507 508 509 510 | </Parameter> </Parameter> </Parameter> </Action> </Actions> </Type> | | > > > > > | | 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 | </Parameter> </Parameter> </Parameter> </Action> </Actions> </Type> <Type name="ForeignKey" defaultSort="Database,Table,Name"> <Concepts> <Concept name="TableForeignKey" restrictions="{Catalog},null,{Table},{Name}"/> </Concepts> <Identifier> <Part name="Database" itemName="table_catalog"> <Concepts> <Concept name="Identifier0"/> <Concept name="ReferencedTableCatalog"/> </Concepts> </Part> <Part name="Schema" itemName="table_schema"> <Concepts> <Concept name="Identifier1"/> </Concepts> </Part> <Part name="Table" itemName="table_name"> <Concepts> <Concept name="Identifier2"/> </Concepts> </Part> <Part name="Name" itemName="constraint_name"> <Concepts> <Concept name="Identifier3"/> </Concepts> </Part> </Identifier> <Properties> <Property name="Name" type="System.String" itemName="constraint_name"/> <Property name="ReferencedColumnName" type="System.String" itemName="fkey_to_column"/> <Property name="ColumnName" type="System.String" itemName="fkey_from_column"/> <Property name="ReferencedTableDatabase" type="System.String" itemName="fkey_to_catalog"> <Concepts> <Concept name="ReferencedTableId0"/> </Concepts> </Property> <Property name="ReferencedTableSchema" type="System.String" itemName="fkey_to_schema"> <Concepts> <Concept name="ReferencedTableId1"/> <Concept name="ReferencedTableSchema"/> </Concepts> </Property> <Property name="ReferencedTableName" type="System.String" itemName="fkey_to_table"> <Concepts> <Concept name="ReferencedTableId2"/> <Concept name="ReferencedTableName"/> </Concepts> </Property> </Properties> <Actions> <Action name="Enumerate" guid="61CC0372-384D-42e5-9707-6D7C8DC5287A" handler="Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetObjectEnumerator"> <Parameter value="ForeignKeys"/> </Action> </Actions> </Type> <Type name="ForeignKeyColumn" defaultSort="Database,Table,ForeignKey,Ordinal"> <Concepts> <Concept name="TableForeignKeyColumn" restrictions="{Catalog},null,{Table},{TableForeignKey},{Name}"/> </Concepts> <Identifier> <Part name="Database" itemName="table_catalog"> <Concepts> <Concept name="Identifier0"/> |
︙ | ︙ |
Changes to SQLite.Designer/SQLiteDataViewSupport.xml.
︙ | ︙ | |||
13 14 15 16 17 18 19 | <DataViews> <!-- This sample defines a single data view --> <DataView name="SQLite"> <DisplayName>SQLite</DisplayName> <!-- The connection node is static, i.e. has no underlying object --> <StaticConnectionNode> <!-- We can always specify data from the root object --> | | | < < < | > > > | < > < < < < | < < < < | < < | < < | < < | | | | > | | | | | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 | <DataViews> <!-- This sample defines a single data view --> <DataView name="SQLite"> <DisplayName>SQLite</DisplayName> <!-- The connection node is static, i.e. has no underlying object --> <StaticConnectionNode> <!-- We can always specify data from the root object --> <InitialDisplayName>SQLite [{Root.Server}]</InitialDisplayName> <CommandBindings> <CommandBinding name="NewTable" guid="814658EE-A28E-4b97-BC33-4B1BC81EBECB" cmdid="256" handler="SQLite.Designer.SQLiteCommandHandler"/> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> <CommandBinding name="NewIndex" guid="814658EE-A28E-4b97-BC33-4B1BC81EBECB" cmdid="259" handler="SQLite.Designer.SQLiteCommandHandler"/> <CommandBinding name="Vacuum" guid="814658EE-A28E-4b97-BC33-4B1BC81EBECB" cmdid="262" handler="SQLite.Designer.SQLiteCommandHandler"/> </CommandBindings> <Children> <StaticNode nid="Tables"> <DisplayName>Tables</DisplayName> <CommandBindings> <CommandBinding name="NewTable" guid="814658EE-A28E-4b97-BC33-4B1BC81EBECB" cmdid="256" handler="SQLite.Designer.SQLiteCommandHandler"/> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> </CommandBindings> <Children> <Selection type="Table" filter="TYPE='TABLE'"> <SelectionNode nid="Table"> <Children> <SubHierarchyRef name="Table children"/> </Children> </SelectionNode> </Selection> </Children> </StaticNode> <StaticNode nid="Views"> <DisplayName>Views</DisplayName> <CommandBindings> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> </CommandBindings> <Children> <Selection type="View"> <SelectionNode nid="View"> <DisplayName>{View.Name}</DisplayName> <Icon name="View"/> <Children> <Selection type="ViewColumn" restrictions="{View.Database},null,{View.Name}"> <SelectionNode> <Icon name="Column"/> </SelectionNode> </Selection> </Children> </SelectionNode> </Selection> </Children> </StaticNode> </Children> </StaticConnectionNode> </DataView> </DataViews> <SubHierarchies> <SubHierarchy name="table children"> <StaticNode nid="Columns"> <DisplayName>Columns</DisplayName> <CommandBindings> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> </CommandBindings> <Children> <Selection type="TableColumn" restrictions="{Table.Database},null,{Table.Name}" filter="InPrimaryKey=True"> <SelectionNode> <Icon name="PrimaryKey"/> </SelectionNode> </Selection> <Selection type="TableColumn" restrictions="{Table.Database},null,{Table.Name}" filter="InPrimaryKey=False"> <SelectionNode> <Icon name="Column"/> </SelectionNode> </Selection> </Children> </StaticNode> <StaticNode nid="Indexes"> <DisplayName>Indexes</DisplayName> <CommandBindings> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> </CommandBindings> <Children> <Selection type="Index" restrictions="{Table.Database},null,{Table.Name}"> <SelectionNode> <Icon when="{IsPrimary}=true" name="PrimaryKey"/> <Icon when="{IsUnique}=true" name="UniqueKey"/> <Icon name="Index"/> </SelectionNode> </Selection> </Children> </StaticNode> <StaticNode nid="ForeignKeys"> <DisplayName>Foreign Keys</DisplayName> <CommandBindings> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> </CommandBindings> <Children> <Selection type="ForeignKey" restrictions="{Table.Database},null,{Table.Name}"> <SelectionNode> <Icon name="ForeignKey"/> </SelectionNode> </Selection> </Children> </StaticNode> </SubHierarchy> </SubHierarchies> <TypeExtensions> <TypeExtension name="Table"> <Identifier> <Part name="Name"> <Category resource="Category_Identity"/> </Part> <Part name="Database"> <DisplayName>Catalog</DisplayName> <Category resource="Category_Location"/> </Part> </Identifier> <CommandBindings> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> <CommandBinding name="DropTable" guid="814658EE-A28E-4b97-BC33-4B1BC81EBECB" cmdid="258" handler="SQLite.Designer.SQLiteCommandHandler"/> <CommandBinding name="Browse_Data" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="12384" handler="Microsoft.VisualStudio.DataTools.DBPackage.VDT_OLEDB_CommandHandler_TableTools"> <Parameter value="Open"/> </CommandBinding> </CommandBindings> </TypeExtension> <TypeExtension name="View"> <Identifier> <Part name="Name"> <Category resource="Category_Identity"/> </Part> <Part name="Database"> <DisplayName>Catalog</DisplayName> <Category resource="Category_Location"/> </Part> </Identifier> <Properties> <Property name="IsUpdatable"> <DisplayName>Updatable</DisplayName> </Property> </Properties> <CommandBindings> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> <CommandBinding name="DropView" guid="814658EE-A28E-4b97-BC33-4B1BC81EBECB" cmdid="261" handler="SQLite.Designer.SQLiteCommandHandler"/> </CommandBindings> </TypeExtension> <TypeExtension name="ViewColumn"> <Identifier> <Part name="Name"> <Category resource="Category_Identity"/> </Part> <Part name="Database"> <Category resource="Category_Location"/> </Part> <Part name="View"> <Category resource="Category_Location"/> </Part> </Identifier> <Properties> <Property name="Ordinal"/> <Property name="SystemType"> <DisplayName>System Type</DisplayName> </Property> <Property name="Nullable"> <DisplayName>Allow Nulls</DisplayName> </Property> <Property name="Default"> <DisplayName>Default Value</DisplayName> </Property> </Properties> <CommandBindings> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> </CommandBindings> </TypeExtension> <TypeExtension name="Index"> <Identifier> <Part name="Name"> <Category resource="Category_Identity"/> </Part> <Part name="Database"> <DisplayName>Catalog</DisplayName> <Category resource="Category_Location"/> </Part> <Part name="Table"> <Category resource="Category_Location"/> </Part> </Identifier> <Properties> <Property name="IsUnique"> <DisplayName>Is Unique</DisplayName> </Property> <Property name="IsPrimary"> <DisplayName>Primary Key</DisplayName> </Property> </Properties> <CommandBindings> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> <CommandBinding name="DropIndex" guid="814658EE-A28E-4b97-BC33-4B1BC81EBECB" cmdid="260" handler="SQLite.Designer.SQLiteCommandHandler"/> </CommandBindings> </TypeExtension> <TypeExtension name="TableColumn"> <Identifier> <Part name="Name"> <Category resource="Category_Identity"/> </Part> <Part name="Database"> <DisplayName>Catalog</DisplayName> <Category resource="Category_Location"/> </Part> <Part name="Table"> <Category resource="Category_Location"/> </Part> </Identifier> <Properties> <Property name="Ordinal"/> <Property name="Length"/> <Property name="SystemType"> <DisplayName>System Type</DisplayName> </Property> <Property name="Nullable"> <DisplayName>Allow Nulls</DisplayName> </Property> <Property name="Default"> <DisplayName>Default Value</DisplayName> </Property> <Property name="InPrimaryKey"> <DisplayName>Primary Key</DisplayName> </Property> </Properties> <CommandBindings> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> </CommandBindings> </TypeExtension> <TypeExtension name="ForeignKey"> <Identifier> <Part name="Name"> <Category resource="Category_Identity"/> </Part> <Part name="Database"> <DisplayName>Catalog</DisplayName> <Category resource="Category_Location"/> </Part> <Part name="Table"> <Category resource="Category_Location"/> </Part> </Identifier> <Properties> <Property name="ColumnName"> <DisplayName>Source Column</DisplayName> <Category resource="Category_Source"/> </Property> <Property name="ReferencedTableDatabase"> <DisplayName>Referenced Database</DisplayName> <Category resource="Category_Refs"/> </Property> <Property name="ReferencedTableName"> <DisplayName>Referenced Table</DisplayName> <Category resource="Category_Refs"/> </Property> <Property name="ReferencedColumnName"> <DisplayName>Referenced Column</DisplayName> <Category resource="Category_Refs"/> </Property> </Properties> <CommandBindings> <CommandBinding name="NewQuery" guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="13608" handler="884DD964-5327-461f-9F06-6484DD540F8F"/> </CommandBindings> </TypeExtension> </TypeExtensions> <Resources baseName="SQLite.Designer.VSPackage"> <Resource name="Category_Identity">(Identity)</Resource> <Resource name="Category_Location">(Location)</Resource> <Resource name="Category_Source">(Source)</Resource> <Resource name="Category_Refs">References</Resource> </Resources> </VSDataViewSupport> |
Changes to SQLite.Designer/SQLiteProviderObjectFactory.cs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | /******************************************************** * ADO.NET 2.0 Data Provider for SQLite Version 3.X * Written by Robert Simpson (robert@blackcastlesoft.com) * * Released to the public domain, use at your own risk! ********************************************************/ namespace SQLite.Designer { using System; using Microsoft.VisualStudio.Data.AdoDotNet; using Microsoft.VisualStudio.Data; using System.Runtime.InteropServices; [Guid("DCBE6C8D-0E57-4099-A183-98FF74C64D9D")] internal sealed class SQLiteProviderObjectFactory : AdoDotNetProviderObjectFactory { public SQLiteProviderObjectFactory() { } public override object CreateObject(Type objType) { if (objType == typeof(DataConnectionSupport)) return new SQLiteDataConnectionSupport(); | > | > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | /******************************************************** * ADO.NET 2.0 Data Provider for SQLite Version 3.X * Written by Robert Simpson (robert@blackcastlesoft.com) * * Released to the public domain, use at your own risk! ********************************************************/ namespace SQLite.Designer { using System; using Microsoft.VisualStudio.Data.AdoDotNet; using Microsoft.VisualStudio.Data; using System.Runtime.InteropServices; using Microsoft.Data.ConnectionUI; [Guid("DCBE6C8D-0E57-4099-A183-98FF74C64D9D")] internal sealed class SQLiteProviderObjectFactory : AdoDotNetProviderObjectFactory { public SQLiteProviderObjectFactory() { } public override object CreateObject(Type objType) { if (objType == typeof(DataConnectionSupport)) return new SQLiteDataConnectionSupport(); if (objType == typeof(IDataConnectionProperties)) return new SQLiteConnectionProperties(); if (objType == typeof(IDataConnectionUIControl)) return new SQLiteConnectionUIControl(); return base.CreateObject(objType); } } } |
Changes to bin/Designer/SQLite.Designer.dll.
cannot compute difference between binary files
Changes to bin/Designer/install.exe.
cannot compute difference between binary files