Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I practical exam in any asp.net interview
what should i prefer
means should i use Entity framework,linq to sql .....etc
should i do with 3 tier
or should i use direct querys storeproc??
which architecture should i follow

i am 2 years exp
Posted

Depends on the size of the project you are building and the time you have to build it.
If its a small application and you only have a few days to build it, don't worry too much about about 3 tier.
 
Share this answer
 
v2
Comments
Member-515487 6-Apr-14 5:53am    
what will be your choice
if in machine test you have to do insert update delete with show result and with 2 table combine out put
you hv to do validtn and css also
time is 1 hr
Every approach has its own advantages and disadvantages. You need to decide the one, in which you are comfortable.
 
Share this answer
 
Comments
Member-515487 6-Apr-14 5:48am    
Linq to sql or any entitifrmwrk internally uses class as we do in bussiness entity right ??(or follws opps concepts right?)
one interviewer say no
Did you research on that?
Member-515487 9-Apr-14 3:46am    
no
Please do then. :)
As abhinav mentioned it all depends on size and time constraints of the project. But imagine you have to reuse the database calls in several places keep the linqtosql or ef in seperate tier. Similarly if you prefer simplicity use linqtosql over EF.

If you think even business logic is reused in different places extract them to another tier. This is how your tiered architrchture evolves. It all depends on your requirements.

If you do not extract them in seperate tiers it will be difficult to implement the changes. Imagine the same code is repeated in several places, it is difficult to tract them to apply the changes repetitively all over.
 
Share this answer
 

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