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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:12:31+00:00 2026-06-03T16:12:31+00:00

public string LoginUser(string email, string password) { string query = @SELECT VALUE tblUser FROM

  • 0
public string LoginUser(string email, string password)
    {
        string query = @"SELECT VALUE tblUser FROM MyEntities.tblUser AS tblUser WHERE tblUser.email = @email AND tblUser.password = @password";
        ObjectParameter[] parameters = new ObjectParameter[2];
        parameters[0] = new ObjectParameter("email", email);
        parameters[1] = new ObjectParameter("password", password);

        using (var context = new MyEntities())
        {
            ObjectQuery<string> results = context.CreateQuery<string>(query, parameters);
            foreach (string result in results)
            {
                if (result != null)
                {
                    return result;
                }
            }
        }
        return null;
    }

i did double check on my code and the entity query itself got no problem but i don’t know why it will giving me the message as titled and could not load the data. This is WCF part and calling data from SQL Azure. By using Phone.Can anyone please give me a hint on how to solve it while i spent few hours still couldn’t overcome this. Thank you.

  • 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-03T16:12:32+00:00Added an answer on June 3, 2026 at 4:12 pm

    I suspect that, your model does not have an entity named as tblUser. The database table name and entity name may not be the same. For instance; if you are using model first approach with default settings; table names in the database are generated with a “set” or an “s” suffix.

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

Sidebar

Related Questions

public String[] getValue(String keyName) { ArrayList arraylist = (ArrayList) value.get(getKey(keyName)); String[] valueArray = new
public string[] SearchForMovie(string SearchParameter) { WebClientX.DownloadDataCompleted += new DownloadDataCompletedEventHandler(WebClientX_DownloadDataCompleted); WebClientX.DownloadDataAsync(new Uri( http://www.imdb.com/find?s=all&q=ironman+&x=0&y=0 )); string
public string[] arrTestResults = new string[8]; public string TestName; [TestInitialize] public void SetupTest() {
public string[] TestResults = new string[8]; I want to assign each item of the
public class Buddy { public string[] Sayings; } Buddy one = new Buddy(); one.Sayings
So I've got this method called LoginUser: public void LoginUser(out SystemUser userToLogin, string username)
I have the following code in android - I'm using asmack API. public XMPPManager(String
public string GetNameBySSN(string SSN) { var results = from c in Clients where c.ClientSSN.Equals(IRRCNumber)
public string getTime() { StringBuilder RetString = new StringBuilder(); RetString.Append(Hours.ToString().PadLeft(2, '0') + - +
public String starString(int n){ int m = (int)Math.pow(2,n); String str=; str = starString(m-1,str); return

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.