创建数据层类 [英] Create Data layer Class

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

问题描述

你好

我需要帮助,请问如何创建数据层类,使我可以使用此类中的对象作为aDataBase表.

例如:ClassDB MyClass = new ClassDB("dbo.Tbl1");

从这个类中,我可以处理数据库的任何任务(插入-Updatee-Delete-Select -Etc ......)

希望我能很好地将其转出

等待答案

此致

[ ^ ]教程可能非常详细


另一个链接此处看看.


使用LINQ to SQL进行任何形式的操作数据库操作(插入,更新,删除等).有关Linq to sql的示例代码,请访问
在ASP.NET网页中使用语言集成查询(LINQ)访问数据–第2部分 [ ^ ]
LINQ to SQL:基本概念和功能 [ LINQ to SQL [
and from this class i can handle any task with the Data Base (Insert -Updatee-Delete-Select -Etc......)

hope that i can explane it well

waiting for the answer

Best Regards

解决方案

This[^] tutorial is perhaps a very detailed one that should help you out.


Another link here
OR
Have a look here.


use LINQ to SQL for any kind of database operation (Insert, Update, delete etc). for sample code of Linq to sql visit
Accessing Data using Language Integrated Query (LINQ) in ASP.NET WebPages – Part 2[^]
LINQ to SQL: Basic Concepts and Features[^]
LINQ to SQL[^]


Thanks


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

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