architecture

Linq-to-SQL Design question!

What if you need to create POCO objects from a dbml file? Do you use a generator and who? You write the POCO's manually? Say you like to make your objects Persistent Ignorant and share to clients, then create a DAO pattern for the communication between Client - DAO - L2S Objects, this is a question for disconnected design using Linq 2 SQ...

How do I design View logic into c# projects

I have three c# projects in my solution. One is a console app that simply calls into a class library project. The class library project does all the processing for the application. Then there is a WinForm project that displays a form and then when a button is pressed, calls the same logic in the class library project. As a result, th...

Design for simple database for an event stream

For a personal project, I want to record a stream of unrelated events, to gather simple statistics on later. Each event can have [wildly] different data associated with it. I'm looking for some advice on how to structure this. As this is a small project, my main goals are: Ease of setup Ease of use (i.e. no strange joins) Performanc...

What to send back when deleting a dto from list

I have a service oriented architecture. The client holds a list of parent and child dtos that are bound to the front end. The service for this is a get that returns the full list of everything. When deleting is it better to: a. remove the object from the list on the front end on success of the service delete method (return bool for su...

What Is Utility Services ?

Hai, I need some information about Utility Services Layer. Can someone Please help me in getting information on that as I am supposed to give a presentation on Utility Services Layer. Thanks in advance... ...

Best Small & Mid-Size Application Arcitecture

I am Developing a mid-size application and want to implement Application Architecture, I've read some Architecture Books and Approach and think about AAFN (Application Arcitecture For .net) presented by Microsoft SOA SDLM SDO MVC and vice versa ... this is a web application that will extended with some other small application ( j...

Architectures - Domain Driven Design vs strict business logic enforcement

My business objects are coded with the following architecture: validation of any incoming data throws an exception in the setter if it doesn't fit business logic. property can not be corrupt/inconsistent state unless the existing default/null is invalid business objects can only be created by the business module via a static factory ...

Is there an MVC or other good framework from microsoft for windows forms?

Is there anything that helps provide structure for good separation of concerns in a thick client or smart client app like asp.net mvc does for web? ...

Architecture advice for hosted software?

Hello, I was wondering what advice, or what best-practices are currently being employed specifically for hosted software? EDIT: It appears I'm being extremely vague :P The type of structure i'm inquiring about is most demonstrated by 37signals. Thanks a mil! ...

Controller <-> Service component interaction

UPDATED: I have a desktop application, with the following components interacting: Winforms UI. Service (in-process C# class that contains business logic to actually do stuff). Controller (C# class that coordinates events raised by the UI and calls service methods). If a controller asks a service to do something, but that service nee...

Reusing validation attributes in custom ViewModels

Hi, When I started using xVal for client-side validation, I was only implementing action methods which used domain model objects as a viewmodel or embedded instances of those objects in the viewmodel. This approach works fine most of the time, but there are cases when the view needs to display and post back only a subset of the model'...

Does MSVC automatically optimize computation on dual core architecture?

Does MSVC automatically optimize computation on dual core architecture? void Func() { Computation1(); Computation2(); } If given the 2 computation with no relations in a function, does the visual studio compiler automatically optimize the computation and allocate them to different cores? ...

Java RAD components/architecture - advice for a .NET developer?

I am new to Java (but have a fair bit of .NET experience). I need to get a Java application up and running quickly, so what I am looking for here is advice on components that will simplify or reduce the pain of common tasks and whose payoff will either be immediate or at least come with minimal investment in time spent learning how to ...

how to Close a Class to accept only specific Typed Object

Hello Friends, I have this Class which is accepting a Dictionary<string,object> which is been invoked from different places in the code. Dictionary concept is making things untyped and difficult to figure out what to pass the class to function otherwise it throws run-time exception. As this Dictionary<string,object> is a contract defini...

How to share settings in SOA systems?

I have thinked of 3 alternatives: The settings are handed from one service to the next in each transaction. Each service can provide the settings to the next upon request. The settings are stored in a central service where that all services must access from time to time. What is your favorite approach and why? ...

Where do I store user's files?

I have a ASP.NET system that creates files (> 20 MB) for users and stores it currently on a folder in the web server. ...

Call stack memory architecture

Following my question yesterday, I tried to learn a bit more about the architecture of call stacks. Online and SO searches have not yielded the answer I'm looking for, which could be because I don't know precisely which keywords to use. Anyway, I'm sure someone here can help me... First, lets start with an excerpt from Wikipedia's entry...

Is there a normalized form for representing several objects from different tables?

For a system I am currently building, the following two scenarios occur: My permissions system is the perennial favorite of attaching permissions to roles, and roles to users, but with a twist: permissions may be applied to any asset at any tier, and there are 4 "Tiers", numbered 0 through 3. As such, the role assignment table is 5 fi...

MVP (Model View Presenter) or MVC (Model View Controller)

I already know the difference between MVP and MVC. Then also after going through the SRS of an application i get in a Fix which one need to be picked, applied and followed as Applcation Architecture. As per my understanding I would pick MVP where there is the chances of using the Same Business Logic, from more than 2 GUIs. Like for a app...

Flexible way to pass references in Objective-C (iPhone)?

What is a good way to get a reference to "singleton" objects in Objective-C? Note, specifically, I am not referring to the singleton pattern, I am referring to objects of which there are normally only one instance. This specifically applies to application models. For example, in a cooking app, I would like a class (RecipeModel) that can ...