Solved

I need help with a LINQ query in my ASP.Net application

Posted on 2011-09-14
2
201 Views
Last Modified: 2012-08-14

Hi experts
if I wanted to execute the query below using LINQ in my ASP.Net app with C# code behind, how would I do it in LINQ?  The query below is how I would execute it in SQL Server but how could I do this in LINQ?


SELECT
[School Year],
[Course Name]
FROM        
TBL_Course
where [CourseID] not in (select [CourseID] from TBL_Book where [BookID] NOT IN (14))



Thanks in advance,
mrotor
0
Comment
Question by:mainrotor
2 Comments
 
LVL 14

Accepted Solution

by:
nishant joshi earned 250 total points
ID: 36538191

[your linqtable or list] .where(!x=>x.[CourseID].exist([TBL_Book linq table].where(y=>y.bookid !=14)).select();
0
 
LVL 7

Assisted Solution

by:Kishan Zunjare
Kishan Zunjare earned 250 total points
ID: 36544616
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now