zoukankan      html  css  js  c++  java
  • 如何使用C#操作SQLite数据库 SharePoint

    前面的文章已经介绍了SQLite数据库和ADO.NET Provider for SQLite, 现在介绍下如何使用c#操作SQLite数据库。

    1. 到 http://sourceforge.net/projects/sqlite-dotnet2/files/ 下载ADO.NET provider for the SQLite database engine. 然后安装。

    2. 在VS 2005 新建控制台程序,然后添加引用System.Data.SQLite.dll,该文件在ADO.NET provider for the SQLite 安装目录的bin目录下。

    3. using 该命名空间,就可以和使用其他ADO.NET Provider一样使用它了。

    代码如下:

    Code

    运行结果:

    cola---mypassword

    cola---mypassword

    cola---mypassword

    cola---mypassword

    cola---mypassword

    cola---mypassword

    cola---mypassword

    cola---mypassword

    cola---mypassword

    cola---mypassword

    cola---mypassword

  • 相关阅读:
    设计模式系列之中介者模式(Mediator Pattern)——协调多个对象之间的交互
    设计模式系列之外观模式(Facade Pattern)——提供统一的入口
    设计模式系列之装饰模式(Decorator Pattern)——扩展系统功能
    设计模式系列之组合模式(Composite Pattern)——树形结构的处理
    设计模式系列之工厂模式三兄弟(Factory Pattern)
    设计模式系列之建造者模式(Builder Pattern)——复杂对象的组装与创建
    设计模式系列之原型模式(Prototype Pattern)——对象的克隆
    动态追踪技术之SystemTap
    一次内核 crash 的排查记录
    LLVM Coding Standards
  • 原文地址:https://www.cnblogs.com/gzcola/p/1606263.html
Copyright © 2011-2022 走看看