As I have been learning about software development the last 2 years the more I learn, it seems the more gray areas I am running into. One gray area I have issues with right now is trying to decide how many layers an application should have. For example, in a WPF MVVM application what fashion of layering is ok? Is the following too sep...
Hello there, I am making a small report application for my company as specified in title. I am not experienced in n-tier application design, but I tried it. there are 3 tiers:
(Database) -> WCF data service -> Business Rules (client side) -> WPF UI
WCF data service: (data access objects, and data services)
The two above are at the sa...
We're about to set off our first larger WCF project, and we're having some concerns on how to layer our application correctly and where all the patterns go.
The services will primarily be consumed by applications on the Intranet, and secondly by customers over the Internet.
Our idea was to layer the application this way, inspired by DD...
I have a background process that i want to regularly maintain the state of gps location. I am not clear on how to invoke a delegate on the main thread in the ui layer when the threaded method is in another class. Here is sample code. My form launches the thread on load:
public partial class MainScreen : Form
{
.
. // form st...
I'm working with Ninject 2.0.2
Ninject.Extensions.Interception
with DynamicProxy2
Castle.Core
Castle.DynamicProxy2
The injection worked fine.
Then I inserted the wcf between controller and bl layers.
For interaction between the layers I've used the
Ninject.Extensions.Interception of Ian Davis.
I've used the DynamicProxy2 for creatin...
I'm just getting into how to write a good architecture of a good software
system, and I'm learning how to separate high level components into Layers.
In this case, I'm trying to use Tiers, so as to model each Layer as a black
box.
There are 4 tiers in my architecture: Presentation, Application Services,
Business Logic, and Domain/Persis...
Hi everyone
I'm working in a three tier asp.net/CSharp application and I'm having issues implementing the entity CRUD operations.
I'm using a custom reflection-based ORM for my data layer which maps table records from my database to the respective properties in the corresponding entity classes. My business layer currently is rather thi...
I'm starting new project with EF 3.5 (Visual Studio 2008 SP1, .NET Framework 3.5 SP1) It's N-Tier application, one important aspect of this project is return collection of datums which I prefer to use IEnumerable. I also use EntityBag in this project and I found some problem.
I can return collection from AppServer but I can't track any...
I'm trying to adopt Fluent NHibernate with my project, currently I can get data from database, when I'm at application server, data is include its PK but when I return this data (as List) to client all of its PK is loose.
How can I fixed this problem?
Update
My POCO class is below: PKs are CountryCd and CityCd
public class coCity
{
...
I did this code in my presentation layer but i don't know how to do it on 3 tier . .
Please help, i'm stack with this problem.
form1_Load()
{
cboStatus();
GetlistView();
}
region "FILL combo"
public void cboStatus()
{
try
{
SqlConnection conn = new SqlConnection(connStr);
SqlCommand sqlcom...
I've inherited a large asp.net website that relies heavily on session information.
There is a back-end system that feeds it necessary information as needed through web services, but the application itself has no database, and everything is kept in session through a bunch of Data Objects which are accessed directly throughout the entire...
Can the domain model and the repositories be in separate dlls?
In a 3 tier architecture I guess I would put the domain model in the business layer
and the repositories in the data access layer.
I get confused as it is my understanding that the domain model uses the repositories while the repositories should return objects from the doma...
I am looking at writing a WinForms app and getting stumped over what seems to be simple issue.
There is a server and database (SQL Server) Open ports are HTTP, HTTPS
There is a WinForms client. It needs to connect a TCP/IP stream (possibly HTTP, SOAP, REST) to the server.
Sometimes the WinForms client goes off-line and then the WinFor...
At my company we are currently using the classic n-tier architecture using NHibernate as our persistence layer with fat objects. Seeing many issues with this pattern, such as full hydration of the object graph when entities are retrieved from the database we have been looking in to other alternatives.
In this process we have moved to a...
In wiki, it says:
Java Platform, Enterprise Edition [...] to deploy [...] distributed, multi-tier Java software, based largely on modular components running on an application server.
As far as i know, distributed means "multiple computers" which is equal to "multiple servers", so why it says in the end "running on an application server...
While I know there are many ways of doing this, I'm just wondering if this is way off base.
I have a solution that has three DLL's, UI (asp.net web application), Business layer, and DAL. So my code mainly looks like this (very raw example code):
UI
protected void Page_Load(object sender, EventArgs e)
{
Beanpole.Business.Project...
Sorry for the very involved question, but this is something I've been researching for a while now and it is really frustrating me. I feel like in today's age we have a million and one ways to implement services tat are cross-platform (SOAP) and easy to build (thanks to .NET, java, and other frameworks). However, these technologies have...
I have a few lookup tables that I am in the process of plumbing through my app. These are tables that drive dropdowns on the website. They have no business logic, but they need to get from the database to the UI while following the architecture of the app.
The current architecture has a Data Layer, Business Layer, and Presentation Lay...
Assuming a "standard" 3-tier application (UI - Domain - Data), should the Domain Layer show to the UI classes originally defined in the Data Layer?
I mean, assuming there's a Product class defined in the Data Layer, is it wrong to make some method from my Domain Layer have methods returning it (this is, making them visible to the UI)? O...
How would one implement lazy loading in the context of three tiers? I understand the basic architecture of Presentation Layer, Business Layer, and Data Layer:
You have your basic "dumb" classes that are nearly mirror images of the tables in the database with one exception. Instead of foreign key IDs you have a reference to the actual ...