Subscribe: Architecture
Added By: Feedage Forager Feedage Grade B rated
Language: English
app  application  architecture  business  core  data  models  mvc  net core  net  new  order  project  repository  web 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Architecture


Discuss and debate ASP.NET application designs.

Last Build Date: Fri, 23 Jun 2017 17:13:42 -0700


Which Type of Architecture we need


Dear Friends,

I'm confused about my new application architecture so kindly suggest arch for below requirements.

  • I have to combine many different APIs into one APIs and make speed to call all APIs parallel and maintain speed to send consolidate data to customer.
  • In upcoming future new APIs will come to again we have to make kind of plugin and add to our Core system and work like same.
  • Problem is how to make core system to run all APIs in parallel mode.

guys as per above information this is plugin base but core system of this Arch how i build.



Which type of work flow web application and windows application do have?


Hi All,

I got a question in an interview with 4 options.

Question:- What type of work flow application have

1. Down to up

2. Up to down

3. Pipeline

4. Water fall

I put the answer pipeline.

Am I right? I guess no.

What is the right answer?

Image Downloads and .NET Functions to Use


We have a web server/file server which sends 1GB worth of 3000+ (in number) .PNG files from a web interface over the internet to another server at a different physical location.  This is further amplified by the fact that the set of files now to be sent to 15,000 such locations sometimes at the same time. Bandwidth at the receiving end is also an issue. 

How can I make sure I get 100% success in sending these images?

Would 'PushStreamContent' be my best bet to use in this case?, can I take advantage of BITS through .NET since all of our servers are Windows based, would this be a better solution than PushStreamContent? 

Thank you in advance.

Download attachments from outlook


Need to download attachments from outlook through code.

Mails are on cloud server.

OOP Confusion


say I have an object Client in the business layer. Then I have ClientRepository with Retrieve and Save methods.
Finally, I have another data layer project in the same solution whereas for now I store connection object.
My question is the following:
Where I open the connection and create command and everything? In each of the ClientRepository methods OR I create an additional kinda DA helper so then i only assign the SP name in the method and get the data?

How to use Repository Pattern in MVC with View specific Models?


I'm trying to implement the repository and unit of work patterns in an existing MVC project. I already have classes which I use to create different models specific to particular Views. These classes communitcate to the database using Entity Framework, and a using() block to call Dispose.

I've seen many many examples of using Repo/UoW patterns directly in Controllers.  But I have custom View specific Models (which I manage with classes like SalesOrderViewModelManager) in many cases which help select and populate models for the Views. I don't know how to manage view specific models like this or if this is a normal thing to do, as I'm kind of new to alot these frameworks and patterns.

What I am trying to figure out is where now and to implement the Repo/UoW patterns. A ViewModelManager will have a method like:

public SalesAgreementVM GetAgreement(int CustomerId, int OrderId)

This and all other methods communitcate with the database via Entity Framework with a using() block in the method itself.

I don't implement all CRUD, in fact, this app pretty much only reads from the DB.  But now that must change, as it needs to update the DB entities now.

When I recieve a POST from a user wanting to edit the data, I'm using the controller to do model binding back into the View specific Model that I used to create the view the client browser uses to edit the data.  But this model does not match any specific repo, as it was designed for the View.

My instincts are telling me I need some sort of layer between my View specific models and my Repos to implement CRUD operations. But I just don't know much about this.  I learn fast, but I'm still very junior.

Xamarin mobile app and ASP.Net Core backend architecture



 I was approached by a customer who wants to develop a mobile app for iOS and Android.

The goal of the app is to allow the localization of commercial partners offering services. Each provider must describe the proposed services (photos, description, prices) and may also offer promotions. The end user will be able to consult the list of providers and it's services, book a service and then rate the provider.

In a first time, the customer would like a first version that is close to a POC: the app must be stable and include all the expected features.

As my customer knows Xamarin, and as I have already used it on small projects, I think that Xamarin.Forms is a good choice for the first version of this app.

But for backend, it's not as clear for my customer: he does not really know what he needs...

I have identified 3 needs:

  • the APIs that will be used by the mobile app
  • a "backoffice" that will be used by my customer's company, to manage the providers
  • a "middleoffice" that will be used by the providers, to manage their offers, and receive the users bookings

My client would have a preference for a Symfony / Angular architecture, as he has already used this on other projects. For my part, I would rather use a full .Net architecture: Xamarin + ASP.Net Core + Azure.

