FAQ Database Discussion Community


ImportError: cannot import name secure_dumps

web2py,data-access-layer,bottle
I'm trying to use a standalone version of web2py's DAL. I have looked at a couple other posts (here and the link referenced therein) but still haven't been able to solve the problem. What I have done is copied the gluon folder from the web2py directory into my diretory, and...

How to organize DAL in ASP.NET MVC [closed]

c#,asp.net-mvc,data-access-layer
I am trying to organize data access layer in asp.net mvc project. I've read a lot different articles about this, so still I have some questions in order to finish with this problem: Should I create instances of repository for every entity in database or for all or one genereal...

SettingsProvider class - should it be in DAL or BLL project?

c#,data-access-layer,bll
I have in my application layers: Web, DAL and BLL. Where should I place SettingsProvider class (to get values from web.config)? I think it should be inside DAL project. Am I right? public class SettingsProvider : ISettingsProvider { public string UploadImagesPath { get { return ConfigurationManager.AppSettings["UploadImagesPath"]; } } .............. }...

Using Typed DataSets through a Business Logic Layer, access the fields returned

c#,data-access-layer
I'm new to 3 tier architecture, I've setup a Data Access Layer using Adapters and I've setup Business Logic to access the Adapters, I can Add, Update, and retrieve data without and issue from code-behind. Now I'm trying to display a record returned from one of my methods and I...

Asynchronous Database Access Layer in PureMVC

sqlite,actionscript-3,model-view-controller,data-access-layer,puremvc
I'm trying to refactor an existing project into PureMVC. This is an Adobe AIR desktop app taking advantage of the SQLite library included with AIR and building upon it with a few other libraries: Paul Robertson's excellent async SQLRunner promise-as3 implementation of asynchronous promises I made my current implementation of...

How to return Linq query result from BLL layer to UI layer in C#

c#,asp.net,linq,data-access-layer,3-tier
I'm new to .NET framework. I am working on a 3 tier ASP.NET application that uses Linq to SQL for data access. I don't know how to return a Linq to SQL result to the UI layer. ON the BLL, I have a code like this: dataContex db = new...

What's the recommended way to load an object graph from Data Access Layer?

c#,architecture,domain-driven-design,data-access-layer,software-design
From a relatively old software architecture book: In other situations, the same conceptual Get-Orders query might generate different data—for example, a collection of Order objects plus order items information. What should you do? Should you expose two slightly different GetOrders methods out of your DAL? And what if, depending on...