从表创建一个类 [英] Create a Class from a Table

查看:61
本文介绍了从表创建一个类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发一个紧凑的框架项目,我正在使用Compact SQL。我想要完成的是创建一个数据库表(每个表一个),并能够像使用LINQ查询一样使用它们。换句话说,我将使用表中的数据加载
类。我尝试添加一个LINQ to SQL项目,但看起来它不适用于紧凑的框架。

I am working on a compact framework project where I am using the the Compact SQL. What I am trying to accomplish is create a class of the database tables (one for each) and be able to use them as if querying with LINQ. In other words, I will be loading the classes with the data from the tables. I tried adding a LINQ to SQL item, but it looks like it's not available for the compact framework.

任何帮助都将不胜感激。

Any help would be appreciated.

提前致谢。

推荐答案

Compact Framework有自己的论坛...我会移动这篇文章有 这个论坛适用于VB的完整框架。
Compact Framework has its own forum... I'll move this post there.  This forum is for VB in the full framework.


这篇关于从表创建一个类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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