2
votes
0answers
85 views

Do Repository, Data Mapper and Data Access Object work independently or collaboratively?

In my opinion, A repository acts like a collection object which returns or operates a list of domain objects according to a criteria input. A data mapper acts as a middle layer between database and ...
0
votes
1answer
141 views

Implementing DAL and BOL

I'm Using MVC 3 and I'm having trouble using Entity Framework so I'm trying to understand what would be the best approach to implement my own DAL. I manage several main entities in my system: User, ...
1
vote
1answer
146 views

Implement data access layer abstraction

This may be a textbook question, but I'm considering how to design some classes that abstract the database connection away from a RESTful service that receives query results. My thoughts are that to ...
0
votes
2answers
206 views

Data Access Layer design : Different providers same tables and singleton

I need to build a Data Access Library to be used from many small applications afterwards. It will heavily use the DataReader objects. The tables may exist with same structure either in SQL Servers or ...
1
vote
2answers
305 views

best practices for “data layer” in android client apps

Here is one design/ best practices question.. I'm new to android development, and basically new to web/mobile solutions. So, my question is - what are best practices when organizing structure of ...
3
votes
2answers
239 views

Should my DAL return Person or Datatable?

After reading this , I still have a question : I use this code to query the db : c# : new BLL().GetPersonById(1) BLL : public Person GetPersonById(int id) { return new DAL ...
3
votes
1answer
485 views

How to implement Data Mapper / Repository persistence patterns for diverse data sources?

I am writing a new website project pretty much from scratch. The project is in C# but my background is in PHP (the pseudo-code below is a bit if a mixture, trying to be both succinct and declarative). ...
0
votes
2answers
167 views

Separate data from UI layer?

I want to completely separate data layer from the UI Layer. Here is my example, I have some customers that require different data for the same report and I don't wan the UI to touch the Data Layer, ...
2
votes
1answer
160 views

Data Access Pattern Like Repository but Not Completely

I'm working on a project with a system that holds data and I'm thinking about using a data access approach to get data to hand it off to my components on the presentation side of things. I'm thinking ...
2
votes
4answers
808 views

Should Business Logic Layer access the DB/Data Access Layer?

I'm a bit confused about the relationship a BLL and DAL has. Should the BLL encapsulate the DAL via dependancy injection? Or should the BLL only act on domain objects and the DAL save/update ...
2
votes
2answers
338 views

Repository Pattern Design for a ASP MVC app

This is more of a design concern. Im building an app and i have created my Repository Pattern Structure as following : My Core name space is the DAL/Repository/BusinessLogic layers assembly. By the ...
1
vote
1answer
190 views

Complex Search with Data Access Layer

I have entities like this. I made them simplier for this sample: public class City { public int Id { get; set; } public string Name { get; set; } } public class Street { public int Id { ...
3
votes
2answers
2k views

PHP Data Access Object

I'm trying to figure out if I'm using the DAO pattern correctly and, more specifically, how abstract db persistence should be by the time it gets to my mapper classes. I'm using PDO as the data-access ...
0
votes
0answers
112 views

Implementing EF in ASP.NET Web Forms [closed]

Let me see if I can elaborate well my doubts. My team got involved in this project to evolve one of our main applications. As the application is obsolete from our point of view, we decided to move on ...
2
votes
2answers
526 views

Correct approach on implementing abstract factory pattern?

I am about to build a data access layer the good old ado.net way. Traditionally I would have built the dal according to a simple repository pattern. But this time I wanna give the Abstract Factory ...

1 2 3 4
15 30 50 per page