Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, some of the methods in my BLL class is not appearing in my object data source while some are. I wonder what the reason behind it, is it because i merge the methods of DAL and table adapters together in the same BLL?
Posted
Comments
saguptamca 17-Jun-13 4:43am    
provide some details about code
NooobieCoder 17-Jun-13 4:45am    
this is my DAL
public DataSet GetShoppingCart(string userID)
{

SqlConnection conn;
StringBuilder sql;
SqlDataAdapter da;
DataSet PCData;

conn = dbConn.GetConnection();
PCData = new DataSet();
sql = new StringBuilder();
sql.AppendLine("SELECT * FROM BQ_ShoppingCart");
sql.AppendLine("WHERE userID = @userID");

try
{
conn.Open();
da = new SqlDataAdapter(sql.ToString(), conn);
da.SelectCommand.Parameters.AddWithValue("@userID", userID);
da.Fill(PCData);
}

catch (Exception ex)
{
errMsg = ex.Message;

}

finally
{
conn.Close();

}

return PCData;
}
NooobieCoder 17-Jun-13 4:45am    
and my BLL:
public DataSet GetShoppingCart(string userID)
{
BQ_DAL dlSc = new BQ_DAL();
return dlSc.GetShoppingCart(userID);
}
NooobieCoder 17-Jun-13 4:45am    
by right the method should appear right?

1 solution

Please check you put any namespace on your DLL, In that way you must the namespace on Object Datasource control.
 
Share this answer
 
Comments
NooobieCoder 17-Jun-13 22:06pm    
My DLL have no namespace, however my BLL have namespace

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900