Loading ...

Static & Non Static

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  architecture   » Static & Non Static

Static & Non Static

Posts under the topic: Static & Non Static

Posted: 10/10/2009

Lurker 57  points  Lurker
  • Joined on: 5/11/2009
  • Posts: 11

good morrning all,

 

in three layer architecture usually  we use

DTOs (Data transffer object)

BL    (Business logic layer)

DAL (Data access layer)

as we have seen that on page we call BL methods with their objects  and then DAL methods are called

From BL.

we can use this small diagrame 

Page---------------------------->BL(non staic methods)----------------------------------------->DAL(static methods)

Mostly in this architecture DAL class methods are built static.

BL class methods are just bulit nonstatic.

Is there any reason behind the scene.

Plaese explain with practical example.

Thanks .......................

 

 


Posted: 10/21/2009

Lurker 57  points  Lurker
  • Joined on: 5/11/2009
  • Posts: 11
  Answered

Hi Sir,,

in three layer architecture usually  we use

DTOs (Data transffer object)

BL    (Business logic layer)

DAL (Data access layer)

as we have seen that on page we call BL methods with their objects  and then DAL methods are called

From BL.

we can use this small diagrame 

Page---------------------------->BL(non staic methods)----------------------------------------->DAL(static methods)

Mostly in this architecture DAL class methods are built static.

BL class methods are just bulit nonstatic.

Is there any reason behind the scene.

Plaese explain with practical example.

Thanks .......................


Posted: 10/22/2009

Contributor 2255  points  Contributor
  • Joined on: 11/30/2008
  • Posts: 11

Hi Arun,

According to me, DAL methods are static because it doesnot operate on the state of any particular object, so it makes sense that DAL method should be static.

If you have any further issues then let me know


tags DAL, Static, Object

Posted: 10/28/2009

Starter 1414  points  Starter
  • Joined on: 12/1/2008
  • Posts: 66

Hi vinay,

 

Can you please explain it with example?

 

Thanks,

Sumit


tags static
Page 1 of 1 (4 items)