Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c# Add System.Data.DataSetExtensions to .net core web api application

I am new to .net core api. I want to use AsEnumerable on datatable and need to add System.Data.DataSetExtensions as reference to my project. I don't see a reference section under my project.

It seems like i need to edit my csproj file. This is how my csproj file looks now.

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <Folder Include="wwwroot\" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Dapper" Version="1.50.5" />
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.9" />
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.3" />
    <PackageReference Include="NLog.Web.AspNetCore" Version="4.7.0" />
    <PackageReference Include="Z.Dapper.Plus" Version="1.3.26" />
  </ItemGroup>

  <ItemGroup>
    <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.4" />
  </ItemGroup>

</Project>

How can I add System.Data.DataSetExtensions to my existing project? Thanks all.

like image 427
ProgSky Avatar asked Oct 04 '18 19:10

ProgSky


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is the full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr.

Is C language easy?

C is a general-purpose language that most programmers learn before moving on to more complex languages. From Unix and Windows to Tic Tac Toe and Photoshop, several of the most commonly used applications today have been built on C. It is easy to learn because: A simple syntax with only 32 keywords.

What is C in C language?

What is C? C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.


1 Answers

It's a NuGet package: https://www.nuget.org/packages/System.Data.DataSetExtensions/

So add a PackageReference to your project:

 <PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
like image 84
David Browne - Microsoft Avatar answered Sep 26 '22 13:09

David Browne - Microsoft