n-tier-architecture

No results yet no error with N-Tier Entity Framework

梦想与她 提交于 2019-12-25 05:22:20
问题 I have created a demo project using the N-Tier Entity Framework VS2012. the problem is that there are no results returned no mather what i request. No Errors are thrown of detected? Any suggestions here are welcome? 回答1: Make sure to call the AsQueriable() method for requesting data from the backend. N-Tier Entity Framework supports both, local and remote queries. While e.g. context.Orders.ToList() only returns what’s already in client memory, you can call context.Orders. AsQueriable()

No results yet no error with N-Tier Entity Framework

我怕爱的太早我们不能终老 提交于 2019-12-25 05:22:02
问题 I have created a demo project using the N-Tier Entity Framework VS2012. the problem is that there are no results returned no mather what i request. No Errors are thrown of detected? Any suggestions here are welcome? 回答1: Make sure to call the AsQueriable() method for requesting data from the backend. N-Tier Entity Framework supports both, local and remote queries. While e.g. context.Orders.ToList() only returns what’s already in client memory, you can call context.Orders. AsQueriable()

Ninject in a three tier application

风格不统一 提交于 2019-12-25 02:57:49
问题 I am building a standard three tier app. 1 Console app for front end 2 Business logic layer 3 Data layer The main purpose is to display some customer data from a database table. I'm trying to follow the guide lines in the book "Dependency Injection in .NET" by having no reference from the console to the data layer, and none from the business layer to the data layer. Allowing for easy swapping of the front end and the data layers if needed. Let's say I have a service at the business layer

EF5 update disconnected graph (n-tier) one-to-many

旧街凉风 提交于 2019-12-24 15:52:31
问题 Problem: insert / update entity related to a parent with a one-to-many relationship in a disconnected graph scenario . UPDATE I found that the problem is just with new UserProfile I add to Brewery, the first insert is done successfully (= EF sees the relationship and creates the correct insert statement) exec sp_executesql N'insert [dbo].[BreweryUserProfiles]([BreweryId], [UserId]) values (@0, @1) ',N'@0 int,@1 int',@0=12,@1=3 No way till now to have the update working. --- The parent entity

Should the connectionstring come from the mvc project or the data project?

荒凉一梦 提交于 2019-12-24 12:16:31
问题 When using a separate project to handle db operations in an mvc project, should I store the connectionstring in the dbproject (using app.config) or should I keep the connectionstring in the web.config of the mvc project, and inject it into the repository (provided by the dbproject) when instantiating it? 回答1: The config is always read from the outermost app. The web.config is where your connectionstring should be. You can read it from your db project just as if it were the main project. You

Rebuild N-tier app into Service-Oriented Architecture (SOA)?

旧街凉风 提交于 2019-12-24 02:08:07
问题 Considering the regular characteristics of an n-tier app with layers like: presentation, business, data access; how is this normally rebuilt to make a Service-Oriented Architecture ( SOA )? Seeking high level overview from programmers experienced in this exercise. To a degree I picture it conceptually flattening out rather than having one vertical stack. Or as a series of horizontal modules each encapsulating their own mini n-tier stack. With heavier protocols in between for messaging. 回答1:

Sorting on database server or application server in n-tier architecture [closed]

心已入冬 提交于 2019-12-23 05:52:47
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . Suppose I am developing an application with a single database server and multiple application servers, where it is cheap and easy to add application servers but difficult to scale the database. Suppose I want to retrieve some information from the database that needs to be

Sorting on database server or application server in n-tier architecture [closed]

三世轮回 提交于 2019-12-23 05:52:05
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . Suppose I am developing an application with a single database server and multiple application servers, where it is cheap and easy to add application servers but difficult to scale the database. Suppose I want to retrieve some information from the database that needs to be

why do we require interfaces between UI,Business and Data access in C#

ⅰ亾dé卋堺 提交于 2019-12-23 02:52:59
问题 I saw in many places whenc# programmers uses 3-tire architecture, they tend to use interfaces between each layer. for example, if the solution is like SampleUI Sample.Business.Interface Sample.Business Sample.DataAccess.Interface Sample.DataAccess Here UI calls the business layer through the interface and business calls the data access in the same fashion. If this approach is to reduce the dependency between the layers, it's already in place with class library without additional use of the

What to put in Business Logic Layer? [closed]

天涯浪子 提交于 2019-12-23 01:58:09
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I have read lots of articles and they seem to vary from one author/developer to the next. In my situation, I am thinking about this setup for testing a project: Presentation Layer via ASP.NET MVC Service Layer (my plan is ASP.NET MVC Web API; this is on separate assembly) Business