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 8532675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:46:09+00:00 2026-06-11T09:46:09+00:00

I have one var variable which is having a single column and i want

  • 0

I have one var variable which is having a single column and i want to make join that column with the database table.my code is as follows :

var notlinked = _client.Except(linked).ToList();
var result = (from e in iEnt.clientmasters 
              join g in notlinked on e.ClientID equals g.ClientID 
              select e).ToList();  

now notlinked is having a single column and depend on that i want to retrieve information from database so in the next line i am doing join to that table but when i execute it getting following error :

Unable to create a constant value of type ‘Anonymous type’. Only primitive types (‘such as Int32, String, and Guid’) are supported in this context.

suggest me some solution to this

  • 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-06-11T09:46:10+00:00Added an answer on June 11, 2026 at 9:46 am

    Here is the sample application to find things. I have taken two list Customer and another is int list.

    
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace ConsoleApplication2
    {
        class Program
        {
            static void Main(string[] args) {
    
    
                List customers=new List();
                customers.Add(new Customer(1,"Jalpesh"));
                customers.Add(new Customer(2, "Kaushal"));
                customers.Add(new Customer(3, "Mahesh"));
    
                List intList=new List{1,2};
    
    
                var customerList = customers.Where(c => intList.Contains(c.Id));
    
            }
    
    
        }
    
        public class Customer
        {
            public int Id { get; set; }
            public string Name { get; set; }
    
            public Customer(int id,string name) {
                Id = id;
                Name = name;
            }
        }
    }
    
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, this one is weird, i have this code: $('#nps').submit(function(e) { e.preventDefault(); var images
I have one table which contains events and dates, and another which contains the
I have an AJAX function triggerd by a click which basically copies one table
I have some trouble with date manipulation in Javascript. I have one variable which
I have anonymous type variable which i am populating like that(i have two variables
I have a variable which carries information but i want to be able to
I have the CakePHP stack in /var/www/site from one view under controller A I
have one time consuming step that flattens a bunch of files. basically i'd like
I have one XML request which I need to modify (to XML) and then
I have one drop down list in my page, which contains two options. What

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.