What do you think? Are there any plugins or frameworks that I could use for such a project? (like Serinity)

How to inhert from multiple place..I know .net wont support multiple inheritace...but is there any way around


Lets say I have below class

public class CallMe


public int PhoneNumber {get;set;}


public class MailMe


public string Email {get;set;}



I want to create a class with has all the properites of Callme and MailMe


public class Communicate :Callme,MailMe


public string Name {get;set;}


I dont want CallMe and MailMe as property for Communicate...

How to do this

Clarity on separation of code in MVC


Have a question that is in regard to where things should go for the term 'best practice'.

The project is all form creation with different instances being routed to that person own area within their department.

Currently there is the AccountController and the SAMLController for the login/SSO

FormsController that has the first form that has been created so far with post and get methods and also about 10 or more Jsonresult action methods that will be used with the other additional forms that will be added. 

Questions about the FormsController/Controllers

Should the Jsonresult action methods be in their own controller?

The forms that will be created are under category like General, Engineering, IT and HR.   There should be a controller for each form category HRController ? 

Questions about the LINQ TO SQL in the controller

Should the LINQ TO SQL be taken out of the FormControllers ...each form will be in different table so I think the post and get are  good to stay in there Category controller would whomever agree?

Thank you, SB

Patterns in mvc


Could someone suggest the best way to break up, aside from MVC doing this already , the data LINQ TO SQL queries to return results to the controller. 

Choosing between MVC 5 and .NET Core for new project


I have been assigned to work on a new and large project. I am well versed with MVC 5 with other projects. I am trying to make a decision to choose between MVC5 or .NET Core for development. Given that I have a strict time constraint plus have to go through a learning curve with .NET Core, which route should I take.

Thanks in advance.

Blend Umbraco (or other CMS) with custom MVC site


We have built an extensive custom MVC ecommerce site with all the usual aspects you'd expect - categories, products, basket checkout etc.

Within the site we want to create a whole range of informational content and ideally are looking at using a CMS to do this so non tech users can author the content. On the site though this content needs to be accessible from within our current design / navigation so the site looks consistent throughout.

We have some experience of Umbraco as a stand alone CMS / site.

I've had a bit of a google around but can't really find anything about integrating so closely (although I am probably not looking for the right thing) - where do we start? Anyone else done the same sort of thing or know of any decent tutorials, or are we best to roll our own CMS for this purpose?


IIS app hosting under 4.6 can you avoid Kestrel?


So Im getting my arms around all the changes with .NET core and one thing that struck me is the new architecture dealing with app pools.  

After reading these two articles, Im wondering if we are being forced down this path of having our app code hosted in Kestrel and dealing with the IIS-Kestrel interactions?

For the most part, our team will never need to host on anything other than Windows and will often need enough other libraries / services etc such as Windows Workflow, that the full framework is needed.  

Can I target the newer framework with an MVC application and still host my app with an application pool targeting the latest framework, and simply avoid Kestrel?  

Our team is perfectly happy with MVC5  and the 4.5x framework configured App pools.  Can we target 4.6x and avoid Kestrel ?  

ASP.NET Core API/MVC solution architecture for Real-World application


I know architecture questions are mostly opinion based, but I would appreciate it if you guys can glance over the structure of my project and let me know any downsides.

The web api for the application. This application references all 3 class libraries (Core, Business, Data). The StartUp.cs file will specify the TestProjectDbContext and also configure dependency injection services: ICustomerRepository, CustomerRepository - ICustomerManager, CustomerManager. This is so we can inject these into the Api controllers at run time.

This class library contains no references. It contains the Domain Models, i.e. Customer.cs. Additionally, all of the interfaces for the Repositories (Data) and Manager (Business) classes, i.e. ICustomerManager, ICustomerRepository.

This class library contains a bunch of classes with the suffix Manager. For example CustomerManager. The plan is to have this project never call the Data layer or know anything about it. Each one of the classes in here will contain all of the complex business logic. The plan is for the Api to make calls to the repository to get the params needed to call the business functions. For example, _orderRepository.GetOrderById(id), then call _orderManager.CalculateOrderTotal(order). This class library will only reference the Core project so it knows about the Domain Models and can implement the Interfaces.

This class library will have entity framework installed and will contain TestProjDbContext and a folder with all of the repositories. For example: CustomerRepository, OrderRepository, etc... It will also contain the ef Migrations folder. This class library will only reference the Core project so it knows about the Domain Models and can implement the Interfaces.

