How do I connect to a SQL database from C#?

后端 未结 8 1376
-上瘾入骨i
-上瘾入骨i 2020-12-02 19:06

I am trying to write a local program management and install system for my home network, and I think I\'ve got the technologies nailed down:

  • C#/.NET/WPF for the
8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 19:45

    You can use ADO.Net and System.Data.SqlClient namespace for the same. I will advise you to go with Entities framework (ORM). Please find below links for Entity Framework walk through

    http://thedatafarm.com/LearnEntityFramework/tutorials/creating-an-ado-net-entity-framework-entity-data-model/

    http://thedatafarm.com/LearnEntityFramework/tutorials/use-an-entity-framework-entity-as-a-winforms-data-source/

提交回复
热议问题