Questions tagged [3-tier]

For issues relating to setting up and utilizing a 3-tier architecture.

3-tier is a software architecture in which the presentation layer, business access layer and data access layer are developed and maintained as independent modules, sometimes on separate platforms.

370 questions
1
vote
2 answers

how to CRUD operation in gridview using 3 tier

I am using n tier architecture Here is my aspx.cs code using System; using System.Web.UI; using BAL; using System.Web.UI.WebControls; namespace GridViewThreeTierApplication { public partial class index : System.Web.UI.Page { …
Khalil
  • 1,047
  • 4
  • 17
  • 34
1
vote
0 answers

how to use signalr in isolated app server?

I have a 3-tier application: 1. web servers: publicly available, serves web pages and hosts logic 2. app servers: accessible only from web servers, running long running processes processes 3. database servers: accessible only from web and app…
1
vote
1 answer

What dataclasses should I create in a 3-tier project?

I have a relatively small project and I'm using a 3 tier architecture. Now I'm thinking about on how to split up some of the functions in different data classes. For example I have a User class and a Group class. My User class has a User.GetGroups…
1
vote
1 answer

why is my sign up function not working in ASP.NET?

Working on the 3-tier architecture in C# ASP.net Initially i retrieve all the asp.net attributes from the c-sharp page. protected void Register_Click(object sender, EventArgs e) { String fname = this.firstname.Text; String lname…
thebeast
  • 108
  • 1
  • 11
1
vote
3 answers

Does anyone use plain old 3 tier architecture?

So I've been learning about architectural styles and patterns. From what I can see, when it comes to 3-tier architecture, most people are using a pattern (such as MVC for example). But my question is, does anyone just use a plain old 3-tiered,…
1
vote
1 answer

How to encapsulate business logic on business entities?

On a 3 tier application, I am using my business entities to generate the dbSets on my dbContext. On business layer: public class User { string name {get;set;} } On the data layer: public context:DbContext { public DbSet Users…
RSinohara
  • 650
  • 1
  • 4
  • 25
1
vote
2 answers

Check user Login using Repository pattern c#

I'm new at design patterns and I'm trying to make some example using repository pattern (Maybe I'll ask some stupid question using stupid example and if it's so please tell me). I have this repository in my BusinessLogicLayer: public interface…
gsiradze
  • 4,583
  • 15
  • 64
  • 111
1
vote
1 answer

Dropdownlist DataSource to Value Object

My application is built with three-tier architecture. However, I want the dropdownlists to data source to the Value Object class. Currently I am data sourcing the dropdownlists from Data Access Layer -> Business Logic Layer -> Presentation Layer.…
Jeano Ermitaño
  • 169
  • 3
  • 17
1
vote
1 answer

MVC 5 (IdentityUser) and 3-tier architecture?

I have a question about 3-tier architecture: what should I do with IdentityUser in MVC 5 context? I'll create DAL, BL, UI (MVC). Should I implement user part (registration, authorization, authentication, roles) on the UI? Or it should be another…
Alexander
  • 691
  • 1
  • 11
  • 29
1
vote
2 answers

Organizing service of BusinessLayer

currently trying to think of a strategy for implementing services in the business layer. My first approach was to implement a service functionality per class, but the number of functionalities will eventually grow and become hard to call from…
Digy
  • 15
  • 4
1
vote
2 answers

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

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 dataContex; var…
Chibuzo
  • 6,112
  • 3
  • 29
  • 51
1
vote
1 answer

Separating Data-Access Code Into a Distinct Tier

I am trying to separate this functionality into a traditional 3-tier pattern but having some difficulties. Data access is not something I've worked with a lot, and I would like some guidance. I started with code from this blog, and what I've done so…
Risho
  • 2,561
  • 5
  • 31
  • 56
1
vote
4 answers

3-Tier architecture-layering and the term-mishmash

I am confused about the different possibilities to express a 3-Tier architecture. Data-Access-Layer Business-Layer Presentation Layer (User Interface) or Database (aka Backend) Business-Layer Presentation Layer (User Interface) Why can you skip…
Rookian
  • 19,841
  • 28
  • 110
  • 180
1
vote
1 answer

Seeking advice: overview/detail representation of models

I have a problem that bothers me for quite some time, and I also came up with a solution, the question here is rather on how to best implement it, so I'm seeking advice from you if you've ever dealt with that situation before (it's hard to find…
Peter Walser
  • 15,208
  • 4
  • 51
  • 78
1
vote
1 answer

Possibility to add database in sqlCacheDependency collection without web.config

Situation is like this: I have two projects. One Asp.net and one project which does all data related stuff with database. I keep my connectionstring in a seperate encrypted XML file. Now instead of requesting all data constantly from sql. I want to…
Youszef
  • 43
  • 1
  • 5