Best way to access a SQL Server database using C# .Net

后端 未结 5 1417
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 07:13

I am new to .NET and have heard about several different ways of querying a SQL Server databse such as ADO.NET and the entity framework.

Can anyone give me some advis

5条回答
  •  再見小時候
    2020-12-15 07:32

    Entity Framework is the easiest, and its built in.

    All you have to do is important your model, and then just update simple classes, that are automatically mapped to your db.

    Its just like updating normal objects, but at the end you call SaveChanges.

提交回复
热议问题