Here is a different view of it:


I would like some thoughts/opinions on this architecture. The goal here is to make it so Testing will be easy and if another application were to try and hook into this it will be easy. I believe there is a benefit to having all of the Interfaces and Models in the Core project rather than the Business interfaces in the business layer and the Repository interfaces in the data layer.

develop angular app with VS2015



i am very new to angular, currently i am using angular cli , i want to use VS2015 to develop angular project, how can i create angular apps with VS2015

Security on Angular/WebApi with OAuth backend services



How to segment an existing WebForms application



I have a WebForms application running ASP.NET 4.5 on IIS 10, everything is set up as a single IIS website. The application consists of three "parts" that unforutnately were designed as a monolithic project (one application, i.e. one main dll with some class libraries). The challenge now is I'd like to migrate to some new, cool technologies like MVC, node, React.JS, maybe with ASP.NET Core. However the problem is that I don't want to write entire application from scratch, it would take too much time. I'd like to do this partially, one part (app section) at a time. IIS doesn't allow to put a new application inside an already existing application. Also if I used ASP.NET Core, I can't run it with a website that also hosts WebForms application.

It seems to me that the only solution is moving part of the application to a subdomain (and thus a separate website in IIS) or using reverse proxy (e.g. Application Request Routing in IIS) which looks rather ugly in terms of design and overhead but would allow to preserve URLs "inside" the old Web Forms app. Maybe there are some other solutions? What do you think would be the best approach here?

Once again, the goal is to be able to "upgrade" part of Web Forms application to something more fancy than Web Forms, and to avoid having to move it to a separate subdomain. Can .NET apps coexist in any way in this setup?

Many thanks for all your insights!

Difference between class method and static method, when to use which?


What is the main difference between class method and class static method, does it have impact on performance when to use it?

layred application mvc sales order and linq to entity



i'm beginner in repository and layerd application. and  i don't inderstand well which is the interaction and the relationship between the repositories and business layer classes.

 I have a confusion between both them

Here is an example for purchaese order in 3 layers and I want to review whether correct or not, and your correction

for DataAcesslayer

repository OrderRepositolry

Namespece Dal
       Public class RepositoryOrder
              POrderContext context = new POrderContext ();
              Public IEnumrebale  GetAll ()
// Following code

for the item of order repositories code :

namespece Dal
      public class RepositoryOrderItem
             POrderContext context = new POrderContext();

             public IEnumrebale GetAllItemById(Order o)
                  context.OrderItems.where(i => i.OrderId == o.Id);

            public OrderItem GetItemById(int id)
//Following code

for businessLayer here is classOrderBLL code:

namespace BLL
      public class OrderBLL
            RepositoryOrder repoOrder = new RepositoryOrder();
            RepositoryOrderItem repoItem = new  RepositoryOrderItem();

            public IList GetAll()
               return repoOrder.GetAll();

            public decimal GetPrixTotal(Order order)
                var query = from item in repoItem.GetAllItemById(order)
                                 select sum(item=>item.Prix * item.Quantite);
                return query;
  1. does the total price calculation is done at the level of repository or at the level of BLL (we can make this request linq with context in the repository)?

  2. CRUD method is done at repository and they are called at BLL from repository is it right?

  3. The where extension method or the where clause in the linq to entity query matches the business rule (will be implemented at BLL) or corresponds to the read data acess (at the repository level).

Any help, advice and good practice will be welcome

have a good day

Best layer to handle exceptions, convertions and custom errors in three tire architecture in three tire application?


My architecture design:

Front end(UI): Web-services, web-forms, jQuery.

BLL: Business logic.

DAL: Accessing database.

I have classes for each table in database.

Q1. I am using date format  that is different from database. Should I handle this in BLL or UI(Web-service or jQuery)?

Q2. I have unique key for my mail-id column. If user tries to insert/update I will check for unique. I not unique I want to say user to enter unique. Now I access DAL for unique from BLL and call DAL for update/insert according to result. Now should I handle this custom errors in BLL and send error message to jQuery in JSON string or in UI(Web-service or jQuery)?

Q3. When exceptions occurs I am just throwing and handling them in jQuery error section. Is this right or should I handle them in BLL and send error messages in form of JSON string to jQuery?

I consider doing all these stuff in BLL because it is where we will have all the converting logic's like readers into objects. Am I wrong?