Domain-specific languagesDomain Driver Design Development, I am most shocked by domain-specific language (domain specific language), domain-specific language focused on describing the current domain of business details, and specific technical implementation details decouplingIn the domain-driven design, the specific technical details (database, message queue, cache) exist in the form of frames, and the main function of the framework is to turn the domain-specific language into an executable exis
; () The code returns the SNF. emailsenderprovider instance.
Message request /
Response
Here, there is only one message mode, for example:PostnewsThis is divided according to the new message mode.3Step:
GeneratePostnewsOfRequestMessage
CallPostnewsBusiness Method
ReceivePostnewsService method returnResponseMessage
The code for the presentation layer to call the application layer is as follows:
Newsapplication
Description
Note that only one constructor is input at this time.U
Label:When running the DDD debugger, there is a deadlock phenomenon, see the software status, found "waiting until GDB get ready", Google this problem, many are deleted folder "~/.DDD", but this will be the personal profile of DDD to delete, And every time you rerun the software to delete this folder, it is very troublesome.Later found a good way, as long as the
first of all, the previous several cases of DDD project failure, in fact, can not be considered a failure, but did not understand the idea of DDD . before the DDD is built on the data layer, first of all the data table corresponding to a data entity, each data entity by the generic DAO Management, DAO is also inherited by the data context to implement the transac
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 because the work was too busy and the writing efficiency was too low, I dragged it. Today i
Thinking of (DDD) warehousingWhy do we need warehousing? Domain objects (typically aggregate roots) are created to last persisted to the database, which requires dealing with the database, so that we need something like the database access layer to manage the domain objects. Is that why we can design something like the DAL layer to manage objects? Yes, but there is a difference in design, that is, we do not want the upper layer as the application tier
The root of software complexity comes from the complexity of thinking.
Three-tier architecture look at three-tier DDD Implementation detailed architecture look at Code Business Domain persistent layer (data layer) testing and use example complete code download
Handy weapon Library:
Fluent nhib.pdf
Nunit
Git (GitHub)
For the tools involved in this article, see the previous article: My. Net weapons library ------ list of required tools
, modifies, and queries, BLL is a simple Dal transit. These are all problems. There are also some logics, which should belong to a certain model logically, but in this layer, they need to be placed in BLL.
When I use the simple layer-3 architecture, I feel that the database is the core of the system. Basically, when the business needs are almost the same, I began to create databases and tables. Based on the created table, write the model for the table (sometimes the code generator that looks b
Reprint: http://blog.chinaunix.net/uid-10995602-id-2918710.htmlGoogle provides an Eclipse plug-in for Android app development as a development tool, and it's easy to debug the APK based on eclipse, while the underlying developers (such as opencore development) do not offer similar intuitive development tools and debugging tools. The purpose of this paper is to introduce a debugging method based on Ddd+gdbserver, which is used for program debugging of
Click here to enter the ABP series articles DirectoryABP General Introduction:The 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 D
ofAspects are better than those fine-grained components of EJB or CORBA.Component is fine-grained because it uses EvansDDDand other object methods to analyze the results of the design, the component can be regarded as a package of multiple objects, or can be an object, object methodology EvansDDDWe recommend that we keep layering, can be more than three layers, five layers or more into, until the maximum loose coupling, the final result will inevitably lead to trivial and granular very delicate
layer.So I looked for ways to improve my existing architecture.Occasionally, the home page of the blog is flooded with ddd articles, I went to look at a bit, want to find some examples of research, unfortunately, all involved in DDD, all are related to EF articles, I also notice that DDD solves some of my problems. But just don't like any orm.OrmI didn't resist
) {using (var connection = getconnection ()) {connection. Open (); Connection. Insert (New {AccountId = index. AccountId, AccountName = index. AccountName}, constants.accountindextable); } }Private SqlConnection getconnection () {return new SqlConnection (configsettings.connectionstring); } }}From the above we can know that it uses the data access technology is dapper, not EF, it also has no IQueryable design, need to find what, such as Findbyaccountnam
Transfer from http://blog.csdn.net/todd911/article/details/8851475The book has the following description:\DDD DDD denotes an octal number, which is the character represented by the given octal value.\XDDD is similar to the previous example, except that the octal number is replaced by a 16 binary number.Note that any hexadecimal number may be included in the \xddd sequence, but the result is undefined if the
();
orderbll. submitorder ( New _ 05_entity. orderentity ()
{
orderseqno = "123" ,
orderamount = 1000
});
}
When the upper layer calls the lower layer, it does not need to call the lower layer. Instead, it filters out some services that can be used from the lower layer. If you find that you are not ready to use it, add one to the idal file and implement the following in the Dal file. Now, BLL can be used. This will also l
"); varSelectedmultiprodcutspromotionid = This. Inmultiproductpromotionrule = =NULL?NULL: ((promotionrule) This. Inmultiproductpromotionrule). Promotoinid; return NewBoughtproduct ( This. ProductId, This. Quantity, This. UnitPrice, This. Reduceprice, Reducepricebymemberprice, This. _promotionrules, Selectedmultiprodcutspromotionid); } Finally the Calculateservice is adjusted to 3 this way: "Figure 3"Iv. Conclusion May be a bit boring halfway, but I thin
Click here to go to the ABP series articles General CatalogueDDD-based Modern ASP.--ABP Series 1, ABP overviewThe 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
An open-source. Net CMS system based on the Asp.net MVC + DDD architecture.
Run:
Features:
Cross-platform support for running Windows, Linux, and macox. Linux case: http://blog.ops.cc
The domain-driven design of DDD is built using the domain-driven design. Through a simple domain model, it provides powerful scalability.
Supports using SQLite as the database by default for multiple databases,
Tags: des style blog color Io OS ar JavaSsworld vs ddd
Time Limit: 4000/2000 MS (Java/others) memory limit: 65536/32768 K (Java/Others)Total submission (s): 1487 accepted submission (s): 304Problem description
One day, sssworld and DDD play games together, but there are some special rules in this games.
They both have their own HP. each round they dice respectively and get the points P1 and P2 (1 As a resul
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.