ABP Application Layer-Application service (application services)Click here to go to the ABP series articles General CatalogueDDD-based Modern ASP.--ABP Series 15, ABP Application Layer-Application service (application services)The ABP is "ASP. Boilerplate Project (ASP. NET T
ABP Domain Layer-working Unit (unit of work)Click here to go to the ABP series articles General CatalogueDDD-based Modern ASP.--ABP Series 12, ABP domain layer-working Unit (unit of work)The ABP is "ASP. Boilerplate Project (ASP. NET Template project) "for short.ABP's offici
1.1 ABP General Introduction- Introduction
ABP is "asp.net boilerplate Project" (ASP. NET boilerplate project) ".
asp.net boilerplate is a new starting point for developing modern web applications with best practices and popular technology, designed to be a common Web application infrastructure and project template.
asp.net boilerplate the concept of a classical layered architecture based on DDD, which re
Document DirectoryThe content of this section:
Brief introduction
Enable error handling
Non-AJAX requests
Show exceptions
Userfriendlyexception
Error model
AJAX Requests
Exception events
Brief introduction
This approach is for ASP. NET MVC and Web APIs, if you are interested in ASP. ASP. NET core documentation.
In a Web application, exceptions are usually handled in the action of the MVC controller or the Web API controller
Transferred from: http://www.cnblogs.com/zd1994/p/7689164.htmlFor the regular use, for referenceFirst, AJAXThe way 1,ABP is usedThe ASP. NET boilerplate automatically executes some of these steps by wrapping the Ajax callback with the Abp.ajax function. An example of an Ajax call:var Newperson = { name: ' Dougles Adams ', age:42};abp.ajax ({ URL: '/people/saveperson ', data: Json.stringify (Newperson)}). Done (the function (data) { abp.
I. Explain the application service layer
Application services are used to expose domain (business) logic to the presentation layer. The presentation layer invokes the application service by passing in the DTO (data transfer object) parameter, and the application service executes the appropriate business logic through the domain object and returns the DTO to the presentation layer. Therefore, the presentation layer and the domain layer will be completely separated.Here are some things to keep in
ABP Application Layer-audit logClick here to go to the ABP series articles General CatalogueDDD-based Modern ASP.--ABP series 19, ABP Application Layer-audit logThe ABP is "ASP. Boilerplate Project (ASP. NET Template project) "for short.ABP's official website : http://www.as
After the introduction of the last translated ABP Vnext, many of the ABP good lovers were attracted attention.Then take the strike and try the new ABP.I am most interested in the new ABP is its template system, so this time using the module system to do a message board example, share to everyone.Message Board ModuleOur Message board module function is very simple
ASP. NET Core
Introduced
migrating to ASP.
Launch template
Configuration
Start class
Module configuration
Controller
Application services as a controller
Filter filters
Authorization Filter
Audit Action Filter
Check Filter
Work Unit Action Filter
Exception filter
Result Filter
Result caching for AJAX requests
Model Binder
View
Client Agent
Integr
for subclasses in the Assembly in a reflective manner ClassMap , establishing a mapping of the model and database tables ( Tweet and tweet table mappings).PublicClassTweets:entityString>The primary key is of type string {PublicString Content {GetSet }public DateTime createtime {get; set;} public class TweetMapper: classmaptweet>{public tweetmapper (//Disable lazy loading not.lazyload (); //map to table tweet table ( "tweet"); //primary Key mapping Id (x = x.id). Column ( "pk_id"); //field map m
Validation of parameter Validation The input data for an application should first be checked for validity. The data entered can be submitted by a user or other application. In Web applications, 2 data validation tests are typically performed: client-side and server-end testing. The main test of the client is to make the user have a good user experience. First, it is best to verify the validity of its form input on the client and the field input that is displayed to the client is invalid. However
). If the serialization tool reads the entity, it will read all the attributes recursively so that your entire database will be read.
There are more problems with using entities in the presentation layer. The best scenario is that the presentation layer should not refer to any assembly that contains a domain layer.
2.DTO Engagement ValidationABP provides strong support for data transfer objects. It provides a number of related (conventional) types interfaces and provides recommendations for
Use the BootstrapTable component method in the ABP framework, abpbootstraptable
1. About the ABP
"ASP. NET Boilerplate Project (ASP. NET sample project) "short for, it is a mature open-source framework, based on the DDD + Repository mode, comes with Zero permissions and Authentication Modules, avoiding the trouble of building a framework from scratch. The advantages of the
ABP General IntroductionThe ABP is "ASP. Boilerplate Project (ASP. NET Template project) "for short.ASP. Boilerplate is a new starting point for developing modern web applications with best practices and popular technologies, and is designed to be a common Web application framework and project template.The ASP. NET boilerplate is based on DDD's classic layered architecture concept, which implements many DDD
Foreword: ABP framework often in some. NET group to listen to the group of Friends mentioned, has also visited the official website, a general understanding of it is a framework, until today I officially download the source of the introduction ... After two hours of introduction to ABP Chinese documentation (thanks to the hard translators), it is generally understood that the
, adopting a layered architecture is a widely accepted technique. To achieve a layered architecture, ABP follows the principles of DDD (domain driven design) and is divided into four levels:
presentation Layer (Presentation): Provides a user interface for user interaction.
Application Layer (application): Performs the coordination between the presentation layer and the domain layer, and coordinates the business objects to perform the task
Document DirectoryThe content of this section:
Brief introduction
Pre-defined filtering
Isoftdelete
When is it available?
Imusthavetenant
When is it available?
Imayhavetenant
When is it available?
Disable filtering
about using declarations
About multi-tenancy
Enable filtering
Setting Filter Parameters
Settenantid method
Custom filtering
Entityframework.dynamicfilters Doc
the same connection object to handle all database operations, and close/release the connection at the end of the request (Application_ EndRequest event).
This is a simple but inefficient method, because:
Perhaps this Web request does not need to manipulate the database, but the connection will open. This is a inefficient way of using the connection pool.
This may make the Web request run longer and the database operation will require some execution. This is also a inefficient connect
1.5 ABP General Introduction-Multi-tenancy
1.5.1 What is multi-tenancy
Wikipedia: "Software multi-tenancy refers to a software architecture where the instance software runs on a single server, but there are multiple tenants." A tenant is a group of software instances that share a common user access to specific permissions. Multitenant architecture, software applications are designed to provide each tenant-specific instance including data, configurat
ABP Module DesignBack to ABP SeriesThe ABP is "ASP. Boilerplate Project (ASP. NET Template project) "for short.ASP. Boilerplate is a new starting point for developing modern web applications with best practices and popular technologies, and is designed to be a common Web application framework and project template.ABP's official website: http://www.aspnetboilerpla
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.