从vb.net创建没有sql,oracle,access或任何数据库软件的数据库表 [英] creating database tables without sql,oracle,access or any database software from vb.net

查看:119
本文介绍了从vb.net创建没有sql,oracle,access或任何数据库软件的数据库表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感谢所有朋友的回答,一直在向我提出我的问题.我的问题是,我一直在从vb.net创建程序,因此涉及像sql,oracle或access之类的数据库的程序.但是,当要为客户端计算机构建和发布项目时,似乎我将不得不从项目安装已发布的安装程序,并且还必须在客户端计算机上安装数据库程序,然后程序才能运行....在不使用sql,oracle或access的情况下在vb.net项目中创建项目并创建数据库表的方法,这样我就不必在项目软件可以工作之前就安装数据库软件?这样,我的项目就不会依赖于在数据库软件上运行.
如何在vb.net中创建数据库表,就像在sql,oracle或access中的表一样.

I thank all my friends for the answer, the''ve been offering me on my questions.My quesiton is, I have been creating programs from vb.net thus programs which involves databases like sql,oracle or access. But when it gets to building and publishing the project for a client computer, it seems I will have to install my published setup from the project and also install a database program on the client computer before the program can run....Is there a way to create a project and create database tables in the vb.net project without using sql,oracle or access, so that I will not have to install a database software before the project software can work?In this way my project will not be depending on a database software to run.
How can I create database tables In vb.net just like tables in sql,oracle or access.

推荐答案

实体框架和LINQ数据支持(如DataContext)可以持久保存XML文件非常容易.这将允许您实现数据库"类型的功能,但将数据持久保存到XML文件中.

或者,您可能需要在客户端计算机上使用SQL Express.就像成熟的SQL一样,您可以针对它运行一些命令(例如CREATE DATABASE和CREATE TABLE)来创建整个数据结构.
The entity framework and the LINQ data support like DataContext can be persisted to XML files pretty easily. This would let you implement ''Database'' type functionality but persist the data to an XML file.

Alternately, you could require SQL Express on the client computer. It is just like the full-blown SQL and there are commands you can run against it (like CREATE DATABASE and CREATE TABLE) to create your entire data structure.


这篇关于从vb.net创建没有sql,oracle,access或任何数据库软件的数据库表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