.


:




:

































 

 

 

 


# .

. . 3 : (, , , , ), (, , , , , ), (, , , ). , , . , , .

 

. .

  1. Windows hospital
  2. , Data->Add New Data Source.
  3. (.1). DataBase Next.

 

.1

  1. New Connection. (.2).

.2

  1. Connection properties Database hospital Create. (.3).

.3

  1. , .
  2. . , . Yes.
  3. (.2), .sdf
  4. , Test connection. (. 4). , .

.4

  1. Add connection
  2. (.1).
  3. Next, (.5). , .

.5

  1. . , New connection connection properties create (.3) Browse. . , .
  2. (.2), . .
  3. . Next. VS(.6). .

.6

  1. Next .
  2. Solution Explorer hospital.sdf. . Server Explorer (.7)

.7

  1. , , . .
  2. . Create table. (.8).

.8

  1. . . . .
  2. 3 .
  3. . . . Table properties. , Add relations (.9)
  4. relation name .
  5. Primary Key Table , .
  6. Foreign Key Table Column ( ).
  7. Add Columns. Add relation
  8. Add Relation. , .
  9. . . Manage Relations
  10. .
  11. Show table data. (.10).

 

.9

.10

  1. .
  2. . . , .
  3. . hospitalDataSet.xsd. .
  4. TableAdapter. . , Add-> TableAdapter. (.11).
  5. Next , (.12).
  6. Query Builder. (.13). . Close.

.11

.12

.13

  1. , , , , , . . Execute Query. . .
  2. . . TableAdapter . . .
  3. DataGridView. ( Data).
  4. , (.14)

.14

  1. Choose Data Source . , , , .
  2. (.15). , . hospitalDataSet , dataTable1BindingSource , dataTable1TableAdapter .

.15

  1. . (.16).

.16

  1. . . .
  2. DataGridView, Edit Columns. (.17).
  3. ( ) HeaderText .
  4. .

.17

  1. . , . , , .
  2. . . (.18)

.18

 

. .



<== | ==>
 |
:


: 2017-01-28; !; : 981 |


:

:

, .
==> ...

1915 - | 1783 -


© 2015-2024 lektsii.org - -

: 0.015 .