web service RRS feed

  • Question

  • User-1986008217 posted


    I want to make web service for n tier web site.I used business tier and datalayer.
    I want to make asmx for two layer.I make web service and copied to functions under [webmethods] in new web service.
    But my all functions connect to data layer.Like that

            public DataSet Check(string userName, string password)
                string query = "SELECT * FROM Newuser WHERE Address = @Username AND Pass = @Password";
                MySqlCommand command = new MySqlCommand(query);
                command.Parameters.Add(new MySqlParameter("@Username", userName));
                command.Parameters.Add(new MySqlParameter("@Password", password));
                return DATALAYER.DataTier.Default.SelectCommandParameterized(query, command);

     I added project DATALAYER to same solution.After that I added reference datalayer.dll. But vs2012 dont allow this.It underline DATALAYER.And error:

    THE name "DATALAYER " does not exist in the current context.

    How to make web services business layer ?
    Any opinion?

    Thanks in advance 

    Thursday, May 9, 2013 2:52 PM


All replies