Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 489
  • Last Modified:

how to create database layer in asp.net2.0

i am looking for a good examples of creating database layer in asp.net 2.0 with out using any wizards.
i need an example class where all the database related function are written
0
ziorrinfotech
Asked:
ziorrinfotech
3 Solutions
 
Ashutosh VyasFounder, InitQubeCommented:
0
 
DhaestCommented:
Microsoft route :
http://www.asp.net/learn/data-access/tutorial-01-cs.aspx

A simple dal (data acces layer)
See http://www.15seconds.com/issue/030317.htm for more information

Short:
Put all your sql into a new class fe:
public myClass
 public function InserVehicleData(FirstField as string, SecondField as string)
  ...
 end function

In your form you can do the following:

dim ClassToCall as new myClass
ClassToCall.InsertVehicleData("onetwothree","alfabetacharlie")
0
 
deepaknetCommented:
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now