sqlitedataconnectionsupport.cs
来自「sqlite 3.3.8 支持加密的版本」· CS 代码 · 共 62 行
CS
62 行
/********************************************************
* 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;
using Microsoft.VisualStudio.OLE.Interop;
using Microsoft.VisualStudio.Data.AdoDotNet;
using Microsoft.Win32;
/// <summary>
/// This class creates many of the DDEX components when asked for by the server explorer.
/// </summary>
internal sealed class SQLiteDataConnectionSupport : AdoDotNetConnectionSupport
{
private SQLiteDataViewSupport _dataViewSupport;
private SQLiteDataObjectSupport _dataObjectSupport;
private SQLiteDataObjectIdentifierResolver _dataObjectIdentifierResolver;
public SQLiteDataConnectionSupport()
: base("System.Data.SQLite")
{
}
protected override DataSourceInformation CreateDataSourceInformation()
{
return new SQLiteDataSourceInformation(Site as DataConnection);
}
protected override object GetServiceImpl(Type serviceType)
{
if (serviceType == typeof(DataViewSupport))
{
if (_dataViewSupport == null) _dataViewSupport = new SQLiteDataViewSupport();
return _dataViewSupport;
}
if (serviceType == typeof(DataObjectSupport))
{
if (_dataObjectSupport == null) _dataObjectSupport = new SQLiteDataObjectSupport();
return _dataObjectSupport;
}
if (serviceType == typeof(DataObjectIdentifierResolver))
{
if (_dataObjectIdentifierResolver == null) _dataObjectIdentifierResolver = new SQLiteDataObjectIdentifierResolver(Site);
return _dataObjectIdentifierResolver;
}
if (serviceType == typeof(DataConnectionSupport))
return this;
return base.GetServiceImpl(serviceType);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?