简体   繁体   English

模糊的关系数据库映射到C#数据集

[英]Obscure Relational Database Mapping to C# Dataset

apologies for the previous post, sometime writing the questions actually solves it too ;) as in "the answer is in the question" 对上一篇文章表示歉意,有时写问题实际上也可以解决问题;)如“答案在问题中”

So I'm trying to interface an old primitive database system that is accessed vi a DLL entry point, however some work has been done on object rational mapping where one can create objects of each table and access the database that way, however for viewing the entire database it's seams impossible it parse so many tables (1000's or so objects) However if I can create some sort of schema mapping to a C# Dataset class then that would make it accessible. 因此,我试图连接一个通过DLL入口点访问的旧的原始数据库系统,但是在对象有理映射上已经完成了一些工作,其中可以创建每个表的对象并以这种方式访问​​数据库,但是用于查看整个数据库不可能解析太多的表(大约1000个对象),但是如果我可以创建某种模式映射到C#Dataset类,那么它将可以访问。

Hope that give some info into what i'm trying to attempt 希望给我尝试尝试的信息

I don't know what kind of DBMS you're trying to access, but if your legacy system has some kind of query language, you could write some kind of interface to query the database (SQL to legacy language class, a SQL driver whatever). 我不知道您要尝试访问哪种DBMS,但是如果您的旧系统具有某种查询语言,则可以编写某种接口来查询数据库(SQL到旧语言类,SQL驱动程序等等)。 )。

I'm not sure why you would do a object-relational mapping to this. 我不确定为什么要对此进行对象关系映射。 Why not write an interface that would let you query it in a simple, yet effective manner? 为什么不编写一个接口,让您以简单而有效的方式查询它呢?

edit: I see you write "Object rational mapping", I suppose you mean object relational mapping 编辑:我看到你写“对象有理映射”,我想你的意思是对象关系映射

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM