Click here to Skip to main content
15,892,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Only Save Contentpage Pin
Shameel3-Jul-11 20:38
professionalShameel3-Jul-11 20:38 
GeneralRe: Only Save Contentpage Pin
Elham M3-Jul-11 23:46
Elham M3-Jul-11 23:46 
GeneralRe: Only Save Contentpage Pin
Shameel4-Jul-11 7:53
professionalShameel4-Jul-11 7:53 
GeneralRe: Only Save Contentpage Pin
Not Active4-Jul-11 8:32
mentorNot Active4-Jul-11 8:32 
GeneralRe: Only Save Contentpage Pin
Shameel4-Jul-11 8:47
professionalShameel4-Jul-11 8:47 
GeneralRe: Only Save Contentpage Pin
Not Active4-Jul-11 2:19
mentorNot Active4-Jul-11 2:19 
GeneralRe: Only Save Contentpage Pin
Shameel4-Jul-11 7:44
professionalShameel4-Jul-11 7:44 
QuestionLinq to SQL dbml file Pin
indian1431-Jul-11 13:19
indian1431-Jul-11 13:19 
Hi,

I have three tables in a dbml file and two Linq queries to get the data using Linqs. The first linq query gets some data from a table and then on this same collection we apply 2nd query. Eventhough after I check for the null value on the variable I get table not found exception.

So I want to check whether the table we applied the first linq has the required table or not. I am giving the code block below.

I want to check a specific table parallelDataContext.teQUTUDatas in dbml exists in database or not?

private int? GetTeQUTUData(int quarterlyUpdateJobId, int quarterlyUpdateSubscriptionId)
{
    int? tuReportBinaryDataID = null;

    if ((parallelDataContext != null) && (parallelDataContext.teQUTUDatas != null))
    {
                return parallelDataContext.teQUTUDatas.Where(d => d.QuarterlyUpdateJobID == quarterlyUpdateJobId &&
                d.QuarterlyUpdateSubscriptionID == quarterlyUpdateSubscriptionId).
                Select(a => a.TUReportBinaryDataID).FirstOrDefault();
    }
    else
                return tuReportBinaryDataID;
}

Thanks & Regards,

Abdul Aleem Mohammad
St Louis MO - USA

AnswerRe: Linq to SQL dbml file Pin
Philippe Mori1-Jul-11 13:56
Philippe Mori1-Jul-11 13:56 
GeneralRe: Linq to SQL dbml file Pin
indian1431-Jul-11 14:54
indian1431-Jul-11 14:54 
GeneralRe: Linq to SQL dbml file Pin
Philippe Mori1-Jul-11 16:01
Philippe Mori1-Jul-11 16:01 
GeneralRe: Linq to SQL dbml file Pin
indian1431-Jul-11 19:12
indian1431-Jul-11 19:12 
GeneralRe: Linq to SQL dbml file Pin
Philippe Mori2-Jul-11 2:58
Philippe Mori2-Jul-11 2:58 
AnswerRe: Linq to SQL dbml file Pin
Not Active1-Jul-11 15:12
mentorNot Active1-Jul-11 15:12 
QuestionLinq to SQL is taking more memory Pin
indian14330-Jun-11 14:06
indian14330-Jun-11 14:06 
AnswerRe: Linq to SQL is taking more memory [modified] Pin
Not Active30-Jun-11 15:07
mentorNot Active30-Jun-11 15:07 
GeneralRe: Linq to SQL is taking more memory Pin
indian14330-Jun-11 17:58
indian14330-Jun-11 17:58 
GeneralRe: Linq to SQL is taking more memory Pin
Not Active30-Jun-11 18:18
mentorNot Active30-Jun-11 18:18 
AnswerRe: Linq to SQL is taking more memory Pin
dasblinkenlight1-Jul-11 3:44
dasblinkenlight1-Jul-11 3:44 
GeneralRe: Linq to SQL is taking more memory Pin
indian1431-Jul-11 8:43
indian1431-Jul-11 8:43 
GeneralRe: Linq to SQL is taking more memory Pin
dasblinkenlight1-Jul-11 9:02
dasblinkenlight1-Jul-11 9:02 
AnswerRe: Linq to SQL is taking more memory Pin
Philippe Mori1-Jul-11 14:04
Philippe Mori1-Jul-11 14:04 
AnswerRe: Linq to SQL is taking more memory Pin
Shameel3-Jul-11 20:35
professionalShameel3-Jul-11 20:35 
QuestionLinqToExcel in win 64 bit Pin
Dhyanga30-Jun-11 8:10
Dhyanga30-Jun-11 8:10 
AnswerRe: LinqToExcel in win 64 bit Pin
Not Active30-Jun-11 8:13
mentorNot Active30-Jun-11 8:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.