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

  • SEARCH
  • Home
  • 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 8804647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:39:36+00:00 2026-06-14T01:39:36+00:00

I have added my table tblFile to my .dbml , but it’s type is

  • 0

I have added my table “tblFile” to my .dbml , but it’s type is “EntitySet tblFiles

But for another table with the same Association, its type is “tblDocTranstoCon”
So I have problem in the below linq query “w” is not IEnumerable but “z” is “IEnumerable”

z = document.tblTransmittalls.Select(dp => dp.tblDocTranstoCons),
w = document.tblTransmittalls.Select(dx => dx.tblFiles)

How I can solve this problem for producing IEnumerable.

[Association(Name="tblTransmittall_tblFile", Storage="_tblFiles", ThisKey="DocID,TransId", OtherKey="DocId,TransId")]
public EntitySet<tblFile> tblFiles
{
    get
    {
        return this._tblFiles;
    }
    set
    {
        this._tblFiles.Assign(value);
    }
}

[Association(Name="tblTransmittall_tblDocTranstoCon", Storage="_tblDocTranstoCons", ThisKey="DocID,TransId", OtherKey="Docid,Transid", IsUnique=true, IsForeignKey=false)]
public tblDocTranstoCon tblDocTranstoCons
{
    get
    {
        return this._tblDocTranstoCons.Entity;
    }
  • 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-14T01:39:37+00:00Added an answer on June 14, 2026 at 1:39 am

    You should try this

    w = document.tblTransmittalls.SelectMany(dx => dx.tblFiles);
    

    because tblFiles has return type EntitySet<tblFile> (which is a Collection) whereas tblDocTranstoCons has return type tblDocTranstoCon

    or you should change its association in dbml designer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have added a table, but the problem is, the panel doesnt show its
I have a table like below and its rows can be added and removed
I have defined a table type PL/SQL variable and added some data there. create
I have a LINQ -> Class file named MoviesDB.dbml, I have added one table
I have added a table(ViolationsDataSourceConfig) to the dbml file. The context name is ViolationsDataContext.
i have have added rows in tables... but after adding some rows table have
I have added rows from a table into a variable of type dbms_sql.varchar2_table. select
I am building an app using storyboard. I have added a table view to
I have added checkbox in display table using decorator class as shown in below
Most of my content is in a new table I have added to JOOMLA

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.