Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6558127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:09:41+00:00 2026-05-25T13:09:41+00:00

I have this, one datatable and one entity class that I can convert to

  • 0

I have this, one datatable and one entity class that I can convert to a datatable.

UC010_WizardStepBusinessParkDataSet dataSet = new UC010_WizardStepBusinessParkDataSet();
        View_BuildingModule_UC010_BusinessPark_Wizard_GetBusinessParkData vwBusPark = new View_BuildingModule_UC010_BusinessPark_Wizard_GetBusinessParkData();

I want to return with a LINQ query the ones that are in vwBusPark that are not in dataset.BusinessPark.

I was trying something like the following but I am stuck:

   var query = dataSet.BusinessPark.Where(entry => !vwBusPark.toDataTable().AsEnumerable().Contains(entry.BusinessParkID));

It says:

Error 1 The type arguments for method ‘System.Linq.Enumerable.Contains(System.Collections.Generic.IEnumerable, TSource)’ cannot be inferred from the usage. Try specifying the type arguments explicitly. C:\BITProjects\TeamSystem\luival\refm\DEV\BuildingModule\Business\UC010_BusinessPark_Wizard\BusinessParkWizardBL.cs 42 62 Ceusters.REFM.BuildingModule.Business

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:09:42+00:00Added an answer on May 25, 2026 at 1:09 pm

    Try

    var vwBusParkIDs = vwBusPark.toDataTable().AsEnumerable().Select(r => Convert.ToInt32( r["BusinessParkId"]));
    var query = dataSet.BusinessPark.Where(entry => !vwBusParkIDs.Contains(entry.BusinessParkID));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the deal. I have a big class hierarchy and I have this one
Let's suppose I have xml like this one: <Server Active=No> <Url>http://some.url</Url> </Server> C# class
I have this code that has one button that let's me choose an entry
I have a datatable with One ColumnName CustomerID with Integer DataType. Dynamically I want
I have an entity class Document and another one called Space. The relation: @ManyToOne(fetch
suppose that I have this RDBM table ( Entity-attribute-value_model ): col1: entityID col2: attributeName
I have this requirement, A product can have multiple images and only one default
I have a dataTable that lists some objects and I want to set a
I have a JSF datatable like this one: <h:form id=productsBox> <h:dataTable var=product value=#{categoriesBean.category.products} id=productsTable>
I usually just create a datatable with one repeater and have all this html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.