NET中的DataSet与LinqToSql文件 [英] DataSet vs LinqToSql File in .Net

查看:86
本文介绍了NET中的DataSet与LinqToSql文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中同时使用了DataSet.xsd文件和LinqToSql.dbml文件.

我想知道哪个项目最适合使用.

我知道LinqToSql并不是那么令人愉快.

在我的DataSet.xsd文件中,我已经使用了来自SqlServer的近40个表.
使用DataSet会很好,如果可以的话,可以使用40个大小表..我可以将几个表添加到DataSet文件中.

请在此指导我.

当我在两个ASP.Net Project上都使用相同的技术,然后在WPF中执行相同的操作时...

I am using both DataSet.xsd file and LinqToSql.dbml file in my project.

I want to know which is best to use for a project.

I came to know is LinqToSql is not that pleasing to use.

Which in my DataSet.xsd file, i have used nearly 40 tables from SqlServer.
Is that good to use DataSet and if so is that 40 tables are large or small.. How many tables can i add to a DataSet File.

Please guide me in this..

While i am on Both ASP.Net Project using the same technology and then in WPF doing the same...

推荐答案

文件与Visual Studio环境有关,但是与您使用技术的方式无关.您同时使用DataSet和LINQ to SQL可能是多余的,也可能是免费的-取决于您如何使用这些技术.

我建议阅读ADO.NET技术,以更好地了解其用法.然后,您将根据需要知道使用什么...

ADO.NET概述 [
The files are relevant to the Visual Studio environment but have nothing to do with how you are using the technologies. Your use of both DataSets and LINQ to SQL may be redundant or complimentary - depends on how you are using the technologies.

I would suggest reading about the ADO.NET technologies to get a better understanding of their uses. Then you''ll know what to use based on your needs...

ADO.NET Overview[^]


这篇关于NET中的DataSet与LinqToSql文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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