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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:09:33+00:00 2026-05-12T23:09:33+00:00

I have followed this tutorial by Scott pretty much to the T against my

  • 0

I have followed this tutorial by Scott pretty much to the T against my own database.

http://weblogs.asp.net/scottgu/archive/2007/08/27/linq-to-sql-part-8-executing-custom-sql-expressions.aspx

I am getting an error in my Partial class.

The name ‘ExecuteQuery’ does not exist in the current context. I cannot for the life of me figure out what went wrong.

public partial class MerchantsAppDataContext
{

    public IEnumerable<SubmittalDetails> GetSubmittalDetails(string minDate)
    {
        var sqlTxt = "SELECT Submittals.SubmittalID, Submittals.Created AS     DateFiled, " +
            "CheckDetails.Status AS CheckStatus, CheckDetails.CheckNumber,     CheckDetails.DateWritten, CheckDetails.FaceAmount, CheckDetails.Reference,     CheckDetails.ExhibitNo AS ExhibitNumber, " +
            "CheckWriterDetails.FirstName, CheckWriterDetails.LastName " +
            "FROM Submittals " +
            "INNER JOIN LocationAccepted ON Submittals.LocationAcceptedID =     LocationAccepted.LocationAcceptedID " +
            "INNER JOIN CheckDetails ON LocationAccepted.LocationAcceptedID = CheckDetails.LocationAcceptedID AND Submittals.SubmittalID = CheckDetails.SubmittalID " +
            "INNER JOIN CheckWriterDetails ON CheckDetails.CheckWriterID = CheckWriterDetails.CheckWriterID " +
            "WHERE (CheckDetails.DateWritten >= {0})" +
            "ORDER BY   Submittals.Created DESC, Submittals.SubmittalID,     CheckDetails.CheckDetailsID ";


        return ExecuteQuery<SubmittalDetails>(sqlTxt, minDate);
    }


}



public class SubmittalDetails
{

    public int SubmittalID { get; set; }
    public string Created { get; set; }
    public int LocationAccepted { get; set; }

}
  • 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-12T23:09:34+00:00Added an answer on May 12, 2026 at 11:09 pm

    The compiler is unable to find the other half of the partial class, and so it can’t see that it is a DataContext.

    Check the auto-generated file MerchantsAppDataContext.designer.cs to which namespace the partial class MerchantsAppDataContext is defined inside, and make sure you use the same namespace in your code.

    namespace ??? // TODO: Use the same namespace as MerchantsAppDataContext.designer.cs
    {
        public partial class MerchantsAppDataContext
        {
            public IEnumerable<SubmittalDetails> GetSubmittalDetails(string minDate)
            {
                ...
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I followed this tutorial http://www.tugberkugurlu.com/archive/api-key-authorization-through-query-string-in-asp-net-web-api-authorizationfilterattribute to create custom Authorization filter. I have CarController with
I have followed the tutorial at http://blog.boreal-kiss.net/2011/03/15/how-to-create-universal-static-libraries-on-xcode-4/ To make myself a static library. It
I have followed this tutorial: http://www.phpjabbers.com/how-to-make-a-php-calendar-php26-6.html#comments to make a very basic calendar. My aim
I have followed this tutorial and added iAd to my app: http://bees4honey.com/blog/tutorial/how-to-add-iad-banner-in-iphoneipad-app/ But the
I have followed this tutorial to get my ListView populating data -- http://android.amberfog.com/?p=296 .
I have followed this tutorial http://netbeans.org/kb/docs/websvc/gs-axis.html and successfully created the web service. When i
I have followed this tutorial http://blogs.wrox.com/article/creating-a-simple-ipad-application-table-view/ (creating a uitableview and populating it). I want
I have followed this tutorial: http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12 fully, and after seing that I had issues
I have followed this tutorial to create the first azure application http://msdn.microsoft.com/en-us/WAZPlatformTrainingCourse_IntroToWindowsAzureLabVS2010 Because after
I have found this tutorial online http://net.tutsplus.com/tutorials/php/creating-a-php5-framework-part-1/ I have created myself a simple sort

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.