Questions tagged [data-access-layer]

Data access layer is a layer of a computer program which provides simplified access to data stored in persistent storage of some kind, such as an entity-relational database.

A data access layer (DAL) in computer software, is a layer of a computer program which provides simplified access to data stored in persistent storage of some kind, such as an entity-relational database.

For example, the DAL might return a reference to an object (in terms of object-oriented programming) complete with its attributes instead of a row of fields from a database table. This allows the client (or user) modules to be created with a higher level of abstraction. This kind of model could be implemented by creating a class of data access methods that directly reference a corresponding set of database stored procedures. Another implementation could potentially retrieve or write records to or from a file system. The DAL hides this complexity of the underlying data store from the external world.

For example, instead of using commands such as insert, delete, and update to access a specific table in a database, a class and a few stored procedures could be created in the database. The procedures would be called from a method inside the class, which would return an object containing the requested values. Or, the insert, delete and update commands could be executed within simple functions like registeruser or loginuser stored within the data access layer.

Also, business logic methods from an application can be mapped to the Data Access Layer. So, for example, instead of making a query into a database to fetch all users from several tables the application can call a single method from a DAL which abstracts those database calls.

1287 questions
-1
votes
1 answer

Singleton or SingleCall .Net Remoting

I know there are many questions on SO explaining many such comparison but I am in stuck into something else. I have a class DataAccess(configured to remote proxy) that executes DAL methods, for doing so it holds connectionstring. So far is good. Now…
Vinay Pandey
  • 8,589
  • 9
  • 36
  • 54
-1
votes
1 answer

Is this a good way to separate layers in an ASP.NET application?

I have developing an ASP.NET application to make error statistics in production. I started to make it into layers: presentation, business logic, data access I created a simple project to describe the question. The sample database is this: In my…
-1
votes
2 answers

Stored procedure executing but not able to access data in asp.net

I have a stored procedure that executes perfectly in SQL Server. However I am not able to access the rows that are return by it in asp.net from Data Access Layer My DataAccessLayer code is as follows: public List
vini
  • 4,657
  • 24
  • 82
  • 170
-2
votes
2 answers

Recommend a good DAL for a Python/Tornado app

I've been googling for hours and it just failed me. Are there any DAL/ORMs that support mysql/google app engine besides the one in web2py? I'm working on a tornado webapp and I need the abstraction badly.
OneOfOne
  • 95,033
  • 20
  • 184
  • 185
-2
votes
1 answer

GORM : crud operators in generic way

I try to make a Go DAL and for this i mainly used GORM. Now I tried to make my DAL as abstract as possible, in order to be able to query many tables. The problem is that i have to repeat myself for each table struct - reflections of my DB. Let's get…
jossefaz
  • 3,312
  • 4
  • 17
  • 40
-2
votes
1 answer

How to create a dynamic web api client in c#?

I developed an ASP.Net web api with about 80 different api calls. I would like to create a dynamic web api client, allowing the application code to remain simple and the "web api client layer" to be reusable (without the need of creating 80…
-2
votes
2 answers

Web Service for SQL server

Note: This question is not an Error in code question its a general question for information on Web-Service connecting to the database. I am new to development and I need to know why should you use web service to talk to live database? I created a…
Simple Code
  • 558
  • 9
  • 24
-2
votes
4 answers

Pass "this" object by reference in C#

I need to pass the this object by reference in C#. But as you know this is not possible. I have a multi-tier application. In a nutshell, the DAL is getting Data from a web service in JSON Format. The JSON data has to be converted in Business-Layer…
CodeLover
  • 11
  • 1
  • 11
-2
votes
2 answers

Business layer, presentation layer, Data layer

I went through and spent all my time on almost all links and sources about these topics: BUSINESS LAYER, PRESENTATION LAYER, DATA ACCESS LAYER. But still i don't understand it because different sources, different usage, it confuses me a lot. Now…
-3
votes
1 answer

Handeling passing of Sql connection used in multiple classes

I am using a Sql-connection to create a temporary table and perform DML operations on it. The temporary table act as a staging area, for preparation of data to be loaded into a data warehouse. I am using a using statement, to properly dispose of the…
Mads
  • 17
  • 1
  • 6
-3
votes
3 answers

Generic method that returns list

We are developing Data access framework library to be called by Business components to access SQLlite DB for Xamarin app. To execute SELECT Sql against DB, following method have been written. Am new to anonymous methods and using new features, so…
Sarav
  • 117
  • 1
  • 13
-4
votes
1 answer

solution architecture in c# where winforms and asp.mvc share business logic and Data access

I have a c# winforms solution which includes the below projects:- UI Layer BLL DataModel DAL Now, i want to create a asp.mvc UI within the same above solution, for the same application using MVC pattern. When i searched about mvc solution…
Jim
  • 23
  • 6
1 2 3
85
86