コード例 #1
0
 /*SPEntityState SPObjState = SPEntityState.Unchange;*/
 /**/
 public PhoneCatalog()
 {
     InitializeComponent();
     using (CuaHangBanDiDongV1Entities phoneManagementDBEntities = new CuaHangBanDiDongV1Entities())
     {
         var showData = from db in phoneManagementDBEntities.SanPhams select db;
         dataGridView1.DataSource = showData.ToList();
     }
 }