Foundation Series II wpf_MVVM_002 adding Entity Data Model

Add Entity Data Model:
with the "Model" Add Folder entity class as an example:
folder, right at the - "add" - "New Item" - "Data" - "ADO.NET Entity Data Model" - "EF from the database Designer "
-" Next "-" New connection "- fill in the" server name (E) "- select" use SQL server authentication (Q) "- enter your user name and password
- in the" select or enter a database name (D) "select database desired -" test connection "- the connection is successful -
", the sensitive data includes a connection string (T). "-" Next "-" 6.X entity framework "or select update - "Next"
- check "form", not hook "OK singular and plural forms of the generated object name (S)" hook "includes foreign key column (K) in the model."

Published 130 original articles · won praise 36 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_44548307/article/details/104755971