The idea of exception handling in ABP is very clear. There are altogether five types of exception classes.Abpinitializationexception is used to encapsulate exceptions that occur during ABP initialization, as long as the abpinitializationexception exception is thrown and no additional processing is required. Such anomalies are often required for maintenance personnel to intervene in the analysis.The other fo
Abpzerodbcontext : Configure ABP. The Dbset of the entity defined in Zero entityframeworkmodelbuilderextensions : added an extension method to Primitivepropertyconfiguration to create Index. abpzerodbmodelbuilderextensions : added an extension method to Dbmodelbuilder to rename the table. Abpzeroentityframeworkmodule : It is clear that the entityframeworkmodule in the ABP Zero module relies on the
Document directory
Content of this section:
Introduction
About IFeatureValueStore
Function Type
Boolean Function
Value Function
Define features
Basic Function Attributes
Other features
Function level
Check Function
Use the RequiresFeature feature
Notes for RequiresFeature features
Use IFeatureChecker
IsEnabled
GetValue
Client
IsEnabled
GetValue
Function Manager
A version prompt
Int
Document directory
Content of this section:
IApplicationService Interface
ApplicationService class
CrudAppService and AsyncCrudAppService
Simple CRUD application service example
Custom CRUD Application Service
Retrieve list
Create and update
Others
Work Unit
One application service Lifecycle
The Application Service exposes the domain logic to the presentation layer. An Application Service is called by the presentation layer using a DTO (data transmis
This article describes multiple table queries in the ABP. 1. Create an entity Multi-table queries, which are simple in ABP or EF, here we create a demo, a student entity, a school entity. There can be many students in the school, and students have a school. The entity is as follows: School Public classschool:entityLong> { Public stringName {Get;Set; } Public stringAddress {Get;Set; }
ABP framework, abp
Document directory
Content of this section:
Introduction
Example
Create a specification class
Use conventions in warehousing
Combination Statute
Discussion
When to use
When not used
Introduction
The Protocol mode is a special software design mode. the business logic can be relinked to the business logic using the boolean logic (Wikipedia ).
In most cases, it
between entities ).
We can say that there are more issues with the use of entities in the presentation layer. The best practice is to not reference the Assembly containing the domain (business) layer in the application layer.
DTO conventions and Verification
ABP strongly supports DTO. It provides some convention classes and interfaces, and recommends some naming and usage conventions. When you write code as described in this section, some tasks are
The Webplus Zero (ABP) version is based on the most popular DDD framework ABP (full name ASP. Boilerplate), and the interface uses the Easyui framework. The multi-language and authorization authentication supported by ABP framework are embodied in this privilege system. If you feel that spending $849 to buy ASP. NET zero is not a good deal, then this system is on
Fully parses the log function in the ABP framework, and parses the logs in the abp framework.
ASP. NET Boilerplate uses the Castle Windsor's logging facility logging tool and can use different log libraries, such as Log4Net, NLog, Serilog... and so on. For all the log class libraries, Castle provides a common interface for implementation. We can easily process a variety of special logstores, and when the bu
Parse the transaction processing and work unit in the ABP framework, and process the abp transaction
General connection and transaction management methodsConnection and transaction management are one of the most important concepts of database applications. When you start a database connection, when to start a transaction, how to release the connection... and so on.
As we all know,. Net uses the connection p
Document directory
Content of this section:
Introduction
Install
Install the Nuget package
Set module Dependencies
Configure your entity
Create a controller
Example
Get Object List
Request
Response
Obtain a single object
Request
Response
Obtain a single object and navigation attributes
Request
Response
Query
Request
Response
Create a new object
Request
Response
Two critical attributes in Abpbootstrapper: Iiocmanager and Iabpmodulemanager1 Public classabpbootstrapper:idisposable2 {3 /// 4 ///Gets Iiocmanager Object used by this class.5 /// 6 PublicIiocmanager Iocmanager {Get;Private Set; }7 8 /// 9 ///Is this object disposed before?Ten /// One protected BOOLisdisposed; A - PrivateIabpmodulemanager _modulemanager; - //......... the}View CodeIiocmanager internally wraps a ca
As. NET site to move bricks for a long time, has been committed to digging holes (Bug) pits (Debug), but the technology has not been improved. Also enthusiastic in the study of new technology, dreamed of becoming a technical danale. From front-to-back, from Bootstrap to JavaScript, from Python to node. js, we've learned about design patterns and have followed the development of the public number. But it was a scratch, never in depth. Bought a book of technical books, did not complete the complet
Work units and transactions of the Abp, and work unit transactions of the abp
Environment: Abp1.2
Question: the timing of transaction commit caused by the failure to call the workunit's SaveChanges method.
For example, an Application Service Code is as follows:
public void CreatePhrase(PhraseCreateDto input) {var phrase = Mapper.Map
Insert a record based on the data submitted by the user, but the S
settings. The ABP is designed to be modular. Therefore, different modules can have different settings. A module defines its settings and creates a class that inherits from SettingProvider. The following is the sample code for setting the Supplier:
public class MySettingProvider : SettingProvider{ public override IEnumerable
The GetSettingDefinitions method returns the SettingDefinition object set. The SettingDefinition class constructor has some p
Document directory
Content of this section:
Introduction
AbpController base class
Localization
Others
Filter
Exception Handling and result Packaging
Audit Log
Verify
Authorization
Work Unit
Anti-Spoofing
Model Binder
Introduction
ABC is integrated into the Asp.net Mvc controller through the nuget package ABP. Web. Mvc. You can create a common Mvc controller as usual. Dependency injection can work for a commo
Background introduction:A few times in the technology exchange and QQ Group I mentioned ABP Project, almost no one knows this open source project, Zhang Shanyu, cricket and many friends asked me, how in the Chinese community can not search ABP This project introduction article? Yes, such a good thing, should let more people know. I wanted to introduce it when I wrote my first article in the blog park, but b
Data filter (filters) in database development, we generally use the soft deletion (Soft-delete) mode, that is, not to delete data directly from the database, but to mark this data as deleted. Therefore, if the entity is deleted softly, it should not be retrieved in the application. To achieve this effect, we need to add SQL's where Condition isdeleted = false on each query that retrieves the entity. It's a tedious job, but it's an easy thing to forget. Therefore, we should have an automatic mech
Configure ABPthe configuration is implemented by the Preinitialize method of your own moduleThe code example is as follows:
public class Simpletasksystemmodule:abpmodule
{public
override void Preinitialize ()
{
// Add a language pack to your application, which is Turkish for English and the author.
Configuration.Localization.Languages.Add (New Languageinfo ("en", "中文版", "Famfamfam-flag-england", true));
CONFIGURATION.LOCALIZATION.LANGUAGES.ADD (New Languageinfo ("tr", "Tü
In 14, 15 years led several different teams, delivered several projects, in this process, although several projects of the business is different, but many of the application architecture basic functions are similar, such as authentication, authorization, request authentication, exception handling, DTO, log, audit, scheduled tasks, scheduling, multi-language, Apply configuration management and so on. However, because the project is limited by the progress, resources, team members background, at t
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.