登录
首页 » C# » <免安装版>sqlite 数据库操作 实例源码下载

<免安装版>sqlite 数据库操作 实例源码下载

于 2015-04-12 发布
0 80
下载积分: 1 下载次数: 0

代码说明:

如果你的操作系统是 win64位系统,那么请按照以下提示操作: 首先在这里下载  最新版的 sqlite dll文件,引用到项目中 http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki 记住是这个版本:Precompiled Binaries for 64-bit Windows  以及对应上你的 .net framework环境即可  另外程序的版本修改成 x64, 右键项目>>生成>>目标平台选择 x64 即可 至此即可使用  据说:从 System.Data.SQLite, Version=1.0.94.0 这个版本以后 不需要引用SQLite.Interop.dll 这个了,包含到 system.data.sqlite.dll中了

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • c# 十字光标定位 实例
    winform程序 实现了 十字光标定位
    2013-05-06下载
    积分:1
  • EF Code First简介及一个入门级实例
    一、EF Code First简介 EntityFramework 代码优先   二、EF Code First第一个简单实例 1、开发环境及数据库说明 开发环境:Visual Studio 2010 Ultimate sp1 Sql Server 2008 R2 数据库:Northwind 2、实例代码结构 结构说明: App:控制台应用程序 Data:数据访问 Domain:实体类 3、安装Entity Framework   在Visual Studio编辑器中点击Tools -> Library Package Manager -> Package Manager Console,在Package Manager Console窗口中执行下面语句,安装最新版Entity Framework。 PM> Install-Package EntityFramework   App层和Data层分别添加对EntityFramework的引用:     在App层安装EntityFramework之后,将自动添加App.config和packages.config文件。   App.config配置Entity Framework版本信息及数据库连接信息,修改其中数据连接信息以适应本地实际环境。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15   packages.config现实当前项目使用的package: 1 2 3 4 4、实例代码 Domain中Category.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace Northwind.Domain.Entities 7 { 8 public class Category 9 { 10 /// 11      /// 分类ID 12      /// 13 public int CategoryID { get; set; } 14 15 /// 16      /// 分类名称 17      /// 18 public string CategoryName { get; set; } 19 } 20 } Data中NorthwindContext.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 using System.Data.Entity; 7 8 using Northwind.Domain.Entities; 9 10 namespace Northwind.Data 11 { 12 public class NorthwindContext : DbContext 13 { 14 public DbSet Categories { get; set; } 15 } 16 } App中Program.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 using Northwind.Data; 7 using Northwind.Domain.Entities; 8 9 namespace Northwind.App 10 { 11 class Program 12 { 13 static void Main(string[] args) 14 { 15 Category c = new Category() { CategoryName = "电子数码" }; 16 17 using (NorthwindContext db = new NorthwindContext()) 18 { 19 db.Categories.Add(c); 20 db.SaveChanges(); 21 } 22 23 Console.WriteLine("Finish"); 24 Console.ReadKey(); 25 } 26 } 27 } 5、运行说明   由于在上面的数据库连接字符串中并未包含指定的数据库名称,运行成功之后,将在本地数据引擎中创建如下数据库和表:   数据库名称:Northwind.Data.NorthwindContext   表名称:Categories 6、示例代码附件
    2014-04-22下载
    积分:1
  • QQ的屏幕截图程序
    QQ的屏幕截图程序
    2015-11-15下载
    积分:1
  • c# winform 自定义控件类LayeredSkin.dll
    自定义开关按钮,滚动相册,进度条,窗体控件/******************************************************************** * * * * 使本项目源码或本项目生成的DLL前请仔细阅读以下协议内容,如果你同意以下协议才能使用本项目所有的功能, * * 否则如果你违反了以下协议,有可能陷入法律纠纷和赔偿,作者保留追究法律责任的权利。 * * * * 1、你可以在开发的软件产品中使用和修改本项目的源码和DLL,但是请保留所有相关的版权信息。 * * 2、不能将本项目源码与作者的其他项目整合作为一个单独的软件售卖给他人使用。 * * 3、不能传播本项目的源码和DLL,包括上传到网上、拷贝给他人等方式。 * * 4、以上协议暂时定制,由于还不完善,作者保留以后修改协议的权利。 * * * * Copyright (C) 2013-2014 LayeredSkin Corporation All rights reserved. * * 作者: 小红帽  QQ:761716178 * * 请保留以上版权信息,否则作者将保留追究法律责任。 * * * * 创建时间:2014-04-13 * * 说明:QQ.cs * *********************************************************************/using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using LayeredSkin.Forms;namespace test{    public partial class QQ : LayeredForm    {        public QQ()        {            InitializeComponent();        }        private void layeredButton1_Click(object sender, EventArgs e)        {            this.WindowState = FormWindowState.Minimized;        }        private void QQ_Load(object sender, EventArgs e)        {            this.Animation.Effect = new LayeredSkin.Animations.GradualCurtainEffect() { ChangeHeight = 25 };            yezi = new Bitmap(90, 80);//先把叶子画在稍微大一点的画布上,这样叶子旋转的时候才不会被裁掉一部分            using (Graphics g = Graphics.FromImage(yezi))            {                g.DrawImage(Image.FromFile("Images\yezi3.png"), 10, 0);            }            timer1.Start();        }        private void layeredButton2_Click(object sender, EventArgs e)        {            this.Animation.Effect = new LayeredSkin.Animations.GradualCurtainEffect();            this.Animation.Asc = true;            this.Close();        }        private void FormMoveMouseDown(object sender, MouseEventArgs e)        {            LayeredSkin.NativeMethods.MouseToMoveControl(this.Handle);        }        Image Cloud = Image.FromFile("Images\cloud.png");        float cloudX = 0;        Image yezi;        float angle = 10;        bool RotationDirection = true;//是否为顺时针        protected override void OnLayeredPaint(PaintEventArgs e)        {            Graphics g = e.Graphics;            if (cloudX > this.Width - Cloud.Width)            {//云的飘动                cloudX = 0;            }            else            {                cloudX = 0.5f;            }            g.DrawImage(Cloud, cloudX, 0);//把云绘制上去            if (angle > 10)            {//控制旋转方向                RotationDirection = false;            }            if (angle < -10)            {                RotationDirection = true;            }            if (RotationDirection)            {                angle = 1;            }            else            {                angle -= 1;            }            using (Image temp = LayeredSkin.ImageEffects.RotateImage(yezi, angle, new Point(25, 3)))            {                g.DrawImage(temp, 140, 70);//绘制叶子            }            base.OnLayeredPaint(e);        }        private void timer1_Tick(object sender, EventArgs e)        {            LayeredPaint();            GC.Collect();        }        public bool isShow = false;        bool isFirst = true;        private void layeredButton3_Click(object sender, EventArgs e)        {            isShow = false;            if (isFirst)            {                this.Animation.Effect = new LayeredSkin.Animations.ThreeDTurn();                this.Animation.AnimationEnd = Animation_AnimationEnd;            }            isFirst = false;            this.Animation.Asc = false;            this.Animation.Start();        }        //QQConfig config;        void Animation_AnimationEnd(object sender, LayeredSkin.Animations.AnimationEventArgs e)        {            if (!isShow)            {                this.Hide();                QQConfig config = new QQConfig(this);                config.Location = this.Location;                config.Show();            }        }    }}
    2020-12-11下载
    积分:1
  • C# 自绘窗体 示例源码
    C# 自绘窗体 示例源码
    2013-10-03下载
    积分:1
  • C#树节点的直接修改
    C#树节点的直接修改
    2013-10-31下载
    积分:1
  • Aspose.Cells 导出excel 示例源码(C#)
    Aspose.Cells 导出excel 示例源码(C#)
    2017-10-31下载
    积分:1
  • C# 文件上传和下载(上传文件到服务端)
    实现文件上传和下载,包含服务器和客户端 对于学习TCP的同学有帮助
    2021-03-21 22:09:16下载
    积分:1
  • c++知识点总结.doc
    c++知识点总结.doc
    2021-05-06下载
    积分:1
  • c# 生成二维码示例源码下载
    c# 生成二维码示例源码下载
    2014-02-07下载
    积分:1
  • 696521资源总数
  • 104072会员总数
  • 37今日下载