Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have program 3 tier (in 3 folders DAL,BLL,UI)
http://bayanbox.ir/id/5085234522641486493?view
in DAL definition Project Class Library and in project definition .edmx file (Entity Framework)
and created folder for Entites (definition class entites in folder).
how definition type return method in classes for show data in other layers (for pass content in BLL layer) but with use Stored Procedure
this is my code
C#
<pre lang="c#">
private UniversityEntities DB = new UniversityEntities();

public void SelectAll()
{
   DB.SPShow();
}


SPShow is name my stored procedure for show data
and in BLL folder definition project class library. after add reference DAL and name space
create class for entites.
and this is my code in class
C#
<pre lang="c#">
public void SelectAll()
{
     Student objDAL = new Student();
     objDAL.SelectAll();
}
</pre>

but when call this is method (in UI layer) for display data in grid view i CAN'T
because i think doing is wrong about definition type return.
1- Please Help me .how definition return type in DAL Layer for call in BLL and UI which i can use SP?

2- and how definition method (with use Stored Procedure) which if result was true .content 1 return ?(with code in Application is better or in SQL Server)
Posted
Updated 23-Sep-13 9:13am
v6
Comments
[no name] 23-Sep-13 8:05am    
Not at all clear
Nekoomanesh 23-Sep-13 8:24am    
my project is now starting and my problem is start (just definition type return)
Excuse me for i can't write english good
[no name] 23-Sep-13 8:06am    
put your code in complete
CodeBlack 24-Sep-13 3:43am    
Go to your DAL method SelectAll() and what does it display on mouse hover of SPShow() ?

In short what is the return type of SPShow ?

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