Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Work in progress |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
059f612efac21a9536614070a8df1502 |
User & Date: | rmsimpson 2006-02-25 07:50:14.000 |
Context
2006-02-25
| ||
17:09 | Prerelease check-in: 320bc6d729 user: rmsimpson tags: sourceforge | |
07:50 | Work in progress check-in: 059f612efa user: rmsimpson tags: sourceforge | |
2006-02-24
| ||
23:26 | work in progress check-in: 92a5b1ec00 user: rmsimpson tags: sourceforge | |
Changes
Changes to SQLite.Designer/SQLite.Designer.csproj.
︙ | ︙ | |||
118 119 120 121 122 123 124 | </ItemGroup> <ItemGroup> <Folder Include="Properties\" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="C:\Program Files\Visual Studio 2005 SDK\2006.02\VisualStudioIntegration\Tools\Build\Microsoft.VsSDK.targets" /> <PropertyGroup> | | > | 118 119 120 121 122 123 124 125 126 127 128 | </ItemGroup> <ItemGroup> <Folder Include="Properties\" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="C:\Program Files\Visual Studio 2005 SDK\2006.02\VisualStudioIntegration\Tools\Build\Microsoft.VsSDK.targets" /> <PropertyGroup> <PostBuildEvent> </PostBuildEvent> </PropertyGroup> </Project> |
Changes to SQLite.Designer/SQLiteAdapterDesigner.cs.
︙ | ︙ | |||
15 16 17 18 19 20 21 | { } public override void Initialize(IComponent component) { base.Initialize(component); | < | | | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | { } public override void Initialize(IComponent component) { base.Initialize(component); if (SQLiteDataAdapterToolboxItem._vsdesigner != null) { Type type = SQLiteDataAdapterToolboxItem._vsdesigner.GetType("Microsoft.VSDesigner.Data.VS.SqlDataAdapterDesigner"); if (type != null) { _designer = (ComponentDesigner)Activator.CreateInstance(type); _designer.Initialize(component); } } } |
︙ | ︙ |
Changes to SQLite.Designer/SQLiteCommandDesigner.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 27 28 29 30 31 32 33 34 35 36 | namespace SQLite.Designer { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Data.Common; using System.Data; internal sealed class SQLiteCommandDesigner : ComponentDesigner, IExtenderProvider { public SQLiteCommandDesigner() { } public override void Initialize(IComponent component) { base.Initialize(component); } protected override void PreFilterAttributes(System.Collections.IDictionary attributes) { base.PreFilterAttributes(attributes); DesignTimeVisibleAttribute att = new DesignTimeVisibleAttribute(((DbCommand)Component).DesignTimeVisible); attributes[att.TypeId] = att; } #region IExtenderProvider Members public bool CanExtend(object extendee) { return (extendee is DbCommand); } #endregion } } | > > > > > > > > > > > > | 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 | namespace SQLite.Designer { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Data.Common; using System.Data; [ProvideProperty("CommandDesignTimeVisible", typeof(IDbCommand))] internal sealed class SQLiteCommandDesigner : ComponentDesigner, IExtenderProvider { public SQLiteCommandDesigner() { } public override void Initialize(IComponent component) { base.Initialize(component); } protected override void PreFilterAttributes(System.Collections.IDictionary attributes) { base.PreFilterAttributes(attributes); DesignTimeVisibleAttribute att = new DesignTimeVisibleAttribute(((DbCommand)Component).DesignTimeVisible); attributes[att.TypeId] = att; } [Browsable(false), DesignOnly(true), DefaultValue(true)] public bool GetCommandDesignTimeVisible(IDbCommand command) { return ((DbCommand)command).DesignTimeVisible; } public void SetCommandDesignTimeVisible(IDbCommand command, bool visible) { ((DbCommand)command).DesignTimeVisible = visible; } #region IExtenderProvider Members public bool CanExtend(object extendee) { return (extendee is DbCommand); } #endregion } } |
Changes to SQLite.Designer/SQLiteConnectionStringEditor.cs.
︙ | ︙ | |||
26 27 28 29 30 31 32 | { if (provider == null || context == null) return value; if (context.Instance == null) return value; try { context.OnComponentChanging(); | | | | | < < | 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 | { if (provider == null || context == null) return value; if (context.Instance == null) return value; try { context.OnComponentChanging(); object newConnection = base.EditValue(context, provider, value); string connectionString = newConnection as string; int index = -1; if (connectionString == null && newConnection != null) { if (_managerType != null) { object manager = Activator.CreateInstance(_managerType, new object[] { provider }); if (manager != null) { index = (int)_managerType.InvokeMember("AddNewConnection", BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.Public, null, manager, new object[] { "System.Data.SQLite" }); if (index > -1 && _selector != null) { connectionString = (string)_managerType.InvokeMember("GetConnectionString", BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.Public, null, manager, new object[] { index }); _selector.SelectedNode = _selector.AddNode((string)_managerType.InvokeMember("GetConnectionName", BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.Public, null, manager, new object[] { index }), connectionString, null); } } } } if (String.IsNullOrEmpty(connectionString) == false) { value = connectionString; } context.OnComponentChanged(); |
︙ | ︙ | |||
68 69 70 71 72 73 74 75 76 77 | protected override void FillTreeWithData(Selector selector, ITypeDescriptorContext context, IServiceProvider provider) { object manager = Activator.CreateInstance(_managerType, new object[] { provider }); DbConnection connection = (DbConnection)context.Instance; ObjectSelectorEditor.SelectorNode node; _selector = selector; if (manager != null) { | > > | | | | > | 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 | protected override void FillTreeWithData(Selector selector, ITypeDescriptorContext context, IServiceProvider provider) { object manager = Activator.CreateInstance(_managerType, new object[] { provider }); DbConnection connection = (DbConnection)context.Instance; ObjectSelectorEditor.SelectorNode node; _selector = selector; _selector.Clear(); if (manager != null) { int items = (int)_managerType.InvokeMember("GetConnectionCount", BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.Public, null, manager, null); string dataProvider; string connectionString; string connectionName; for (int n = 0; n < items; n++) { connectionString = (string)_managerType.InvokeMember("GetConnectionString", BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.Public, null, manager, new object[] { n }); connectionName = (string)_managerType.InvokeMember("GetConnectionName", BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.Public, null, manager, new object[] { n }); dataProvider = (string)_managerType.InvokeMember("GetProvider", BindingFlags.Instance | BindingFlags.InvokeMethod | BindingFlags.Public, null, manager, new object[] { n }); if (String.Compare(dataProvider, "System.Data.SQLite", true) == 0) { node = selector.AddNode(connectionName, connectionString, null); if (String.Compare(connectionString, connection.ConnectionString, true) == 0) selector.SelectedNode = node; } } selector.AddNode("<New Connection...>", this, null); } } } } |
Changes to SQLite.Designer/SQLiteConnectionUIControl.cs.
︙ | ︙ | |||
13 14 15 16 17 18 19 20 21 22 23 24 25 26 | using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.VisualStudio.Data; using Microsoft.Win32; public partial class SQLiteConnectionUIControl : DataConnectionUIControl { public SQLiteConnectionUIControl() { InitializeComponent(); } | > | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.VisualStudio.Data; using Microsoft.Win32; [ToolboxItem(false)] public partial class SQLiteConnectionUIControl : DataConnectionUIControl { public SQLiteConnectionUIControl() { InitializeComponent(); } |
︙ | ︙ |
Changes to SQLite.Designer/SQLiteDataAdapterToolboxItem.cs.
︙ | ︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 | [Serializable] [ToolboxItem(typeof(SQLiteDataAdapterToolboxItem))] internal sealed class SQLiteDataAdapterToolboxItem : ToolboxItem { private static Type _wizard = null; internal static Assembly _vsdesigner = null; static SQLiteDataAdapterToolboxItem() { _vsdesigner = Assembly.Load("Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"); _wizard = _vsdesigner.GetType("Microsoft.VSDesigner.Data.VS.DataAdapterWizard"); } public SQLiteDataAdapterToolboxItem(Type type) : this(type, (Bitmap)null) | > | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | [Serializable] [ToolboxItem(typeof(SQLiteDataAdapterToolboxItem))] internal sealed class SQLiteDataAdapterToolboxItem : ToolboxItem { private static Type _wizard = null; internal static Assembly _vsdesigner = null; static SQLiteDataAdapterToolboxItem() { _vsdesigner = Assembly.Load("Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"); _wizard = _vsdesigner.GetType("Microsoft.VSDesigner.Data.VS.DataAdapterWizard"); } public SQLiteDataAdapterToolboxItem(Type type) : this(type, (Bitmap)null) |
︙ | ︙ |
Changes to SQLite.Interop/SQLite.Interop.vcproj.
︙ | ︙ | |||
107 108 109 110 111 112 113 | /> <Tool Name="VCWebDeploymentTool" /> <Tool Name="VCPostBuildEventTool" Description="Merging binaries ..." | | | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | /> <Tool Name="VCWebDeploymentTool" /> <Tool Name="VCPostBuildEventTool" Description="Merging binaries ..." CommandLine="..\bin\tools\mergebin.exe /S:.clr ..\System.Data.SQLite\bin\$(TargetFileName) $(TargetPath)
sn -Ra $(TargetPath) ..\System.Data.SQLite\System.Data.SQLite.snk
COPY $(TargetDir)System.Data.SQLite.* $(VSInstallDir)Common7\IDE\PublicAssemblies
" /> </Configuration> <Configuration Name="Release|Pocket PC 2003 (ARMV4)" OutputDirectory="Pocket PC 2003 (ARMV4)\$(ConfigurationName)" IntermediateDirectory="Pocket PC 2003 (ARMV4)\$(ConfigurationName)" ConfigurationType="2" |
︙ | ︙ | |||
455 456 457 458 459 460 461 | Name="VCAppVerifierTool" /> <Tool Name="VCWebDeploymentTool" /> <Tool Name="VCPostBuildEventTool" | | | 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 | Name="VCAppVerifierTool" /> <Tool Name="VCWebDeploymentTool" /> <Tool Name="VCPostBuildEventTool" CommandLine="" /> </Configuration> <Configuration Name="Debug|Pocket PC 2003 (ARMV4)" OutputDirectory="Pocket PC 2003 (ARMV4)\$(ConfigurationName)" IntermediateDirectory="Pocket PC 2003 (ARMV4)\$(ConfigurationName)" ConfigurationType="2" |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteCommand.cs.
︙ | ︙ | |||
13 14 15 16 17 18 19 | using System.Collections.Generic; using System.ComponentModel; /// <summary> /// SQLite implementation of DbCommand. /// </summary> #if !PLATFORM_COMPACTFRAMEWORK | | | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | using System.Collections.Generic; using System.ComponentModel; /// <summary> /// SQLite implementation of DbCommand. /// </summary> #if !PLATFORM_COMPACTFRAMEWORK [Designer("SQLite.Designer.SQLiteCommandDesigner, SQLite.Designer"), ToolboxItem(true)] #endif public sealed class SQLiteCommand : DbCommand, ICloneable { /// <summary> /// The command text this command is based on /// </summary> private string _commandText; |
︙ | ︙ | |||
581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 | get { return _designTimeVisible; } set { _designTimeVisible = value; TypeDescriptor.Refresh(this); } } /// <summary> /// Clones a command, including all its parameters /// </summary> /// <returns>A new SQLiteCommand with the same commandtext, connection and parameters</returns> public object Clone() { return new SQLiteCommand(this); } } } | > > | 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 | get { return _designTimeVisible; } set { _designTimeVisible = value; #if !PLATFORM_COMPACTFRAMEWORK TypeDescriptor.Refresh(this); #endif } } /// <summary> /// Clones a command, including all its parameters /// </summary> /// <returns>A new SQLiteCommand with the same commandtext, connection and parameters</returns> public object Clone() { return new SQLiteCommand(this); } } } |
Changes to System.Data.SQLite/SQLiteConnection.cs.
︙ | ︙ | |||
482 483 484 485 486 487 488 | /// <description>N</description> /// <description>Y</description> /// </item> /// </list> /// </remarks> #if !PLATFORM_COMPACTFRAMEWORK [RefreshProperties(RefreshProperties.All), DefaultValue("")] | | | 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 | /// <description>N</description> /// <description>Y</description> /// </item> /// </list> /// </remarks> #if !PLATFORM_COMPACTFRAMEWORK [RefreshProperties(RefreshProperties.All), DefaultValue("")] [Editor("SQLite.Designer.SQLiteConnectionStringEditor, SQLite.Designer", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] #endif public override string ConnectionString { get { return _connectionString; } |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteDataAdapter.cs.
︙ | ︙ | |||
13 14 15 16 17 18 19 | using System.ComponentModel; /// <summary> /// SQLite implementation of DbDataAdapter. /// </summary> #if !PLATFORM_COMPACTFRAMEWORK [DefaultEvent("RowUpdated")] | | | | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | using System.ComponentModel; /// <summary> /// SQLite implementation of DbDataAdapter. /// </summary> #if !PLATFORM_COMPACTFRAMEWORK [DefaultEvent("RowUpdated")] [ToolboxItem("SQLite.Designer.SQLiteDataAdapterToolboxItem, SQLite.Designer")] [Designer("Microsoft.VSDesigner.Data.VS.SqlDataAdapterDesigner, Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] #endif public sealed class SQLiteDataAdapter : DbDataAdapter { private static object _updatingEventPH = new object(); private static object _updatedEventPH = new object(); /// <overloads> |
︙ | ︙ |
Changes to System.Data.SQLite/System.Data.SQLite.
︙ | ︙ | |||
97 98 99 100 101 102 103 104 105 106 107 108 109 110 | </ItemGroup> <ItemGroup> <None Include="DataTypes.xml" /> </ItemGroup> <ItemGroup> <None Include="MetaDataCollections.xml" /> </ItemGroup> <ItemGroup> <Folder Include="Properties\" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> | > > > > > | 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | </ItemGroup> <ItemGroup> <None Include="DataTypes.xml" /> </ItemGroup> <ItemGroup> <None Include="MetaDataCollections.xml" /> </ItemGroup> <ItemGroup> <EmbeddedResource Include="SQLiteCommand.bmp" /> <EmbeddedResource Include="SQLiteConnection.bmp" /> <EmbeddedResource Include="SQLiteDataAdapter.bmp" /> </ItemGroup> <ItemGroup> <Folder Include="Properties\" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> |
︙ | ︙ |