- DataSet : 메모리상의 데이터 베이스, 즉, DB에 있는 한 두개의 테이블을 읽어서 DataSet 개체에 보관에 놓으면, 마치 물리적인 DB를 메모리에 두고, 이를 사용해서 손쉽게 DB 입출력 기능을 구현 할 수 있는 막강한 클래스 - Create a typed TableAdapter object and invoke the fill method - Create an untyped DataAdapter Object, configur it, and then invoke the Fill metod - SqlDataAdapter Data Display - 데이터 출력 데이터 리더 : SqlConnection -> SqlCommand - > ExecuteReader() -> SqlDataReader -> GridView 데이터 셋 : SqlConnection -> SqlCommand -> SqlDataAdapter -> ->Fill() -> DataSet -> GridView |
using System.Data; public partial class Category_FrmDataset : System.Web.UI.Page private void DisplayData() SqlCommand cmd = new SqlCommand //[2]Dataset 클래스의 인스턴스 //[4]GridVies에 바인딩 |
'.Net Project > ADO.NET 3.5' 카테고리의 다른 글
10장 ADO.NET 메모리상의 데이터 베이스(View) (0) | 2009.09.28 |
---|---|
09장 ADO.NET 메모리상의 데이터 베이스(DataTable) (0) | 2009.09.28 |
07장 ADO.Net 카테고리 트랜잭션 활용() (0) | 2009.09.28 |
06장 ADO.Net 카테고리 수정,삭제(CategoryUpdate) (0) | 2009.09.28 |
05장 ADO.Net 카테고리 추가,리스트,뷰(CategoryAdd,List,View) (0) | 2009.09.28 |