diff --git a/.gitignore b/.gitignore
index 407241c7fc..3c5c4f89da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -269,6 +269,7 @@ modules/blog/app/Volo.BlogTestApp/Logs/*.*
modules/blogging/app/Volo.BloggingTestApp/Logs/*.*
modules/blogging/app/Volo.BloggingTestApp/wwwroot/files/*.*
modules/docs/app/VoloDocs.Web/Logs/*.*
+modules/setting-management/app/Volo.Abp.SettingManagement.DemoApp/Logs/*.*
templates/module/app/MyCompanyName.MyProjectName.DemoApp/Logs/*.*
templates/mvc/src/MyCompanyName.MyProjectName.Web/Logs/*.*
diff --git a/README.md b/README.md
index a73e9ef3ed..a56f0c98b8 100644
--- a/README.md
+++ b/README.md
@@ -105,3 +105,7 @@ ABP is a community-driven open source project. See [the contribution guide](http
## Support the ABP Framework
Love ABP Framework? **Please give a star** to this repository :star:
+
+## ABP Commercial
+
+See also [ABP Commercial](https://commercial.abp.io/) if you are looking for pre-built application modules, professional themes, code generation tooling and premium support for the ABP Framework.
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json
index cf6b6a124c..51d818aad7 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/en.json
@@ -35,6 +35,7 @@
"NameFilter": "Name",
"CreationTime": "Creation time",
"IsPro": "Is pro",
+ "IsFreeToActiveLicenseOwners": "Free to license owners",
"ShowOnModuleList": "Show on module list",
"EfCoreConfigureMethodName": "Configure method name",
"IsProFilter": "Is pro",
@@ -90,6 +91,7 @@
"UserNotFound": "User not found",
"{0}WillBeRemovedFromDevelopers": "{0} Will be removed from developers, do you confirm?",
"{0}WillBeRemovedFromOwners": "{0} Will be removed from owners, do you confirm?",
+ "{0}WillBeRemovedFromMembers": "{0} Will be removed from members, do you confirm?",
"Computers": "Computers",
"UniqueComputerId": "Unique computer id",
"LastSeenDate": "Last seen date",
@@ -199,9 +201,22 @@
"Optional": "Optional",
"CreateArticleLanguageInfo": "The language in which the post is written",
"Enum:ContentSource:2": "Video Post",
+ "VideoPreview": "Video Preview",
+ "VideoPreviewErrorMessage": "Given video url couldn't retrieve from Youtube. This can be caused by either video is private or the given URL is not available.",
"DeleteCoverImage": "Delete Cover Image",
"DeleteCoverImageConfirmationMessage": "Are you sure you want to delete the cover image for \"{0}\"?",
- "DeleteCoverImageSuccessMessage": "Cover image successfully deleted"
-
+ "DeleteCoverImageSuccessMessage": "Cover image successfully deleted",
+ "PaymentsOf": "Payments of",
+ "ShowPaymentsOfOrganization": "Show payments",
+ "Date": "Date",
+ "Products": "Products",
+ "TotalAmount": "Total amount",
+ "Currency": "Currency",
+ "Gateway": "Gateway",
+ "State": "State",
+ "FailReason": "Fail reason",
+ "ReIndexAllPosts": "ReIndex All Posts",
+ "ReIndexAllPostsConfirmationMessage": "Are you sure to reindex all posts?",
+ "SuccessfullyReIndexAllPosts": "Successfully reindex for all posts"
}
}
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/tr.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/tr.json
index 1884b0025f..34ee392140 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/tr.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Admin/Localization/Resources/tr.json
@@ -163,6 +163,9 @@
"Enum:ContentSource:2": "Video İçerik",
"DeleteCoverImage": "Kapak Fotoğrafını Sil",
"DeleteCoverImageConfirmationMessage": "Kapak fotoğrafını \"{0}\" isimli makale için silmek istediğinize emin misiniz?",
- "DeleteCoverImageSuccessMessage": "Kapak fotoğrafı başarılı bir şekilde silinmiştir"
+ "DeleteCoverImageSuccessMessage": "Kapak fotoğrafı başarılı bir şekilde silinmiştir",
+ "ReIndexAllPosts": "Yeniden indeksle",
+ "ReIndexAllPostsConfirmationMessage": "Tüm gönderileri yeniden indeksleyeceğinizden emin misiniz?",
+ "SuccessfullyReIndexAllPosts": "Tüm gönderiler başarıyla yeniden indekslendi"
}
}
\ No newline at end of file
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Base/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Base/Localization/Resources/en.json
index 71dc425dc6..eedfd4bccd 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Base/Localization/Resources/en.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Base/Localization/Resources/en.json
@@ -30,6 +30,8 @@
"Permission:License": "License",
"Permission:UserInfo": "Usere info",
"SeeDocuments": "See Documents",
- "Samples": "Samples"
+ "Samples": "Samples",
+ "Framework": "Framework",
+ "Support": "Support"
}
}
\ No newline at end of file
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Base/Localization/Resources/zh-Hans.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Base/Localization/Resources/zh-Hans.json
index f061408c98..01550612d4 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Base/Localization/Resources/zh-Hans.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Base/Localization/Resources/zh-Hans.json
@@ -30,6 +30,8 @@
"Permission:License": "许可",
"Permission:UserInfo": "用户信息",
"SeeDocuments": "查看文档",
- "Samples": "示例"
+ "Samples": "示例",
+ "Framework": "框架",
+ "Support": "支持"
}
}
\ No newline at end of file
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json
index c6eb1ad645..b03d57cee0 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/en.json
@@ -34,6 +34,257 @@
"JoinOurMarketingNewsletter": "Join our marketing newsletter",
"WouldLikeToReceiveMarketingMaterials": "I would like to receive marketing materials like product deals & special offers.",
"StartUsingYourLicenseNow": "Start using your license now!",
- "WelcomePage": "Welcome Page"
- }
+ "WelcomePage": "Welcome Page",
+ "UnsubscriptionExpireEmail": "Unsubscribe from license expire date reminder emails",
+ "UnsubscribeLicenseExpireEmailReminderMessage": "This email subscription only contains reminding your license expiration date.",
+ "UnsubscribeFromLicenseExpireEmails": "If you don't want to receive the emails about your license expiration date, you can unsubscribe at any time you want.",
+ "Unsubscribe": "Unsubscribe",
+ "NotOrganizationMember": "You are not member of any organization.",
+ "UnsubscribeLicenseExpirationEmailSuccessTitle": "Successfully unsubscribed",
+ "UnsubscribeLicenseExpirationEmailSuccessMessage": "You will not receive license expiration date reminder emails anymore.",
+ "IndexPageHeroSection": "A complete web development platformbuilt-on framework",
+ "AbpCommercialShortDescription": "ABP Commercial provides pre-built application modules, rapid application development tooling, professional UI themes, premium support and more.",
+ "LiveDemo": "Live Demo",
+ "GetLicence" :"Get a Licence",
+ "Application": "Application",
+ "StartupTemplates": "Startup Templates",
+ "Startup": "Startup",
+ "Templates": "Templates",
+ "Developer": "Developer",
+ "Tools": "Tools",
+ "Premium": "Premium",
+ "PremiumSupport": "Premium Support",
+ "PremiumForumSupport": "Premium Forum Support",
+ "UI": "UI",
+ "Themes": "Themes",
+ "JoinOurNewsletter": "Join Our Newsletter",
+ "Send": "Send",
+ "Learn": "Learn",
+ "AdditionalServices": "Additional Services",
+ "WhatIsABPFramework": "WHAT IS THE ABP FRAMEWORK?",
+ "OpenSourceBaseFramework": "Open Source Base Framework",
+ "ABPFrameworkExplanation": "
ABP Commercial is based on the ABP Framework, an open source and community driven web application framework for ASP.NET Core.
ABP Framework provides an excellent infrastructure to write maintainable, extensible and testable code with best practices.
Built on and integrated to popular tools you already know. Low learning curve, easy adaptation, comfortable development.
Building enterprise-grade web applications can be complex and time-consuming.
ABP Commercial offers the perfect base infrastructure necessary for all modern enterprise-grade ASP.NET Core based solutions. Right from the design to deployment, the entire development cycle is empowered by ABP's built-in features & modules.
",
+ "StartupTemplatesShortDescription": "Startup templates make you jump-start to your project in a few seconds.",
+ "UIFrameworksOptions": "UI frameworks options;",
+ "DatabaseProviderOptions": "Database provider options;",
+ "PreBuiltApplicationModules": "Pre-Built Application Modules",
+ "PreBuiltApplicationModulesShortDescription": "Most common application requirements are already developed for you as reusable modules.",
+ "Account": "Account",
+ "Blogging": "Blogging",
+ "Identity": "Identity",
+ "IdentityServer": "Identity Server",
+ "Saas": "Saas",
+ "LanguageManagement": "Language Management",
+ "TextTemplateManagement": "Text Template Management",
+ "See All Modules": "SeeAllModules",
+ "ABPSuite": "ABP Suite",
+ "AbpSuiteShortDescription": "ABP Suite is a complementary tool to the ABP Commercial.",
+ "AbpSuiteExplanation": "It allows you to build web pages in a matter of minutes. It's a .NET Core Global tool which can be installed from the command line. It can create a new ABP solution, generate CRUD pages from the database to the front-end.",
+ "Details": "Details",
+ "LeptonTheme": "Lepton Theme",
+ "ProfessionalModernUIThemes": "Professional, modern UI themes",
+ "LeptonThemeExplanation": "Lepton provides a gamut of Bootstrap admin themes that serve as a solid foundation for any project requiring admin dashboard.",
+ "DefaultTheme": "Default Theme",
+ "MaterialTheme": "Material Theme",
+ "Default2Theme": "Default 2 Theme",
+ "DarkTheme": "Dark Theme",
+ "DarkBlueTheme": "Dark Blue Theme",
+ "LightTheme": "Light Theme",
+ "ProudToWorkWith": "Proud to Work With",
+ "OurConsumers": "Hundreds of enterprises and developers over 50 countries worldwide rely on ABP Commercial.",
+ "JoinOurConsumers": "Join them and build amazing products fast.",
+ "AdditionalServicesExplanation": "Do you need additional or custom services? We and our partners can provide;",
+ "CustomProjectDevelopment": "Custom Project Development",
+ "CustomProjectDevelopmentExplanation": "Dedicated developers for your custom projects.",
+ "PortingExistingProjects": "Porting Existing Projects",
+ "PortingExistingProjectsExplanation": "Migrating your legacy projects to the ABP platform.",
+ "LiveSupport": "Live Support",
+ "LiveSupportExplanation": "Live remote support option when you need it.",
+ "Training": "Training",
+ "TrainingExplanation": "Dedicated training for your developers.",
+ "OnBoarding": "Onboarding",
+ "OnBoardingExplanation": "Help to setup your development, CI & CD environments.",
+ "PrioritizedTechnicalSupport": "Prioritized Technical Support",
+ "PremiumSupportExplanation": "Beside the great community support of the ABP framework, our support team answers technical questions and problems of the commercial users with high priority.",
+ "SeeTheSupportOptions": "See the Support Options",
+ "Contact": "Contact",
+ "TellUsWhatYouNeed": "Tell us what you need.",
+ "YourMessage": "Your Message",
+ "YourFullName": "Your full name",
+ "EmailField": "E-mail Address",
+ "YourEmailAddress": "Your e-mail address",
+ "HowMayWeHelpYou": "How may we help you",
+ "SendMessage": "Send Message",
+ "Success": "Success",
+ "WeWillReplyYou.": "Your message is sent! We will reply you in a short time.",
+ "GoHome": "Go Home",
+ "CreateLiveDemo": "Create Live Demo",
+ "RegisterToTheNewsletter": "Register to the newsletter to get information on happenings about ABP.IO, like new releases.",
+ "EnterYourEmailOrLogin": "Enter your e-mail address to create your demo or Login using your existing account.",
+ "ApplicationTemplate": "Application Template",
+ "ApplicationTemplateExplanation": "Application startup template is used to create a new web application.",
+ "EfCoreProvider": "Entity Framework (Supports SQL Server, MySQL, PostgreSQL, Oracle and others)",
+ "AlreadyIncludedInTemplateModules": "Following modules are already included and configured in this template:",
+ "ApplicationTemplateArchitecture": "This application template also supports tiered architecture where UI layer, API layer and the authentication service are physically separated.",
+ "SeeTheGuideOrGoToTheLiveDemo": "See the developer guide for technical information about this template or go to the live demo.",
+ "DeveloperGuide": "Developer Guide",
+ "ModuleTemplate": "Module Template",
+ "ModuleTemplateExplanation1": "You want to create a module and reuse across different applications? This startup template prepares everything to start to create a reusable application module or a microservice.",
+ "ModuleTemplateExplanation2": "
You can support single or multiple UI frameworks, single or multiple database providers for a single module. The startup template is configured to run and test your module in a minimal application in addition to the unit and integration test infrastructure.
See the developer guide for technical information about this template.
",
+ "WithAllStyleOptions": "with all style options",
+ "Demo": "Demo",
+ "SeeAllModules": "See All Modules",
+ "ABPCLIExplanation": "ABP CLI (Command Line Interface) is a command line tool to perform some common operations for ABP based solutions.",
+ "ABPSuiteEasilyCURD": "ABP Suite is a tool which allows you to easily create CRUD pages",
+ "WeAreHereToHelp": "We are Here to Help",
+ "BrowseOrAskQuestion": "You can browse our help topics or search in frequently asked questions, or you can ask us a question by using the contact form.",
+ "SearchQuestionPlaceholder": "Search in frequently asked questions",
+ "WhatIsTheABPCommercial": "What is the ABP Commercial?",
+ "WhatAreDifferencesThanAbpFramework": "What are the differences between the open source ABP Framework and the ABP Commercial?",
+ "ABPCommercialExplanation": "ABP Commercial is a set of premium modules, tools, themes and services built on top of the open source ABP framework. ABP Commercial is being developed and supported by the same team behind the ABP framework.",
+ "WhatAreDifferencesThanABPFrameworkExplanation": "
ABP framework is a modular, themeable, micro-service compatible application development framework for ASP.NET Core. It provides a complete architecture and a strong infrastructure to make you focusing on your own business code rather than repeating yourself for every new project. It is based on software development best practices and popular tools you already know.
ABP framework is completely free, open source and community-driven. It also provides a free theme and some pre-built modules (e.g. identity management and tenant management).
",
+ "VisitTheFrameworkVSCommercialDocument": "Visit the following link, for more information {1} ",
+ "ABPCommercialFollowingBenefits": "ABP Commercial adds the following benefits on top of the ABP framework;",
+ "Professional": "Professional",
+ "UIThemes": "UI themes",
+ "EnterpriseModules": "Enterprise ready, feature rich, pre-built application modules (e.g. Identity Server management, SaaS management, language management)",
+ "ToolingToSupport": "Tooling to support your development productivity (e.g. ABP Suite)",
+ "PremiumSupportLink": "Premium support",
+ "WhatDoIDownloadABPCommercial": "What do I download when I purchase the ABP Commercial?",
+ "CreateUnlimitedSolutions": "Once you purchase an ABP Commercial license, you will be able to create unlimited solutions like described in the Getting Started document.",
+ "ABPCommercialSolutionExplanation": "When you create a new application, you get a Visual Studio solution (a startup template) based on your preferences. The downloaded solution has commercial modules and themes already installed and configured for you. You can remove a pre-installed module or add another module if you like. All modules and themes are used a NuGet/NPM packages by default.",
+ "StartDevelopWithTutorials": "The downloaded solution is well architected and documented. You can start to develop your own business code based on it following the tutorials",
+ "TryTheCommercialDemo": "You can try the demo to see a sample application created using the ABP Commercial startup template.",
+ "HowManyProducts": "How many different products/solutions can I build using the ABP Commercial?",
+ "HowManyProductsExplanation": "There is no limit to create an ABP project. You can create as many project as you want, develop and upload them to different servers.",
+ "HowManyDevelopers": "How many developers can work on the ABP Commercial?",
+ "HowManyDevelopersExplanation": "ABP Commercial licenses are per developer. Different license types have different developer limits. However, you can add more developers to any license type whenever you need. See the prices page for license types, developer limits and additional developer costs.",
+ "ChangingLicenseType": "Can I change my license type in the future?",
+ "ChangingLicenseTypeExplanation": "You can always add new developers in your same license type. See also \"How many developers can work on the ABP Commercial?\". You can also upgrade to a higher license by paying the calculated price difference. When you upgrade to a higher license plan, you get the benefits of the new plan, but the license upgrade does not change the license expiry date.",
+ "LicenseExtendUpgradeDiff": "What is the difference between license extend and upgrade?",
+ "LicenseExtendUpgradeDiffExplanation": "Extending: By extending/renewing your license, you will continue to get premium support and get major updates for the modules and themes. Besides, you will be able to continue creating new projects. And you will still be able to use ABP Suite which speeds up your development.Upgrading: By upgrading your license, you will promote to a higher license plan which will allow you to get additional benefits. See the license comparison table to check the differences between the license plans.On the other hand, when you upgrade, your license expiry date will not change!To extend your license end date, you need to extend your license.",
+ "LicenseRenewalCost": "What is the license renewal cost after 1 year?",
+ "LicenseRenewalCostExplanation": "You can renew (extend) your license by paying %80 of the current license price. For example; Standard ABP Team License is ${0} and renewal price of the Team License is ${1}.",
+ "IsSourceCodeIncluded": "Does my license include the source code of the commercial modules and themes?",
+ "IsSourceCodeIncludedExplanation1": "Depends on the license type you've purchased:",
+ "IsSourceCodeIncludedExplanation2": "Team: Your solution uses the modules and the themes as NuGet and NPM packages. It doesn't include their source code. In this way, you can easily upgrade these modules and themes whenever a new version is available. However, you can not get the source code of the modules and the themes.",
+ "IsSourceCodeIncludedExplanation3": "Business/Enterprise: In addition to the Team license, you are able to download the source code of any module or theme you need. You can even remove the NuGet/NPM package references for a particular module and add its source code directly to your solution to fully change it.",
+ "IsSourceCodeIncludedExplanation4": "
Including the source code of a module to your solution gives you the maximum freedom to customize that module. However, then it will not be possible to automatically upgrade the module when a new version is released.
None of the licenses include the ABP Suite source code, which is an external tool that generates code for you and assist to your development.
See the pricing page for other differences between the license types.
",
+ "ChangingDevelopers": "Can I change the registered developers of my organization in the future?",
+ "ChangingDevelopersExplanation": "In addition to add new developers to your license, you can also change the existing developers (you can remove a developer and add a new one to the same seat) without any additional cost.",
+ "WhatHappensWhenLicenseEnds": "What happens when my license period ends?",
+ "WhatHappensWhenLicenseEndsExplanation1": "ABP Commercial has perpetual license type.After your license expires, you can continue developing your project. And you are not obliged to renew your license. After your license expires;",
+ "WhatHappensWhenLicenseEndsExplanation2": "You can not create new solutions using the ABP Commercial, but you can continue to develop your existing applications forever.",
+ "WhatHappensWhenLicenseEndsExplanation3": "You will be able to get updates for the modules and themes within your MAJOR version. For example; if you are using v3.2.0 of a module, you can still get updates for v3.x.x (v3.3.0, v3.5.2... etc.) of that module. But you cannot get updates for the next major version (like v4.x, v5.x)",
+ "WhatHappensWhenLicenseEndsExplanation4": "You can not install new modules and themes added to the ABP Commercial platform after your license ends.",
+ "WhatHappensWhenLicenseEndsExplanation5": "You can not use the ABP Suite.",
+ "WhatHappensWhenLicenseEndsExplanation6": "You can not get the premium support anymore.",
+ "WhatHappensWhenLicenseEndsExplanation7": "You can renew your subscription if you want to continue to get these benefits. There is a 20% discount when you renew your subscription.",
+ "WhenShouldIRenewMyLicense": "When should I renew my license?",
+ "WhenShouldIRenewMyLicenseExplanation1": "If you renew your license within 1 month after your license expires, %20 discount will be applied to total license price.",
+ "WhenShouldIRenewMyLicenseExplanation2": "If you renew your license after 1 month from your license expire date, the renew price will be same as license purchase price and there will be no discount for your renewal.",
+ "TrialPlan": "Do you have a trial plan?",
+ "TrialPlanExplanation": "For now, ABP Commercial doesn't have a trial plan. For the Team licenses we provide 30 days money back guarantee. You can just request a refund in the first 30 days. For the Business and Enterprise licenses, we provide 60% refund in 30 days. This is because Business and Enterprise licenses include the full source code of all the modules and the themes.",
+ "DoYouAcceptBankWireTransfer": "Do you accept bank wire transfer?",
+ "DoYouAcceptBankWireTransferExplanation": "Yes, we accept bank wire transfer. After sending the license amount via bank wire transfer, send us your receipt and the requested license type via e-mail. Our international bank account information:",
+ "HowToUpgrade": "How to upgrade existing applications when a new version is available?",
+ "HowToUpgradeExplanation1": "When you create a new application using ABP Commercial, all the modules and the theme are used as NuGet and NPM packages. So, you can easily upgrade the packages when a new version is available.",
+ "HowToUpgradeExplanation2": "In addition to the standard NuGet/NPM upgrades, ABP CLI provides an update command that automatically finds and upgrades all ABP related packages in your solution.",
+ "DatabaseSupport": "Which database systems are supported?",
+ "DatabaseSupportExplanation": "ABP Framework itself is database agnostic and can work with any database provider by its nature. See the data access document for a list of currently implemented providers.",
+ "UISupport": "Which UI frameworks are supported?",
+ "Supported": "Supported",
+ "UISupportExplanation": "ABP Framework itself is UI framework agnostic and can work with any UI framework. However, startup templates, module UIs and themes were not implemented for all UI frameworks. See the getting started document for the up-to-date list of UI options.",
+ "MicroserviceSupport": "Does it support the micro-service architecture?",
+ "MicroserviceSupportExplanation1": "One of the major goals of the ABP framework is to provide a convenient infrastructure to create micro-service solutions. See the micro-service architecture document to understand how it helps to create micro-service systems.",
+ "MicroserviceSupportExplanation2": "All the ABP Commercial modules are designed to support micro-service deployment scenarios (with its own API and database) by following the module development best practices document.",
+ "MicroserviceSupportExplanation3": "We provide a sample micro-service demo solutionthat demonstrates a micro-service architecture implementation to help you to create your own solution.",
+ "MicroserviceSupportExplanation4": "So, the short answer is \"yes, it supports micro-service architecture\".",
+ "MicroserviceSupportExplanation5": "However, a micro-service system is a solution and every solution will have different requirements, network topology, communication scenarios, authentication possibilities, database separation/sharing decisions, runtime configurations, 3rd party system integrations and many more.",
+ "MicroserviceSupportExplanation6": "The ABP Framework and the ABP Commercial provides infrastructure for micro-service scenarios, micro-service compatible modules, samples and documentation to help you to build your own solution. But don't expect to directly download your dream solution pre-built for you. You will need to understand it and bring some parts together based on your requirements.",
+ "WhereCanIDownloadSourceCode": "Where can I download source-code?",
+ "WhereCanIDownloadSourceCodeExplanation": "You can download the source code of all ABP modules, Angular packages and themes via ABP Suite or ABP CLI. See How to download source-code?",
+ "ComputerLimitation": "How many computers can a developer login when developing ABP?",
+ "ComputerLimitationExplanation": "We specifically permit {0} computers per individual/licensed developer. Whenever there is a need for a developer to develop ABP Commercial products on a third machine, an e-mail should be sent to license@abp.io explaining the situation and we will then make the appropriate allocation in our system.",
+ "RefundPolicy": "Do you have a refund policy?",
+ "RefundPolicyExplanation": "You can request a refund within 30 days of your license purchase. The Business and Enterprise license types have source-code download option, therefore refunds are not available for the Business and Enterprise (and any licenses that include a right to receive source-code). In addition, no refunds are made for renewals and second license purchases.",
+ "HowCanIRefundVat": "How can I refund VAT?",
+ "HowCanIRefundVatExplanation1": "If you made the payment using 2Checkout, you can refund VAT via your 2Checkout account:",
+ "HowCanIRefundVatExplanation2": "Log in into your 2Checkout account",
+ "HowCanIRefundVatExplanation3": "Find the appropriate order and press \"Refund Belated VAT\" (enter your VAT ID)",
+ "HowCanIGetMyInvoice": "How can I get my invoice?",
+ "HowCanIGetMyInvoiceExplanation": "There are 2 payment gateways for purchasing a license: PayU and 2Checkout. If you purchase your license through 2Checkout gateway, it sends the PDF invoice to your email address, see 2Checkout invoicing. If you purchase through the PayU gateway or via bank wire transfer, we will prepare and send your invoice. You can request your invoice from the organization management page.",
+ "Forum": "Forum",
+ "SupportExplanation": "ABP Commercial licenses provides a premium forum support by a team consists of the ABP Framework experts.",
+ "PrivateTicket": "Private Ticket",
+ "PrivateTicketExplanation": "Enterprise License also includes a private support with e-mail and ticket system.",
+ "AbpSuiteExplanation1": "ABP Suite allows you to build web pages in a matter of minutes. It's a .NET Core Global tool that can be installed from the command line.",
+ "AbpSuiteExplanation2": "It can create a new ABP solution, generate CRUD pages from the database to the front-end. For technical overview see the document",
+ "FastEasy": "Fast & Easy",
+ "AbpSuiteExplanation3": "ABP Suite allows you to easily create CRUD pages. You just need to define your entity and its properties, let the rest to ABP Suite for you! ABP Suite generates all the necessary code for your CRUD page in a few seconds. It supports Angular, MVC and Blazor user interfaces.",
+ "RichOptions": "Rich Options",
+ "AbpSuiteExplanation4": "ABP Suite supports multiple UI options like Razor Pages and Angular.It also supports multiple databases like MongoDB and all databases supported by EntityFramework Core (MS SQL Server, Oracle, MySql, PostgreSQL and more).",
+ "AbpSuiteExplanation5": "Good thing is that, you don't have to worry about those options. ABP Suite understands your project type and generates the code for your project and places the generated code in correct place in your project.",
+ "SourceCode": "Source Code",
+ "AbpSuiteExplanation6": "ABP Suite generates the source code for you! It doesn't generate magic files to generate the web page. ABP Suite generates the source code for Entity, Repository, Application Service, Code First Migration, JavaScript/TypeScript and CSHTML/HTML and necessary Interfaces as well. ABP Suite also generates the code according to Best Practices of software development, so you don't have to worry about generated code's quality.",
+ "AbpSuiteExplanation7": "Since you have the source code of building blocks of the generated CRUD page in correct application layers, you can easily modify the source code and inject your custom/bussiness logic to the generated code.",
+ "CrossPlatform": "Cross Platform",
+ "AbpSuiteExplanation8": "ABP Suite is built with .NET Core and it is cross platform. It runs as a web application on your local computer. You can run it on Windows, Mac and Linux",
+ "OtherFeatures": "Other Features",
+ "OtherFeatures1": "Updates NuGet and NPM packages on your solution easily.",
+ "OtherFeatures2": "Regenerates already generated pages from scratch.",
+ "OtherFeatures3": "Creates new solutions",
+ "ThanksForCreatingProject": "Thanks for Creating Your Project!",
+ "HotToRunSolution": "How to run your solution?",
+ "HotToRunSolutionExplanation": "See getting started document to learn how to configure and run your solution.",
+ "GettingStarted": "Getting Started",
+ "WebAppDevTutorial": "Web App Dev Tutorial",
+ "WebAppDevTutorialExplanation": "See web application development tutorial document for a step by step development sample.",
+ "Document": "Document",
+ "UsingABPSuiteToCURD": "Using ABP Suite for CRUD Page Generation & Tooling",
+ "SeeABPSuiteDocument": "See ABP Suite document to learn the usage of ABP Suite.",
+ "AskQuestionsOnSupport": "You can ask questions on ABP Commercial Support.",
+ "Documentation": "Documentation",
+ "SeeModulesDocument": "See modules document for a list of all commercial (pro) modules and their documents.",
+ "Pricing": "Pricing",
+ "PricingExplanation": "Choose the features and functionality your business needs today. Easily upgrade as your business grows.",
+ "Team": "Team",
+ "Business": "Business",
+ "Enterprise": "Enterprise",
+ "Custom": "Custom",
+ "IncludedDeveloperLicenses": "Included developer licenses",
+ "CustomLicenceOrAdditionalServices": "Need custom licence or additional services?",
+ "CustomOrVolumeLicense": "Custom or volume license",
+ "LiveTrainingSupport": "Live training & support",
+ "AndMore": "and more",
+ "AdditionalDeveloperLicense": "Additional developer license",
+ "ProjectCount": "Project count",
+ "AllProModules": "All pro modules",
+ "AllProThemes": "All pro themes",
+ "AllProStartupTemplates": "All pro startup templates",
+ "SourceCodeOfAllModules": "Source code of all modules",
+ "SourceCodeOfAllThemes": "Source code of all themes",
+ "PerpetualLicense": "Perpetual license",
+ "UnlimitedServerDeployment": "Unlimited server deployment",
+ "YearUpgrade": "1 year upgrade",
+ "YearPremiumForumSupport": "1 year premium forum support",
+ "ForumSupportIncidentCountYear": "Forum support incident count/year",
+ "PrivateTicketEmailSupport": "Private ticket & email support",
+ "BuyNow": "Buy Now"
+ }
}
\ No newline at end of file
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/zh-Hans.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/zh-Hans.json
index 82c23450a0..0e1e61dba8 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/zh-Hans.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Commercial/Localization/Resources/zh-Hans.json
@@ -16,7 +16,7 @@
"Name": "名称",
"EmailAddress": "电子邮件地址",
"Developers": "开发者",
- "LicenseType": "许可证类型",
+ "LicenseType": "许可类型",
"Manage": "管理",
"StartDate": "开始日期",
"EndDate": "结束日期",
@@ -33,7 +33,258 @@
"EmailNotValid": "请输入有效的电子邮件地址",
"JoinOurMarketingNewsletter": "加入我们的营销简讯",
"WouldLikeToReceiveMarketingMaterials": "我想收到市场营销资料,例如产品交易和特别优惠.",
- "StartUsingYourLicenseNow": "立即开始使用你的许可证",
- "WelcomePage": "欢迎页面"
+ "StartUsingYourLicenseNow": "立即开始使用你的许可",
+ "WelcomePage": "欢迎页面",
+ "UnsubscriptionExpireEmail": "退订许可到期提醒邮件",
+ "UnsubscribeLicenseExpireEmailReminderMessage": "此电子邮件订阅仅提醒你许可的到期日期.",
+ "UnsubscribeFromLicenseExpireEmails": "如果你不想收到关于许可到期邮件,你可以在任何时间取消订阅.",
+ "Unsubscribe": "取消订阅",
+ "NotOrganizationMember": "你不是任何组织的成员.",
+ "UnsubscribeLicenseExpirationEmailSuccessTitle": "退订成功",
+ "UnsubscribeLicenseExpirationEmailSuccessMessage": "你不会再收到任何许可到期提醒邮件.",
+ "IndexPageHeroSection": "一个完整的web开发平台基于 框架",
+ "AbpCommercialShortDescription": "ABP商业版提供了预构建的应用程序模块, 快速的应用程序开发工具, 专业的UI主题, 高级支持等.",
+ "LiveDemo": "在线演示",
+ "GetLicence" :"获得许可",
+ "Application": "应用程序",
+ "StartupTemplates": "启动模板",
+ "Startup": "启动",
+ "Templates": "模板",
+ "Developer": "开发人员",
+ "Tools": "工具",
+ "Premium": "高级",
+ "PremiumSupport": "高级支持",
+ "PremiumForumSupport": "高级论坛支持",
+ "UI": "UI",
+ "Themes": "主题",
+ "JoinOurNewsletter": "加入我们的时事通讯",
+ "Send": "发送",
+ "Learn": "学习",
+ "AdditionalServices": "额外的服务",
+ "WhatIsABPFramework": "什么是ABP框架?",
+ "OpenSourceBaseFramework": "开源的框架",
+ "ABPFrameworkExplanation": "
",
+ "ChangingDevelopers": "我将来可以更改我组织的注册开发人员吗?",
+ "ChangingDevelopersExplanation": "除了将新的开发人员添加到你的许可中之外,你还可以更改现有的开发人员(可以删除一个开发人员并将新的开发人员添加到同一位置),而无需任何额外费用.",
+ "WhatHappensWhenLicenseEnds": "我的许可期限结束后会怎样?",
+ "WhatHappensWhenLicenseEndsExplanation1": "ABP商业版具有永久许可类型.许可到期后, 你可以继续开发你的项目.并且你没有义务续订许可.许可到期后;",
+ "WhatHappensWhenLicenseEndsExplanation2": "你不能使用ABP商业版创建新的解决方案,但可以永远继续开发现有的应用程序.",
+ "WhatHappensWhenLicenseEndsExplanation3": "你能够在你的主版本中获得模块和主题的更新.例如;如果你使用的是模块的v3.2.0版本,你仍然可以获得v3.x.x版本的更新.(v3.3.0 v3.5.2…等等)的.但是你无法获得下一个主要版本(如v4.x,v5.x)的更新",
+ "WhatHappensWhenLicenseEndsExplanation4": "许可到期后,你无法安装添加到ABP商业平台的新模块和主题.",
+ "WhatHappensWhenLicenseEndsExplanation5": "你不能使用ABP Suite.",
+ "WhatHappensWhenLicenseEndsExplanation6": "你不再获得高级支持.",
+ "WhatHappensWhenLicenseEndsExplanation7": "如果你想继续获得这些好处,可以继续续订. 续订时有20%的折扣.",
+ "WhenShouldIRenewMyLicense": "我什么时候应该续订我的许可?",
+ "WhenShouldIRenewMyLicenseExplanation1": "如果你在许可到期后的 1个月内续订许可,则许可总价将享受%20的折扣.",
+ "WhenShouldIRenewMyLicenseExplanation2": "如果你在你的许可过期日期1个月后更新你的许可,更新价格将与许可购买价格相同,你的更新将没有折扣.",
+ "TrialPlan": "你们有试用计划吗?",
+ "TrialPlanExplanation": "目前,ABP商业版还没有试用计划.对于团队许可,我们提供30天的退款保证.你可以在30天内要求退款.对于企业营业执照,我们提供30天内60%的退款.这是因为商业和企业许可包含所有模块和主题的完整源代码.",
+ "DoYouAcceptBankWireTransfer": "你们接受银行电汇吗?",
+ "DoYouAcceptBankWireTransferExplanation": "是的,我们接受银行电汇. 通过银行电汇转账,通过电子邮件将收据和所要求的许可类型发送给我们. 我们的国际银行帐户信息:",
+ "HowToUpgrade": "可用新版本时如何升级现有应用程序?",
+ "HowToUpgradeExplanation1": "使用ABP商业版创建新应用程序时,所有模块和主题均用作NuGet和NPM软件包. 因此,当有新版本可用时,你可以轻松升级软件包.",
+ "HowToUpgradeExplanation2": "除了标准的NuGet/NPM升级之外, ABP CLI 还提供了一条更新命令,该命令可自动查找和升级解决方案中的所有与ABP相关的软件包.",
+ "DatabaseSupport": "支持哪些数据库系统?",
+ "DatabaseSupportExplanation": "ABP框架本身与数据库无关,并且就其性质而言,可以与任何数据库提供程序一起使用. 请参阅数据访问文档以获取当前实现的提供程序的列表.",
+ "UISupport": "支持哪些UI框架?",
+ "Supported": "支持的",
+ "UISupportExplanation": "ABP框架本身与UI框架无关,并且可以与任何UI框架一起使用. 但是,并非针对所有UI框架都实现了启动模板,模块UI和主题. 有关UI选项的最新列表,请参见入门文档.",
+ "MicroserviceSupport": "它是否支持微服务架构?",
+ "MicroserviceSupportExplanation1": "ABP框架的主要目标之一是为创建微服务解决方案提供便利的基础架构. 请参阅微服务体系结构文档,以了解它如何帮助创建微服务系统.",
+ "MicroserviceSupportExplanation2": "所有的ABP商业模块通过模块开发最佳实践文档被设计为支持微服务部署场景(使用自己的API和数据库).",
+ "MicroserviceSupportExplanation3": "我们提供了一个示例微服务演示解决方案,该示例演示了一种微服务架构实现,可帮助你创建自己的解决方案.",
+ "MicroserviceSupportExplanation4": "所以简短的答案是 \"是的, 它支持微服务体系结构\".",
+ "MicroserviceSupportExplanation5": "但是,微服务系统是一个解决方案,每个解决方案都有不同的要求,网络拓扑,通信场景,身份验证可能性,数据库分离/共享决策,运行时配置,第三方系统集成等等.",
+ "MicroserviceSupportExplanation6": "ABP框架和ABP商业版提供了微服务方案,微服务兼容模块,示例和文档的基础结构,以帮助你构建自己的解决方案. 但是不要期望直接下载为你预先构建的梦想解决方案. 你将需要了解它,并根据需要将某些部分组合在一起.",
+ "WhereCanIDownloadSourceCode": "在哪里可以下载源代码?",
+ "WhereCanIDownloadSourceCodeExplanation": "你可以通过ABP Suite或ABP CLI下载所有ABP模块,Angular软件包和主题的源代码. 请参见如何下载源代码?",
+ "ComputerLimitation": "开发人员在开发ABP时可以登录到多少台计算机?",
+ "ComputerLimitationExplanation": "我们特别允许每个个人/许可的开发人员使用 {0}台计算机. 每当需要开发人员在第三台计算机上开发ABP商业产品时,都应将电子邮件发送到license@abp.io,以说明情况,然后我们将在系统中进行适当分配.",
+ "RefundPolicy": "你们有退款政策吗?",
+ "RefundPolicyExplanation": "你可以在购买许可的30天内请求退款.商业和企业许可类型都有源代码下载选项,因此商业和企业(以及任何包含获得源代码的权利的许可)都不能退款.此外,续展和购买第二次许可也不退款.",
+ "HowCanIRefundVat": "我该如何退还增值税?",
+ "HowCanIRefundVatExplanation1": "如果你使用2Checkout付款,则可以通过2Checkout帐户退还增值税:",
+ "HowCanIRefundVatExplanation2": "登录到你的2Checkout账户",
+ "HowCanIRefundVatExplanation3": "找到适当的订单,然后按\"退还已延期的增值税\"(输入你的增值税ID",
+ "HowCanIGetMyInvoice": "我如何获得发票?",
+ "HowCanIGetMyInvoiceExplanation": "有两个用于购买许可的支付网关:PayU和2Checkout. 如果你通过2Checkout网关购买许可,则它将PDF发票发送到你的电子邮件地址,请参阅2Checkout发票.如果你是通过PayU网关或通过银行电汇购买的,我们将准备并发送你的发票. 你可以从组织管理页面索取发票.",
+ "Forum": "论坛",
+ "SupportExplanation": "ABP商业版许可包含由ABP框架专家组成的团队提供的高级论坛支持.",
+ "PrivateTicket": "私有票",
+ "PrivateTicketExplanation": "企业许可还包含带有电子邮件和票系统的私人支持.",
+ "AbpSuiteExplanation1": "ABP Suite使你在几分钟内构建web页面. 它是一个.NET Core Global工具,可以使用命令行安装.",
+ "AbpSuiteExplanation2": "它可以创建一个新的ABP解决方案, 从数据库生成前端CURD页面. 有关技术概述查看文档",
+ "FastEasy": "快速并且简单",
+ "AbpSuiteExplanation3": "ABP Suite允许你轻松的创建CURD页面. 你只需要定义你的实体和它的属性, 其它的让ABP Suite帮你完成! ABP Suite会在几秒内为你生成CURD页面和必要的代码. 它支持Angular, MVC和 Blazor用户界面.",
+ "RichOptions": "丰富的选项",
+ "AbpSuiteExplanation4": "ABP Suite支持多个UI选项,例如 Razor Pages和Angular.它还支持多个数据库, 如 MongoDB 和EntityFramework Core支持的所有数据库(MS SQL Server, Oracle, MySql, PostgreSQL 和 更多).",
+ "AbpSuiteExplanation5": "好消息是, 你不必担心这些选项. ABP Suite了解你的项目类型并且将生成的代码放到项目中正确的位置.",
+ "SourceCode": "源码",
+ "AbpSuiteExplanation6": "ABP Suite为你生成源代码! 它不会生成魔法文件来生成web页面. ABP Suite为实体, 仓储, 应用程序, Code First迁移, JavaScript/TypeScript 和 CSHTML/HTML以及必要的页面生成源代码. ABP Suite根据软件开发的最佳实践来生成代码, 所以你不必担心生成的代码的质量.",
+ "AbpSuiteExplanation7": "由于你有应用程序层中生成的CURD页面的构建块的源代码, 因此你可以轻松修改源码并将自定义/业务逻辑注入到所生成的代码中.",
+ "CrossPlatform": "跨平台",
+ "AbpSuiteExplanation8": "ABP Suite使用.NET Core构建并且它是跨平台的. 它在你的本地电脑中运行为web应用程序. 你可以在Windows, Mac和Linux上运行它",
+ "OtherFeatures": "其他功能",
+ "OtherFeatures1": "轻松更新你的解决方案的NuGet和NPM包.",
+ "OtherFeatures2": "重新生成已经生成的页面.",
+ "OtherFeatures3": "创建新的解决方案",
+ "ThanksForCreatingProject": "感谢你创建你的项目!",
+ "HotToRunSolution": "如何运行你的解决方案?",
+ "HotToRunSolutionExplanation": "查看入门文档来学习如何配置和运行你的解决方案.",
+ "GettingStarted": "入门",
+ "WebAppDevTutorial": "Web应用开发教程",
+ "WebAppDevTutorialExplanation": "查看web应用程序开发教程文档来一步一步的了解开发示例.",
+ "Document": "文档",
+ "UsingABPSuiteToCURD": "使用ABP Suite来生成CURD页面",
+ "SeeABPSuiteDocument": "查看ABP Suite文档学习如何使用ABP Suite.",
+ "AskQuestionsOnSupport": "你可以在ABP商业支持提出问题.",
+ "Documentation": "文档",
+ "SeeModulesDocument": "查看模块文档获取所有商业(专业)模块列表和它们的文档.",
+ "Pricing": "价格",
+ "PricingExplanation": "选择当前业务需要的特性和功能. 随着业务增长轻松升级.",
+ "Team": "团队",
+ "Business": "商业",
+ "Enterprise": "企业",
+ "Custom": "自定义",
+ "IncludedDeveloperLicenses": "包括开发人员许可",
+ "CustomLicenceOrAdditionalServices": "需要自定义许可与额外服务?",
+ "CustomOrVolumeLicense": "自定义或批量许可",
+ "LiveTrainingSupport": "现场培训和支持",
+ "AndMore": "和更多",
+ "AdditionalDeveloperLicense": "额外的开发人员许可",
+ "ProjectCount": "项目数量",
+ "AllProModules": "所有模块",
+ "AllProThemes": "所有主题",
+ "AllProStartupTemplates": "所有专业启动模板",
+ "SourceCodeOfAllModules": "所有模块的源码",
+ "SourceCodeOfAllThemes": "所有主题的源码",
+ "PerpetualLicense": "永久的许可",
+ "UnlimitedServerDeployment": "无限制的服务器部署",
+ "YearUpgrade": "1年升级",
+ "YearPremiumForumSupport": "1年高级论坛支持",
+ "ForumSupportIncidentCountYear": "论坛支持事件数量/年",
+ "PrivateTicketEmailSupport": "私有票和email支持",
+ "BuyNow": "现在购买"
}
}
\ No newline at end of file
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Community/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Community/Localization/Resources/en.json
index 5bf922f012..9c5ae26f89 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Community/Localization/Resources/en.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Community/Localization/Resources/en.json
@@ -132,6 +132,12 @@
"ChooseYourContentType": "Please choose the way you want to add your content.",
"PostContentViaGithub": "I want to add my article with GitHub in accordance with the markdown rules.",
"PostContentViaYoutube": "I want to share my videos available on Youtube here.",
- "PostContentViaExternalSource": "I want to add the content I published on another platform here."
+ "PostContentViaExternalSource": "I want to add the content I published on another platform here.",
+ "GitHubUserNameValidationMessage": "Your Github username can not include whitespace, please be sure your Github username is correct.",
+ "PersonalSiteUrlValidationMessage": "Your personal site URL can not include whitespace, please be sure your personal site URL is correct.",
+ "TwitterUserNameValidationMessage": "Your Twitter username can not include whitespace, please be sure your Twitter username is correct.",
+ "LinkedinUrlValidationMessage": "Your Linkedin URL can not include whitespace, please be sure your Linkedin URL is correct.",
+ "NoPostsFound": "No posts found!",
+ "SearchInPosts": "Search in posts..."
}
}
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/de-DE.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/de-DE.json
index 523247a7b6..052b3235eb 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/de-DE.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/de-DE.json
@@ -185,6 +185,8 @@
"SeeCliDocumentForMoreInformation": "Weitere Optionen finden Sie im ABP CLI-Dokument oder wählen Sie oben die Registerkarte \"Direkter Download\".",
"Optional": "Optional",
"LocalFrameworkRef": "Behalten Sie die lokale Projektreferenz für die Framework-Pakete bei.",
- "SelectLanguage": "Sprache auswählen"
+ "SelectLanguage": "Sprache auswählen",
+ "LatestArticleOnCommunity": "Neuester Artikel zur ABP Community",
+ "Register": "Registrieren"
}
}
\ No newline at end of file
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en-GB.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en-GB.json
index cd0592524d..c0a168a6c2 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en-GB.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en-GB.json
@@ -193,6 +193,7 @@
"MultipleDBOptions": "Multiple Database Providers",
"MultipleUIOptionsExplanation": "The core framework is designed as UI independent and can work with any type of UI system, while there are multiple pre-built and integrated options are provided out of the box.",
"MultipleDBOptionsExplanation": "The framework can work with any data source, while the following providers are officially developed and supported:",
- "SelectLanguage": "Select language"
+ "SelectLanguage": "Select language",
+ "LatestArticleOnCommunity": "Latest Article on ABP Community"
}
}
\ No newline at end of file
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en.json
index bdc7364788..fff1876a67 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en.json
@@ -8,6 +8,7 @@
"ProjectName": "Project name",
"ProjectType": "Project type",
"DatabaseProvider": "Database provider",
+ "DatabaseManagementSystem": "Database management system",
"NTier": "N-Tier",
"IncludeUserInterface": "Include user interface",
"CreateNow": "Create now",
@@ -193,6 +194,8 @@
"MultipleDBOptions": "Multiple Database Providers",
"MultipleUIOptionsExplanation": "The core framework is designed as UI independent and can work with any type of UI system, while there are multiple pre-built and integrated options are provided out of the box.",
"MultipleDBOptionsExplanation": "The framework can work with any data source, while the following providers are officially developed and supported;",
- "SelectLanguage": "Select language"
+ "SelectLanguage": "Select language",
+ "LatestArticleOnCommunity": "Latest Article on ABP Community",
+ "Register": "Register"
}
}
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/es.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/es.json
index 06d197d82e..4911144609 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/es.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/es.json
@@ -185,6 +185,8 @@
"SeeCliDocumentForMoreInformation": "Ver el documento ABP CLI para más opciones o selecciona la \"Direct Download\" pestaña de arriba.",
"Optional": "Opcional",
"LocalFrameworkRef": "Mantén la referencia al proyecto local para los paquetes del framework.",
- "SelectLanguage": "Vali keel"
+ "SelectLanguage": "Vali keel",
+ "LatestArticleOnCommunity": "Último artículo sobre la comunidad ABP",
+ "Register": "Registrarse"
}
}
\ No newline at end of file
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/zh-Hans.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/zh-Hans.json
index d01d847716..e187a628f2 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/zh-Hans.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/zh-Hans.json
@@ -193,6 +193,8 @@
"MultipleDBOptions": "多个数据库提供程序",
"MultipleUIOptionsExplanation": "核心框架设计为独立与UI,可以和任何类型的UI系统一起使用. 同时提供了多个开箱即用的预构建集成选项.",
"MultipleDBOptionsExplanation": "该框架可以使用任何数据源,并且以下提供程序已得到正式开发和支持;",
- "SelectLanguage": "选择语言"
+ "SelectLanguage": "选择语言",
+ "LatestArticleOnCommunity": "关于ABP社区的最新文章",
+ "Register": "寄存器"
}
}
diff --git a/common.props b/common.props
index 5254c91876..593fe92213 100644
--- a/common.props
+++ b/common.props
@@ -1,7 +1,7 @@
- latest
- 4.3.0
+ latest
+ 4.3.0$(NoWarn);CS1591;CS0436https://abp.io/assets/abp_nupkg.pnghttps://abp.io/
diff --git a/docs/en/Application-Services.md b/docs/en/Application-Services.md
index 7fe9825f2a..5d779ec8c9 100644
--- a/docs/en/Application-Services.md
+++ b/docs/en/Application-Services.md
@@ -43,12 +43,14 @@ public class Book : AggregateRoot
{
if (string.IsNullOrWhiteSpace(name))
{
- throw new ArgumentException($"name can not be empty or white space!");
+ throw new ArgumentException(
+ $"name can not be empty or white space!");
}
if (name.Length > MaxNameLength)
{
- throw new ArgumentException($"name can not be longer than {MaxNameLength} chars!");
+ throw new ArgumentException(
+ $"name can not be longer than {MaxNameLength} chars!");
}
return name;
@@ -349,8 +351,9 @@ public class DistrictAppService
protected async override Task GetEntityByIdAsync(DistrictKey id)
{
+ var queryable = await Repository.GetQueryableAsync();
return await AsyncQueryableExecuter.FirstOrDefaultAsync(
- Repository.Where(d => d.CityId == id.CityId && d.Name == id.Name)
+ queryable.Where(d => d.CityId == id.CityId && d.Name == id.Name)
);
}
}
diff --git a/docs/en/AspNet-Boilerplate-Migration-Guide.md b/docs/en/AspNet-Boilerplate-Migration-Guide.md
index f4c2ec712b..52a2fced6a 100644
--- a/docs/en/AspNet-Boilerplate-Migration-Guide.md
+++ b/docs/en/AspNet-Boilerplate-Migration-Guide.md
@@ -184,7 +184,7 @@ public class PersonAppService : ApplicationService, IPersonAppService
}
````
-ABP Framework's repository doesn't have this method. Instead, it implements the `IQueryable` itself. So, you can directly use LINQ on the repository:
+ABP Framework's repository have `GetQueryableAsync` instead:
````csharp
public class PersonAppService : ApplicationService, IPersonAppService
@@ -198,14 +198,15 @@ public class PersonAppService : ApplicationService, IPersonAppService
public async Task DoIt()
{
- var people = await _personRepository
+ var queryable = await _personRepository.GetQueryableAsync();
+ var people = await queryable
.Where(p => p.BirthYear > 2000) //Use LINQ extension methods
.ToListAsync();
}
}
````
-> Note that in order to use the async LINQ extension methods (like `ToListAsync` here), you may need to depend on the database provider (like EF Core) since these methods are defined in the database provider package, they are not standard LINQ methods.
+> Note that in order to use the async LINQ extension methods (like `ToListAsync` here), you may need to depend on the database provider (like EF Core) since these methods are defined in the database provider package, they are not standard LINQ methods. See the [repository document](Repositories.md) for alternative approaches for async query execution.
#### FirstOrDefault(predicate), Single()... Methods
diff --git a/docs/en/Background-Jobs-RabbitMq.md b/docs/en/Background-Jobs-RabbitMq.md
index 2ee478ed17..16b8b0981a 100644
--- a/docs/en/Background-Jobs-RabbitMq.md
+++ b/docs/en/Background-Jobs-RabbitMq.md
@@ -66,6 +66,26 @@ Defining multiple connections is allowed. In this case, you can use different co
}
````
+If you need to connect to the RabbitMQ cluster, you can use the `;` character to separate the host names.
+
+**Example: Connect to the RabbitMQ cluster**
+
+```json
+{
+ "RabbitMQ": {
+ "Connections": {
+ "Default": {
+ "HostName": "123.123.123.123;234.234.234.234"
+ }
+ },
+ "EventBus": {
+ "ClientName": "MyClientName",
+ "ExchangeName": "MyExchangeName"
+ }
+ }
+}
+```
+
#### AbpRabbitMqOptions
`AbpRabbitMqOptions` class can be used to configure the connection strings for the RabbitMQ. You can configure this options inside the `ConfigureServices` of your [module](Module-Development-Basics.md).
diff --git a/docs/en/Best-Practices/Entity-Framework-Core-Integration.md b/docs/en/Best-Practices/Entity-Framework-Core-Integration.md
index f487f9d61d..4db6518201 100644
--- a/docs/en/Best-Practices/Entity-Framework-Core-Integration.md
+++ b/docs/en/Best-Practices/Entity-Framework-Core-Integration.md
@@ -16,11 +16,13 @@
[ConnectionStringName("AbpIdentity")]
public interface IIdentityDbContext : IEfCoreDbContext
{
- DbSet Users { get; set; }
- DbSet Roles { get; set; }
+ DbSet Users { get; }
+ DbSet Roles { get; }
}
````
+* **Do not** define `set;` for the properties in this interface.
+
### DbContext class
* **Do** inherit the `DbContext` from the `AbpDbContext` class.
@@ -144,7 +146,7 @@ public virtual async Task FindByNormalizedUserNameAsync(
bool includeDetails = true,
CancellationToken cancellationToken = default)
{
- return await DbSet
+ return await (await GetDbSetAsync())
.IncludeDetails(includeDetails)
.FirstOrDefaultAsync(
u => u.NormalizedUserName == normalizedUserName,
@@ -175,14 +177,15 @@ public static IQueryable IncludeDetails(
}
````
-* **Do** use the `IncludeDetails` extension method in the repository methods just like used in the example code above (see FindByNormalizedUserNameAsync).
+* **Do** use the `IncludeDetails` extension method in the repository methods just like used in the example code above (see `FindByNormalizedUserNameAsync`).
- **Do** override `WithDetails` method of the repository for aggregates root which have **sub collections**. Example:
````C#
-public override IQueryable WithDetails()
+public override async Task> WithDetailsAsync()
{
- return GetQueryable().IncludeDetails(); // Uses the extension method defined above
+ // Uses the extension method defined above
+ return (await GetQueryableAsync()).IncludeDetails();
}
````
diff --git a/docs/en/Best-Practices/MongoDB-Integration.md b/docs/en/Best-Practices/MongoDB-Integration.md
index 74a0e429f1..90f7871a70 100644
--- a/docs/en/Best-Practices/MongoDB-Integration.md
+++ b/docs/en/Best-Practices/MongoDB-Integration.md
@@ -128,7 +128,7 @@ public async Task FindByNormalizedUserNameAsync(
bool includeDetails = true,
CancellationToken cancellationToken = default)
{
- return await GetMongoQueryable()
+ return await (await GetMongoQueryableAsync())
.FirstOrDefaultAsync(
u => u.NormalizedUserName == normalizedUserName,
GetCancellationToken(cancellationToken)
@@ -139,8 +139,8 @@ public async Task FindByNormalizedUserNameAsync(
`GetCancellationToken` fallbacks to the `ICancellationTokenProvider.Token` to obtain the cancellation token if it is not provided by the caller code.
* **Do** ignore the `includeDetails` parameters for the repository implementation since MongoDB loads the aggregate root as a whole (including sub collections) by default.
-* **Do** use the `GetMongoQueryable()` method to obtain an `IQueryable` to perform queries wherever possible. Because;
- * `GetMongoQueryable()` method automatically uses the `ApplyDataFilters` method to filter the data based on the current data filters (like soft delete and multi-tenancy).
+* **Do** use the `GetMongoQueryableAsync()` method to obtain an `IQueryable` to perform queries wherever possible. Because;
+ * `GetMongoQueryableAsync()` method automatically uses the `ApplyDataFilters` method to filter the data based on the current data filters (like soft delete and multi-tenancy).
* Using `IQueryable` makes the code as much as similar to the EF Core repository implementation and easy to write and read.
* **Do** implement data filtering if it is not possible to use the `GetMongoQueryable()` method.
diff --git a/docs/en/Best-Practices/Repositories.md b/docs/en/Best-Practices/Repositories.md
index c0058df433..4f646a7d94 100644
--- a/docs/en/Best-Practices/Repositories.md
+++ b/docs/en/Best-Practices/Repositories.md
@@ -42,24 +42,6 @@ Task FindByNormalizedUserNameAsync(
);
````
-* **Do** create a **synchronous extension** method for each asynchronous repository method. Example:
-
-````C#
-public static class IdentityUserRepositoryExtensions
-{
- public static IdentityUser FindByNormalizedUserName(
- this IIdentityUserRepository repository,
- [NotNull] string normalizedUserName)
- {
- return AsyncHelper.RunSync(
- () => repository.FindByNormalizedUserNameAsync(normalizedUserName)
- );
- }
-}
-````
-
-This will allow synchronous code to use the repository methods easier.
-
* **Do** add an optional `bool includeDetails = true` parameter (default value is `true`) for every repository method which returns a **single entity**. Example:
````C#
diff --git a/docs/en/Blob-Storing-Aliyun.md b/docs/en/Blob-Storing-Aliyun.md
index 6cdebb3acc..4060e5ba26 100644
--- a/docs/en/Blob-Storing-Aliyun.md
+++ b/docs/en/Blob-Storing-Aliyun.md
@@ -36,7 +36,7 @@ Configure(options =>
aliyun.Policy = "policy";
aliyun.DurationSeconds = "expiration date";
aliyun.ContainerName = "your aliyun container name";
- aliyun.CreateContainerIfNotExists = false;
+ aliyun.CreateContainerIfNotExists = true;
});
});
});
diff --git a/docs/en/Blob-Storing-Aws.md b/docs/en/Blob-Storing-Aws.md
index 05e3caa183..aa7707e5d3 100644
--- a/docs/en/Blob-Storing-Aws.md
+++ b/docs/en/Blob-Storing-Aws.md
@@ -39,7 +39,7 @@ Configure(options =>
Aws.Policy = "policy";
Aws.DurationSeconds = "expiration date";
Aws.ContainerName = "your Aws container name";
- Aws.CreateContainerIfNotExists = false;
+ Aws.CreateContainerIfNotExists = true;
});
});
});
diff --git a/docs/en/Blob-Storing-Azure.md b/docs/en/Blob-Storing-Azure.md
index de6ed63152..99833e71c0 100644
--- a/docs/en/Blob-Storing-Azure.md
+++ b/docs/en/Blob-Storing-Azure.md
@@ -29,7 +29,7 @@ Configure(options =>
{
azure.ConnectionString = "your azure connection string";
azure.ContainerName = "your azure container name";
- azure.CreateContainerIfNotExists = false;
+ azure.CreateContainerIfNotExists = true;
});
});
});
diff --git a/docs/en/Blog-Posts/2021-01-28 v4_2_Release_Stable/POST.md b/docs/en/Blog-Posts/2021-01-28 v4_2_Release_Stable/POST.md
new file mode 100644
index 0000000000..fac8484411
--- /dev/null
+++ b/docs/en/Blog-Posts/2021-01-28 v4_2_Release_Stable/POST.md
@@ -0,0 +1,53 @@
+# ABP.IO Platform 4.2 Final Has Been Released!
+
+[ABP Framework](https://abp.io/) and [ABP Commercial](https://commercial.abp.io/) 4.2 versions have been released today.
+
+## What's New With 4.2?
+
+Since all the new features are already explained in details with the [4.2 RC Announcement Post](https://blog.abp.io/abp/ABP-IO-Platform-v4-2-RC-Has-Been-Released), I will not repeat all the details again. See the [RC Blog Post](https://blog.abp.io/abp/ABP-IO-Platform-v4-2-RC-Has-Been-Released) for all the features and enhancements.
+
+## Creating New Solutions
+
+You can create a new solution with the ABP Framework version 4.2 by either using the `abp new` command or using the **direct download** tab on the [get started page](https://abp.io/get-started).
+
+> See the [getting started document](https://docs.abp.io/en/abp/latest/Getting-Started) for details.
+
+## How to Upgrade an Existing Solution
+
+### Install/Update the ABP CLI
+
+First of all, install the ABP CLI or upgrade to the latest version.
+
+If you haven't installed yet:
+
+```bash
+dotnet tool install -g Volo.Abp.Cli
+```
+
+To update an existing installation:
+
+```bash
+dotnet tool update -g Volo.Abp.Cli
+```
+
+### ABP UPDATE Command
+
+[ABP CLI](https://docs.abp.io/en/abp/latest/CLI) provides a handy command to update all the ABP related NuGet and NPM packages in your solution with a single command:
+
+```bash
+abp update
+```
+
+Run this command in the root folder of your solution.
+
+## Migration Guide
+
+Check [the migration guide](https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-4_2) for the applications with the version 4.x upgrading to the version 4.2.
+
+> It is strongly recommended to check the migration guide for this version. Especially, the new `IRepository.GetQueryableAsync()` method is a core change should be considered after upgrading the solution.
+
+## About the Next Version
+
+The next feature version will be 4.3. It is planned to release the 4.3 RC (Release Candidate) on March 11 and the final version on March 25, 2021.
+
+We decided to slow down the feature development for the [next milestone](https://github.com/abpframework/abp/milestone/49). We will continue to improve the existing features and introduce new ones, sure, but wanted to have more time for the planning, documentation, creating guides and improving the development experience.
\ No newline at end of file
diff --git a/docs/en/CLI.md b/docs/en/CLI.md
index fc76aa997b..d4a33a2a12 100644
--- a/docs/en/CLI.md
+++ b/docs/en/CLI.md
@@ -31,6 +31,7 @@ Here, the list of all available commands before explaining their details:
* **`update`**: Automatically updates all ABP related NuGet and NPM packages in a solution.
* **`add-package`**: Adds an ABP package to a project.
* **`add-module`**: Adds a [multi-package application module](https://docs.abp.io/en/abp/latest/Modules/Index) to a solution.
+* **`list-modules`**: Lists names of open-source application modules.
* **`get-source`**: Downloads the source code of a module.
* **`generate-proxy`**: Generates client side proxies to use HTTP API endpoints.
* **`remove-proxy`**: Removes previously generated client side proxies.
@@ -202,6 +203,26 @@ abp add-module ProductManagement --new --add-to-solution-file
* `--with-source-code`: Downloads the source code of the module to your solution folder and uses local project references instead of NuGet/NPM packages. This options is always `True` if `--new` is used.
* `--add-to-solution-file`: Adds the downloaded/created module to your solution file, so you will also see the projects of the module when you open the solution on a IDE. (only available when `--with-source-code` is `True`.)
+### list-modules
+
+Lists names of open-source application modules.
+
+Usage
+
+````bash
+abp list-modules [options]
+````
+
+Example:
+
+```bash
+abp list-modules
+```
+
+#### Options
+
+* `--include-pro-modules`: Includes commercial (pro) modules in the output.
+
### get-source
Downloads the source code of a module to your computer.
diff --git a/docs/en/Caching.md b/docs/en/Caching.md
index 042f13ffe0..7dbf02d875 100644
--- a/docs/en/Caching.md
+++ b/docs/en/Caching.md
@@ -242,12 +242,15 @@ In addition, all of the `IDistributedCache` (and `IDistributedCache<
## Batch Operations
-ABP's distributed cache interfaces provide methods to perform batch get/set methods those improves the performance when you want to get or set multiple cache items in a single method call.
+ABP's distributed cache interfaces provide methods to perform batch methods those improves the performance when you want to batch operation multiple cache items in a single method call.
* `SetManyAsync` and `SetMany` methods can be used to set multiple values to the cache.
* `GetManyAsync` and `GetMany` methods can be used to retrieve multiple values from the cache.
+* `GetOrAddManyAsync` and `GetOrAddMany` methods can be used to retrieve multiple values and set missing values from the cache
+* `RefreshManyAsync` and `RefreshMany` methods can be used to resets the sliding expiration timeout of multiple values from the cache
+* `RemoveManyAsync` and `RemoveMany` methods can be used to remove multiple values from the cache
-> These are not standard methods of the ASP.NET Core caching. So, some providers may not support them. They are supported by the [ABP Redis Cache integration package](Redis-Cache.md). If the provider doesn't support, it fallbacks to `SetAsync` and `GetAsync` methods (called once for each item).
+> These are not standard methods of the ASP.NET Core caching. So, some providers may not support them. They are supported by the [ABP Redis Cache integration package](Redis-Cache.md). If the provider doesn't support, it fallbacks to `SetAsync` and `GetAsync` ... methods (called once for each item).
## Advanced Topics
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/POST.md b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/POST.md
new file mode 100644
index 0000000000..f30f31d541
--- /dev/null
+++ b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/POST.md
@@ -0,0 +1,103 @@
+## Using MatBlazor UI Components With the ABP Framework
+
+Hi, in this step by step article, I will show you how to integrate [MatBlazor](https://www.matblazor.com/), a blazor UI components into ABP Framework-based applications.
+
+
+
+*(A screenshot from the example application developed in this article)*
+
+## Create the Project
+
+> First thing is to create the project. ABP Framework offers startup templates to get into business faster.
+
+In this article, I will create a new startup template with EF Core as a database provider and Blazor for UI framework. But if you already have a project with Blazor UI, you don't need to create a new startup template, you can directly implement the following steps to your existing project.
+
+> If you already have a project with the Blazor UI, you can skip this section.
+
+* Before starting the development, we will create a new solution named `MatBlazorSample` (or whatever you want). We will create a new startup template with EF Core as a database provider and Blazor for UI framework by using [ABP CLI](https://docs.abp.io/en/abp/latest/CLI):
+
+````bash
+abp new MatBlazorSample -u blazor
+````
+
+This will create new project inside of `aspnet-core`, so:
+
+````bash
+cd aspnet-core
+````
+
+and
+
+````bash
+dotnet restore
+````
+
+* Our project boilerplate will be ready after the download is finished. Then, we can open the solution in the Visual Studio (or any other IDE) and run the `MatBlazorSample.DbMigrator` to create the database and seed initial data (which creates the admin user, admin role, permissions etc.)
+
+
+
+* After database and initial data created,
+* Run the `MatBlazorSample.HttpApi.Host` to see our server side working and
+* Run the `MatBlazorSample.Blazor` to see our UI working properly.
+
+> _Default login credentials for admin: username is **admin** and password is **1q2w3E\***_
+
+## Install MatBlazor
+
+You can follow [this documentation](https://www.matblazor.com/) to install MatBlazor packages into your computer.
+
+### Adding MatBlazor NuGet Packages
+
+```bash
+Install-Package MatBlazor
+```
+
+### Register MatBlazor Resources
+
+1. Add the following line to the HEAD section of the `wwwroot/index.html` file within the `MatBlazorSample.Blazor` project:
+
+ ```Razor
+
+
+
+
+
+ ```
+
+2. In the `MatBlazorSampleBlazorModule` class, call the `AddMatBlazor()` method from your project's `ConfigureServices()` method:
+
+ ```csharp
+ public override void ConfigureServices(ServiceConfigurationContext context)
+ {
+ var environment = context.Services.GetSingletonInstance();
+ var builder = context.Services.GetSingletonInstance();
+ // ...
+ builder.Services.AddMatBlazor();
+ }
+ ```
+
+3. Register the **MatBlazorSample.Blazor** namespace in the `_Imports.razor` file:
+
+ ```Razor
+ @using MatBlazor
+ ```
+
+## The Sample Application
+
+We have created a sample application with [Table](https://www.matblazor.com/Table) example.
+
+### The Source Code
+
+You can download the source code from [here](https://github.com/abpframework/abp-samples/tree/master/MatBlazorSample).
+
+The related files for this example are marked in the following screenshots.
+
+
+
+
+
+
+
+## Conclusion
+
+In this article, I've explained how to use [MatBlazor](https://www.matblazor.com/) components in your application. ABP Framework is designed so that it can work with any UI library/framework.
\ No newline at end of file
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/example-result.png b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/example-result.png
new file mode 100644
index 0000000000..89a2fecdce
Binary files /dev/null and b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/example-result.png differ
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/initial-project.png b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/initial-project.png
new file mode 100644
index 0000000000..85e71d5692
Binary files /dev/null and b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/initial-project.png differ
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/table-app-contract.png b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/table-app-contract.png
new file mode 100644
index 0000000000..8108cdc606
Binary files /dev/null and b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/table-app-contract.png differ
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/table-application.png b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/table-application.png
new file mode 100644
index 0000000000..7f07af97e1
Binary files /dev/null and b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/table-application.png differ
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/table-web.png b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/table-web.png
new file mode 100644
index 0000000000..0034aec095
Binary files /dev/null and b/docs/en/Community-Articles/2021-01-20-How-to-Integrate-the-MatBlazor-Blazor-Component/table-web.png differ
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/POST.md b/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/POST.md
new file mode 100644
index 0000000000..7a854291d5
--- /dev/null
+++ b/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/POST.md
@@ -0,0 +1,343 @@
+# How to Use PrimeNG Components with the ABP Angular UI
+
+## Introduction
+
+In this article, we will use components of the [PrimeNG](https://www.primefaces.org/primeng/) that is a popular UI component library for Angular with the ABP Framework Angular UI that will be generated via [ABP CLI](https://docs.abp.io/en/abp/latest/CLI).
+
+We will create an organization units page and use PrimeNG's [OrganizationChart](https://primefaces.org/primeng/showcase/#/organizationchart) and [Table](https://primefaces.org/primeng/showcase/#/table) components on the page.
+
+
+
+The UI shown above contains many PrimeNG components. You can reach the source code of this rich UI. Take a look at the source code section below.
+
+> This article does not cover any backend code. I used mock data to provide data source to the components.
+
+## Pre-Requirements
+
+The following tools should be installed on your development machine:
+
+* [.NET Core 5.0+](https://www.microsoft.com/net/download/dotnet-core/)
+* [Node v12 or v14](https://nodejs.org/)
+* [VS Code](https://code.visualstudio.com/) or another IDE
+
+## Source Code
+
+I have prepared a sample project that contains more PrimeNG components than described in this article. You can download the source code [on GitHub](https://github.com/abpframework/abp-samples/tree/master/PrimengSample).
+
+## Creating a New Solution
+
+In this step, we will create a new solution that contains Angular UI and backend startup templates. If you have a startup template with Angular UI, you can skip this step.
+
+Run the following command to install the ABP CLI:
+
+```bash
+dotnet tool install -g Volo.Abp.Cli
+```
+
+...or update:
+
+```bash
+dotnet tool update -g Volo.Abp.Cli
+```
+
+Create a new solution named `AbpPrimengSample` by running the following command:
+
+```bash
+abp new AbpPrimengSample -u angular -csf
+```
+
+See the [ABP CLI documentation](https://docs.abp.io/en/abp/latest/CLI) for all available options.
+
+You can also use the Direct Download tab on the [Get Started](https://abp.io/get-started) page.
+
+## Running the Solution
+
+You can run the solution as described in [here](https://docs.abp.io/en/abp/latest/Getting-Started-Running-Solution?UI=NG&DB=EF&Tiered=No).
+
+## PrimeNG Setup
+
+Open the `angular` folder and run the following command to install packages:
+
+```bash
+npm install
+```
+
+Next, we need to install `primeng` and required packages (`primeicons` and `@angular/cdk`) for the library. Run the command below to install these packages:
+
+```bash
+npm install primeng primeicons @angular/cdk --save
+```
+
+The packages we have installed;
+
+ - `primeng` is the main package that is a component library.
+ - `primeicons` is an icon font library. Many PrimeNG components use this font internally.
+ - `@angular/cdk` is a component dev kit created by the Angular team. Some PrimeNG modules depend on it.
+
+As the last step of the setup, we should add the required style files for the library to `angular.json`:
+
+```js
+//angular.json
+
+"projects": {
+ "AbpPrimengSample": {
+ //...
+ "styles": {
+ "node_modules/primeicons/primeicons.css",
+ "node_modules/primeng/resources/themes/saga-blue/theme.css",
+ "node_modules/primeng/resources/primeng.min.css",
+ //...other styles
+ }
+ }
+}
+```
+
+We have added the `primeng.min.css`, Saga Blue theme's `theme.css`, and `primeicons.css` files to the project. You can choose another theme instead of the Sage Blue. See available themes on the [Get Started](https://www.primefaces.org/primeng/showcase/#/setup) document of the PrimeNG.
+
+
+> You have to restart the running `ng serve` process to see the effect of the changes you made in the `angular.json`.
+
+
+## Creating the Organization Units Page
+
+Run the following command to create a new module named `OrganizationUnits`:
+
+```bash
+npm run ng -- generate module organization-units --route organization-units --module app.module
+```
+
+Then open the `src/route.provider.ts` and add a new route as an array element to add a navigation link labeled "Organization Units" to the menu:
+
+```js
+//route.provider.ts
+
+import { eThemeSharedRouteNames } from '@abp/ng.theme.shared';
+//...
+
+routesService.add([
+ //...
+ {
+ path: '/organization-units',
+ name: 'Organization Units',
+ parentName: eThemeSharedRouteNames.Administration,
+ iconClass: 'fas fa-sitemap',
+ layout: eLayoutType.application,
+ },
+]);
+```
+
+We have created a lazy-loadable module and defined a menu navigation link. We can navigate to the page as shown below:
+
+
+
+## Using the PrimeNG Components
+
+### Implementing the Organization Chart Component
+
+When you would like to use any component from PrimeNG, you have to import the component's module to your module. Since we will use the `OrganizationChart` on the organization units page, we need to import `OrganizationChartModule` into `OrganizationUnitsModule`.
+
+Open the `src/organization-units/organization-units.module.ts` and add the `OrganizationChartModule` to the imports array as shown below:
+
+```js
+import { OrganizationChartModule } from 'primeng/organizationchart';
+//...
+
+@NgModule({
+ //...
+ imports: [
+ //...
+ OrganizationChartModule
+ ],
+})
+export class OrganizationUnitsModule {}
+```
+
+> Since NGCC need to work in some cases, restarting the `ng serve` process would be good when you import any modules from `primeng` package to your module.
+
+Let's define a mock data source for the `OrganizationChartComponent` and add the component to the page.
+
+Open the `src/organization-units/organization-units.component.ts` and add two variables as shown below:
+
+```js
+//...
+import { TreeNode } from 'primeng/api';
+
+@Component(/* component metadata*/)
+export class OrganizationUnitsComponent implements OnInit {
+ //...
+
+ organizationUnits: TreeNode[] = [
+ {
+ label: 'Management',
+ expanded: true,
+ children: [
+ {
+ label: 'Selling',
+ expanded: true,
+ children: [
+ {
+ label: 'Customer Relations',
+ },
+ {
+ label: 'Marketing',
+ },
+ ],
+ },
+ {
+ label: 'Supporting',
+ expanded: true,
+ children: [
+ {
+ label: 'Buying',
+ },
+ {
+ label: 'Human Resources',
+ },
+ ],
+ },
+ ],
+ },
+ ];
+
+ selectedUnit: TreeNode;
+```
+
+- First variable is `organizationUnits`. It provides mock data source to `OrganizationChartComponent`.
+- Second variable is `selectedUnit`. It keeps chosen unit on the chart.
+
+Then, open the `src/organization-units/organization-units.component.html` and replace the file content with the following:
+
+```html
+
+
+
Organization Units
+
+
+
+
+
+```
+
+We have implemented the `OrganizationChart`. The final UI looks like below:
+
+
+
+## Implementing the Table Component
+
+In order to use the `TableComponent`, we have to import the `TableModule` to the `OrganizationUnitsModule`.
+
+Open the `organization-units.module.ts` and add `TableModule` to the imports array as shown below:
+
+```js
+import { TableModule } from 'primeng/table';
+//...
+
+@NgModule({
+ //...
+ imports: [
+ //...
+ TableModule
+ ],
+})
+export class OrganizationUnitsModule {}
+```
+
+Open the `organization-units.component.ts` and add a variable named `members` with initial value and add a getter named `tableData` as shown below:
+
+```js
+//...
+export class OrganizationUnitsComponent implements OnInit {
+ //...
+
+ members = [
+ {
+ fullName: 'John Doe',
+ username: 'John.Doe',
+ phone: '+1-202-555-0125',
+ email: 'john.doe@example.com',
+ parent: 'Customer Relations',
+ },
+ {
+ fullName: 'Darrion Walter',
+ username: 'Darrion.Walter',
+ phone: '+1-262-155-0355',
+ email: 'Darrion_Walter@example.com',
+ parent: 'Marketing',
+ },
+ {
+ fullName: 'Rosa Labadie',
+ username: 'Rosa.Labadie',
+ phone: '+1-262-723-2255',
+ email: 'Rosa.Labadie@example.com',
+ parent: 'Marketing',
+ },
+ {
+ fullName: 'Adelle Hills',
+ username: 'Adelle.Hills',
+ phone: '+1-491-112-9011',
+ email: 'Adelle.Hills@example.com',
+ parent: 'Buying',
+ },
+ {
+ fullName: 'Brian Hane',
+ username: 'Brian.Hane',
+ phone: '+1-772-509-1823',
+ email: 'Brian.Hane@example.com',
+ parent: 'Human Resources',
+ },
+ ];
+
+ get tableData() {
+ return this.members.filter(user => user.parent === this.selectedUnit.label);
+ }
+```
+
+What we have done above?
+
+- We defined a variable named `members` to provide mock data to the table.
+- We have defined a getter named `tableData` to provide filtered data source to the table using `members` variable.
+
+We are now ready to add the table to the HTML template.
+
+Open the `organization-units.component.html`, find the `p-organizationChart` tag and place the following code to the bottom of this tag:
+
+```html
+
+
Members of {{ selectedUnit.label }}
+
+
+
+
+
Name
+
Username
+
Email
+
Phone
+
+
+
+
+
{{ member.fullName }}
+
{{ member.username }}
+
{{ member.email }}
+
{{ member.phone }}
+
+
+
+
+```
+
+We have added a new `div` that contains the `TableComponent`. The table appears when an organization unit is selected.
+The table contains 4 columns which are name, username, email, and phone for displaying the members' information.
+
+After adding the table, the final UI looks like this:
+
+
+
+
+## Conclusion
+
+We have implemented the PrimeNG component library on the ABP Angular UI project and used two components on a page in a short time. You can use any PrimeNG components by following the documentation. The ABP Angular UI will not block you in any case.
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/intro.gif b/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/intro.gif
new file mode 100644
index 0000000000..5f96a65422
Binary files /dev/null and b/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/intro.gif differ
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/organization-chart.jpg b/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/organization-chart.jpg
new file mode 100644
index 0000000000..9d18f35ba1
Binary files /dev/null and b/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/organization-chart.jpg differ
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/organization-units-menu-item.jpg b/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/organization-units-menu-item.jpg
new file mode 100644
index 0000000000..dc6111f553
Binary files /dev/null and b/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/organization-units-menu-item.jpg differ
diff --git a/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/table.gif b/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/table.gif
new file mode 100644
index 0000000000..d27dcb26bd
Binary files /dev/null and b/docs/en/Community-Articles/2021-01-20-How-to-Use-PrimeNG-Components-with-the-ABP-Angular-UI/table.gif differ
diff --git a/docs/en/Customizing-Application-Modules-Overriding-Services.md b/docs/en/Customizing-Application-Modules-Overriding-Services.md
index ab6f29816b..081b142ad7 100644
--- a/docs/en/Customizing-Application-Modules-Overriding-Services.md
+++ b/docs/en/Customizing-Application-Modules-Overriding-Services.md
@@ -196,12 +196,16 @@ This example replaces the `AccountController` (An API Controller defined in the
**`[ExposeServices(typeof(AccountController))]` is essential** here since it registers this controller for the `AccountController` in the dependency injection system. `[Dependency(ReplaceServices = true)]` is also recommended to clear the old registration (even the ASP.NET Core DI system selects the last registered one).
-In addition, The `AccountController` will be removed from [`ApplicationModel`](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.applicationmodels.applicationmodel.controllers) because it defines `ExposeServicesAttribute`. If you don't want to remove it, you can configure `AbpAspNetCoreMvcOptions`:
+In addition, the `MyAccountController` will be removed from [`ApplicationModel`](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.applicationmodels.applicationmodel.controllers) because it defines `ExposeServicesAttribute`.
+
+If `IncludeSelf = true` is specified, i.e. `[ExposeServices(typeof(AccountController), IncludeSelf = true)]`, then `AccountController` will be removed instead. This is useful for **extending** a controller.
+
+If you don't want to remove either controller, you can configure `AbpAspNetCoreMvcOptions`:
```csharp
Configure(options =>
{
- options.IgnoredControllersOnModelExclusion.AddIfNotContains(typeof(AccountController));
+ options.IgnoredControllersOnModelExclusion.AddIfNotContains(typeof(MyAccountController));
});
```
diff --git a/docs/en/Dependency-Injection.md b/docs/en/Dependency-Injection.md
index 335e829461..f94901ad84 100644
--- a/docs/en/Dependency-Injection.md
+++ b/docs/en/Dependency-Injection.md
@@ -1,6 +1,6 @@
# Dependency Injection
-ABP's Dependency Injection system is developed based on Microsoft's [dependency injection extension](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection) library (Microsoft.Extensions.DependencyInjection nuget package). So, it's documentation is valid in ABP too.
+ABP's Dependency Injection system is developed based on Microsoft's [dependency injection extension](https://medium.com/volosoft/asp-net-core-dependency-injection-best-practices-tips-tricks-c6e9c67f9d96) library (Microsoft.Extensions.DependencyInjection nuget package). So, it's documentation is valid in ABP too.
> While ABP has no core dependency to any 3rd-party DI provider, it's required to use a provider that supports dynamic proxying and some other advanced features to make some ABP features properly work. Startup templates come with Autofac installed. See [Autofac integration](Autofac-Integration.md) document for more information.
diff --git a/docs/en/Distributed-Event-Bus-RabbitMQ-Integration.md b/docs/en/Distributed-Event-Bus-RabbitMQ-Integration.md
index 9587a111bf..3d99e1e3cf 100644
--- a/docs/en/Distributed-Event-Bus-RabbitMQ-Integration.md
+++ b/docs/en/Distributed-Event-Bus-RabbitMQ-Integration.md
@@ -90,7 +90,7 @@ You can use any of the [ConnectionFactry](http://rabbitmq.github.io/rabbitmq-dot
**Example: Specify the connection port**
-````csharp
+````json
{
"RabbitMQ": {
"Connections": {
@@ -103,6 +103,26 @@ You can use any of the [ConnectionFactry](http://rabbitmq.github.io/rabbitmq-dot
}
````
+If you need to connect to the RabbitMQ cluster, you can use the `;` character to separate the host names.
+
+**Example: Connect to the RabbitMQ cluster**
+
+```json
+{
+ "RabbitMQ": {
+ "Connections": {
+ "Default": {
+ "HostName": "123.123.123.123;234.234.234.234"
+ }
+ },
+ "EventBus": {
+ "ClientName": "MyClientName",
+ "ExchangeName": "MyExchangeName"
+ }
+ }
+}
+```
+
### The Options Classes
`AbpRabbitMqOptions` and `AbpRabbitMqEventBusOptions` classes can be used to configure the connection strings and event bus options for the RabbitMQ.
diff --git a/docs/en/Domain-Driven-Design-Implementation-Guide.md b/docs/en/Domain-Driven-Design-Implementation-Guide.md
index 9341df703b..cf2ce6bf14 100644
--- a/docs/en/Domain-Driven-Design-Implementation-Guide.md
+++ b/docs/en/Domain-Driven-Design-Implementation-Guide.md
@@ -754,7 +754,8 @@ namespace IssueTracking.Issues
{
var daysAgo30 = DateTime.Now.Subtract(TimeSpan.FromDays(30));
- return await DbSet.Where(i =>
+ var dbSet = await GetDbSetAsync();
+ return await dbSet.Where(i =>
//Open
!i.IsClosed &&
@@ -906,7 +907,8 @@ public class EfCoreIssueRepository :
public async Task> GetIssuesAsync(ISpecification spec)
{
- return await DbSet
+ var dbSet = await GetDbSetAsync();
+ return await dbSet
.Where(spec.ToExpression())
.ToListAsync();
}
@@ -952,8 +954,9 @@ public class IssueAppService : ApplicationService, IIssueAppService
public async Task DoItAsync()
{
+ var queryable = await _issueRepository.GetQueryableAsync();
var issues = AsyncExecuter.ToListAsync(
- _issueRepository.Where(new InActiveIssueSpecification())
+ queryable.Where(new InActiveIssueSpecification())
);
}
}
@@ -996,8 +999,9 @@ public class IssueAppService : ApplicationService, IIssueAppService
public async Task DoItAsync(Guid milestoneId)
{
+ var queryable = await _issueRepository.GetQueryableAsync();
var issues = AsyncExecuter.ToListAsync(
- _issueRepository
+ queryable
.Where(
new InActiveIssueSpecification()
.And(new MilestoneSpecification(milestoneId))
diff --git a/docs/en/Entity-Framework-Core.md b/docs/en/Entity-Framework-Core.md
index b2b216397a..a2c0e79996 100644
--- a/docs/en/Entity-Framework-Core.md
+++ b/docs/en/Entity-Framework-Core.md
@@ -236,7 +236,8 @@ public class BookRepository
public async Task DeleteBooksByType(BookType type)
{
- await DbContext.Database.ExecuteSqlRawAsync(
+ var dbContext = await GetDbContextAsync();
+ await dbContext.Database.ExecuteSqlRawAsync(
$"DELETE FROM Books WHERE Type = {(int)type}"
);
}
@@ -344,7 +345,7 @@ You have different options when you want to load the related entities while quer
#### Repository.WithDetails
-`IRepository.WithDetails(...)` can be used to include one relation collection/property to the query.
+`IRepository.WithDetailsAsync(...)` can be used to get an `IQueryable` by including one relation collection/property.
**Example: Get an order with lines**
@@ -355,7 +356,7 @@ using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Domain.Services;
-namespace MyCrm
+namespace AbpDemo.Orders
{
public class OrderManager : DomainService
{
@@ -368,35 +369,39 @@ namespace MyCrm
public async Task TestWithDetails(Guid id)
{
- var query = _orderRepository
- .WithDetails(x => x.Lines)
- .Where(x => x.Id == id);
-
+ //Get a IQueryable by including sub collections
+ var queryable = await _orderRepository.WithDetailsAsync(x => x.Lines);
+
+ //Apply additional LINQ extension methods
+ var query = queryable.Where(x => x.Id == id);
+
+ //Execute the query and get the result
var order = await AsyncExecuter.FirstOrDefaultAsync(query);
}
}
}
````
-> `AsyncExecuter` is used to execute async LINQ extensions without depending on the EF Core. If you add EF Core NuGet package reference to your project, then you can directly use `await _orderRepository.WithDetails(x => x.Lines).FirstOrDefaultAsync()`. But, this time you depend on the EF Core in your domain layer. See the [repository document](Repositories.md) to learn more.
+> `AsyncExecuter` is used to execute async LINQ extensions without depending on the EF Core. If you add EF Core NuGet package reference to your project, then you can directly use `await query.FirstOrDefaultAsync()`. But, this time you depend on the EF Core in your domain layer. See the [repository document](Repositories.md) to learn more.
**Example: Get a list of orders with their lines**
````csharp
public async Task TestWithDetails()
{
- var query = _orderRepository
- .WithDetails(x => x.Lines);
+ //Get a IQueryable by including sub collections
+ var queryable = await _orderRepository.WithDetailsAsync(x => x.Lines);
- var orders = await AsyncExecuter.ToListAsync(query);
+ //Execute the query and get the result
+ var orders = await AsyncExecuter.ToListAsync(queryable);
}
````
-> `WithDetails` method can get more than one expression parameter if you need to include more than one navigation property or collection.
+> `WithDetailsAsync` method can get more than one expression parameter if you need to include more than one navigation property or collection.
#### DefaultWithDetailsFunc
-If you don't pass any expression to the `WithDetails` method, then it includes all the details using the `DefaultWithDetailsFunc` option you provide.
+If you don't pass any expression to the `WithDetailsAsync` method, then it includes all the details using the `DefaultWithDetailsFunc` option you provide.
You can configure `DefaultWithDetailsFunc` for an entity in the `ConfigureServices` method of your [module](Module-Development-Basics.md) in your `EntityFrameworkCore` project.
@@ -419,12 +424,15 @@ Then you can use the `WithDetails` without any parameter:
````csharp
public async Task TestWithDetails()
{
- var query = _orderRepository.WithDetails();
- var orders = await AsyncExecuter.ToListAsync(query);
+ //Get a IQueryable by including all sub collections
+ var queryable = await _orderRepository.WithDetailsAsync();
+
+ //Execute the query and get the result
+ var orders = await AsyncExecuter.ToListAsync(queryable);
}
````
-`WithDetails()` executes the expression you've setup as the `DefaultWithDetailsFunc`.
+`WithDetailsAsync()` executes the expression you've setup as the `DefaultWithDetailsFunc`.
#### Repository Get/Find Methods
@@ -466,7 +474,7 @@ public async Task TestWithDetails()
#### Alternatives
-The repository patters tries to encapsulate the EF Core, so your options are limited. If you need an advanced scenario, you can follow one of the options;
+The repository pattern tries to encapsulate the EF Core, so your options are limited. If you need an advanced scenario, you can follow one of the options;
* Create a custom repository method and use the complete EF Core API.
* Reference to the `Volo.Abp.EntityFrameworkCore` package from your project. In this way, you can directly use `Include` and `ThenInclude` in your code.
@@ -550,24 +558,15 @@ See also [lazy loading document](https://docs.microsoft.com/en-us/ef/core/queryi
In most cases, you want to hide EF Core APIs behind a repository (this is the main purpose of the repository pattern). However, if you want to access the `DbContext` instance over the repository, you can use `GetDbContext()` or `GetDbSet()` extension methods. Example:
````csharp
-public class BookService
+public async Task TestAsync()
{
- private readonly IRepository _bookRepository;
-
- public BookService(IRepository bookRepository)
- {
- _bookRepository = bookRepository;
- }
-
- public void Foo()
- {
- DbContext dbContext = _bookRepository.GetDbContext();
- DbSet books = _bookRepository.GetDbSet();
- }
+ var dbContext = await _orderRepository.GetDbContextAsync();
+ var dbSet = await _orderRepository.GetDbSetAsync();
+ //var dbSet = dbContext.Set(); //Alternative, when you have the DbContext
}
````
-* `GetDbContext` returns a `DbContext` reference instead of `BookStoreDbContext`. You can cast it, however in most cases you don't need it.
+* `GetDbContextAsync` returns a `DbContext` reference instead of `BookStoreDbContext`. You can cast it if you need. However, you don't need it in most cases.
> Important: You must reference to the `Volo.Abp.EntityFrameworkCore` package from the project you want to access to the `DbContext`. This breaks encapsulation, but this is what you want in that case.
@@ -742,32 +741,36 @@ If you have better logic or using an external library for bulk operations, you c
- You may use example template below:
```csharp
-public class MyCustomEfCoreBulkOperationProvider : IEfCoreBulkOperationProvider, ITransientDependency
-{
- public async Task DeleteManyAsync(IEfCoreRepository repository,
- IEnumerable entities,
- bool autoSave,
- CancellationToken cancellationToken)
+public class MyCustomEfCoreBulkOperationProvider
+ : IEfCoreBulkOperationProvider, ITransientDependency
+{
+ public async Task DeleteManyAsync(
+ IEfCoreRepository repository,
+ IEnumerable entities,
+ bool autoSave,
+ CancellationToken cancellationToken)
where TDbContext : IEfCoreDbContext
where TEntity : class, IEntity
{
// Your logic here.
}
- public async Task InsertManyAsync(IEfCoreRepository repository,
- IEnumerable entities,
- bool autoSave,
- CancellationToken cancellationToken)
+ public async Task InsertManyAsync(
+ IEfCoreRepository repository,
+ IEnumerable entities,
+ bool autoSave,
+ CancellationToken cancellationToken)
where TDbContext : IEfCoreDbContext
where TEntity : class, IEntity
{
// Your logic here.
}
- public async Task UpdateManyAsync(IEfCoreRepository repository,
- IEnumerable entities,
- bool autoSave,
- CancellationToken cancellationToken)
+ public async Task UpdateManyAsync(
+ IEfCoreRepository repository,
+ IEnumerable entities,
+ bool autoSave,
+ CancellationToken cancellationToken)
where TDbContext : IEfCoreDbContext
where TEntity : class, IEntity
{
@@ -779,3 +782,4 @@ public class MyCustomEfCoreBulkOperationProvider : IEfCoreBulkOperationProvider,
## See Also
* [Entities](Entities.md)
+* [Repositories](Repositories.md)
diff --git a/docs/en/Migration-Guides/Abp-4_2.md b/docs/en/Migration-Guides/Abp-4_2.md
new file mode 100644
index 0000000000..084ae24caa
--- /dev/null
+++ b/docs/en/Migration-Guides/Abp-4_2.md
@@ -0,0 +1,101 @@
+# ABP version 4.2 Migration Guide
+
+This version has no breaking changes but there is an important change on the repositories that should be applied for your application for an important performance and scalability gain.
+
+## IRepository.GetQueryableAsync
+
+`IRepository` interface inherits `IQueryable`, so you can directly use the standard LINQ extension methods, like `Where`, `OrderBy`, `First`, `Sum`... etc.
+
+**Example: Using LINQ directly over the repository object**
+
+````csharp
+public class BookAppService : ApplicationService, IBookAppService
+{
+ private readonly IRepository _bookRepository;
+
+ public BookAppService(IRepository bookRepository)
+ {
+ _bookRepository = bookRepository;
+ }
+
+ public async Task DoItInOldWayAsync()
+ {
+ //Apply any standard LINQ extension method
+ var query = _bookRepository
+ .Where(x => x.Price > 10)
+ .OrderBy(x => x.Name);
+
+ //Execute the query asynchronously
+ var books = await AsyncExecuter.ToListAsync(query);
+ }
+}
+````
+
+*See [the documentation](https://docs.abp.io/en/abp/4.2/Repositories#iqueryable-async-operations) if you wonder what is the `AsyncExecuter`.*
+
+**Beginning from the version 4.2, the recommended way is using `IRepository.GetQueryableAsync()` to obtain an `IQueryable`, then use the LINQ extension methods over it.**
+
+**Example: Using the new GetQueryableAsync method**
+
+````csharp
+public async Task DoItInNewWayAsync()
+{
+ //Use GetQueryableAsync to obtain the IQueryable first
+ var queryable = await _bookRepository.GetQueryableAsync();
+
+ //Then apply any standard LINQ extension method
+ var query = queryable
+ .Where(x => x.Price > 10)
+ .OrderBy(x => x.Name);
+
+ //Finally, execute the query asynchronously
+ var books = await AsyncExecuter.ToListAsync(query);
+}
+````
+
+ABP may start a database transaction when you get an `IQueryable` (If current [Unit Of Work](https://docs.abp.io/en/abp/latest/Unit-Of-Work) is transactional). In this new way, it is possible to **start the database transaction in an asynchronous way**. Previously, we could not get the advantage of asynchronous while starting the transactions.
+
+> **The new way has a significant performance and scalability gain. The old usage (directly using LINQ over the repositories) will be removed in the next major version (5.0).** You have a lot of time for the change, but we recommend to immediately take the action since the old usage has a big **scalability problem**.
+
+### Actions to Take
+
+* Use the repository's queryable feature as explained before.
+* If you've overridden `CreateFilteredQuery` in a class derived from `CrudAppService`, you should override the `CreateFilteredQueryAsync` instead and remove the `CreateFilteredQuery` in your class.
+* If you've overridden `WithDetails` in your custom repositories, remove it and override `WithDetailsAsync` instead.
+* If you've used `DbContext` or `DbSet` properties in your custom repositories, use `GetDbContextAsync()` and `GetDbSetAsync()` methods instead of them.
+
+You can re-build your solution and check the `Obsolete` warnings to find some of the usages need to change.
+
+#### About IRepository Async Extension Methods
+
+Using IRepository Async Extension Methods has no such a problem. The examples below are pretty fine:
+
+````csharp
+var countAll = await _personRepository
+ .CountAsync();
+
+var count = await _personRepository
+ .CountAsync(x => x.Name.StartsWith("A"));
+
+var book1984 = await _bookRepository
+ .FirstOrDefaultAsync(x => x.Name == "John");
+````
+
+See the [repository documentation](https://docs.abp.io/en/abp/4.2/Repositories#iqueryable-async-operations) to understand the relation between `IQueryable` and asynchronous operations.
+
+## .NET Package Upgrades
+
+ABP uses the latest 5.0.* .NET packages. If your application is using 5.0.0 packages, you may get an error on build. We recommend to depend on the .NET packages like `5.0.*` in the `.csproj` files to use the latest patch versions.
+
+Example:
+
+````xml
+
+````
+
+## Blazorise Library Upgrade
+
+If you are upgrading to 4.2, you also need also upgrade the following packages in your Blazor application;
+
+* `Blazorise.Bootstrap` to `0.9.3-preview6`
+* `Blazorise.Icons.FontAwesome` to `0.9.3-preview6`
\ No newline at end of file
diff --git a/docs/en/Migration-Guides/Index.md b/docs/en/Migration-Guides/Index.md
index 5973ee0a0d..26fe825f50 100644
--- a/docs/en/Migration-Guides/Index.md
+++ b/docs/en/Migration-Guides/Index.md
@@ -1,5 +1,6 @@
# ABP Framework Migration Guides
-* [3.3.x to 4.0 Migration Guide](Abp-4_0.md)
-* [2.9.x to 3.0 Migration Guide](../UI/Angular/Migration-Guide-v3.md)
+* [4.x to 4.2](Abp-4_2.md)
+* [3.3.x to 4.0](Abp-4_0.md)
+* [2.9.x to 3.0](../UI/Angular/Migration-Guide-v3.md)
diff --git a/docs/en/MongoDB.md b/docs/en/MongoDB.md
index 7fae9c3892..a12d216b3d 100644
--- a/docs/en/MongoDB.md
+++ b/docs/en/MongoDB.md
@@ -149,7 +149,7 @@ public class Book : AggregateRoot
}
```
-(`BookType` is a simple enum here) And you want to create a new `Book` entity in a [domain service](Domain-Services.md):
+(`BookType` is a simple `enum` here) And you want to create a new `Book` entity in a [domain service](Domain-Services.md):
```csharp
public class BookManager : DomainService
@@ -215,7 +215,8 @@ public class BookRepository :
BookType type,
CancellationToken cancellationToken = default(CancellationToken))
{
- await Collection.DeleteManyAsync(
+ var collection = await GetCollectionAsync(cancellationToken);
+ await collection.DeleteManyAsync(
Builders.Filter.Eq(b => b.Type, type),
cancellationToken
);
@@ -253,7 +254,7 @@ public async override Task DeleteAsync(
### Access to the MongoDB API
-In most cases, you want to hide MongoDB APIs behind a repository (this is the main purpose of the repository). However, if you want to access the MongoDB API over the repository, you can use `GetDatabase()` or `GetCollection()` extension methods. Example:
+In most cases, you want to hide MongoDB APIs behind a repository (this is the main purpose of the repository). However, if you want to access the MongoDB API over the repository, you can use `GetDatabaseAsync()`, `GetCollectionAsync()` or `GetAggregateAsync()` extension methods. Example:
```csharp
public class BookService
@@ -265,10 +266,11 @@ public class BookService
_bookRepository = bookRepository;
}
- public void Foo()
+ public async Task FooAsync()
{
- IMongoDatabase database = _bookRepository.GetDatabase();
- IMongoCollection books = _bookRepository.GetCollection();
+ IMongoDatabase database = await _bookRepository.GetDatabaseAsync();
+ IMongoCollection books = await _bookRepository.GetCollectionAsync();
+ IAggregateFluent bookAggregate = await _bookRepository.GetAggregateAsync();
}
}
```
@@ -390,36 +392,45 @@ If you have better logic or using an external library for bulk operations, you c
- You may use example template below:
```csharp
-public class MyCustomMongoDbBulkOperationProvider : IMongoDbBulkOperationProvider, ITransientDependency
+public class MyCustomMongoDbBulkOperationProvider
+ : IMongoDbBulkOperationProvider, ITransientDependency
{
- public async Task DeleteManyAsync(IMongoDbRepository repository,
- IEnumerable entities,
- IClientSessionHandle sessionHandle,
- bool autoSave,
- CancellationToken cancellationToken)
+ public async Task DeleteManyAsync(
+ IMongoDbRepository repository,
+ IEnumerable entities,
+ IClientSessionHandle sessionHandle,
+ bool autoSave,
+ CancellationToken cancellationToken)
where TEntity : class, IEntity
{
// Your logic here.
}
- public async Task InsertManyAsync(IMongoDbRepository repository,
- IEnumerable entities,
- IClientSessionHandle sessionHandle,
- bool autoSave,
- CancellationToken cancellationToken)
+ public async Task InsertManyAsync(
+ IMongoDbRepository repository,
+ IEnumerable entities,
+ IClientSessionHandle sessionHandle,
+ bool autoSave,
+ CancellationToken cancellationToken)
where TEntity : class, IEntity
{
// Your logic here.
}
- public async Task UpdateManyAsync(IMongoDbRepository repository,
- IEnumerable entities,
- IClientSessionHandle sessionHandle,
- bool autoSave,
- CancellationToken cancellationToken)
+ public async Task UpdateManyAsync(
+ IMongoDbRepository repository,
+ IEnumerable entities,
+ IClientSessionHandle sessionHandle,
+ bool autoSave,
+ CancellationToken cancellationToken)
where TEntity : class, IEntity
{
// Your logic here.
}
}
-```
\ No newline at end of file
+```
+
+## See Also
+
+* [Entities](Entities.md)
+* [Repositories](Repositories.md)
\ No newline at end of file
diff --git a/docs/en/Repositories.md b/docs/en/Repositories.md
index a2eb385094..3d0ea84821 100644
--- a/docs/en/Repositories.md
+++ b/docs/en/Repositories.md
@@ -222,7 +222,8 @@ public class PersonRepository : EfCoreRepository, IPe
public async Task FindByNameAsync(string name)
{
- return await DbContext.Set()
+ var dbSet = await GetDbSetAsync();
+ return await dbSet.Set()
.Where(p => p.Name == name)
.FirstOrDefaultAsync();
}
@@ -235,12 +236,13 @@ You can directly access the data access provider (`DbContext` in this case) to p
## IQueryable & Async Operations
-`IRepository` inherits from `IQueryable`, that means you can **directly use LINQ extension methods** on it, as shown in the example of the "*Generic Repositories*" section above.
+`IRepository` provides `GetQueryableAsync()` to obtain an `IQueryable`, that means you can **directly use LINQ extension methods** on it, as shown in the example of the "*Querying / LINQ over the Repositories*" section above.
**Example: Using the `Where(...)` and the `ToList()` extension methods**
````csharp
-var people = _personRepository
+var queryable = await _personRepository.GetQueryableAsync();
+var people = queryable
.Where(p => p.Name.Contains(nameFilter))
.ToList();
````
@@ -269,7 +271,8 @@ When you add the NuGet package to your project, you can take full power of the E
**Example: Directly using the `ToListAsync()` after adding the EF Core package**
````csharp
-var people = _personRepository
+var queryable = await _personRepository.GetQueryableAsync();
+var people = queryable
.Where(p => p.Name.Contains(nameFilter))
.ToListAsync();
````
@@ -285,7 +288,8 @@ If you are using [MongoDB](MongoDB.md), you need to add the [Volo.Abp.MongoDB](h
**Example: Cast `IQueryable` to `IMongoQueryable` and use `ToListAsync()`**
````csharp
-var people = ((IMongoQueryable)_personRepository
+var queryable = await _personRepository.GetQueryableAsync();
+var people = ((IMongoQueryable) queryable
.Where(p => p.Name.Contains(nameFilter)))
.ToListAsync();
````
@@ -312,10 +316,11 @@ The standard LINQ extension methods are supported: *AllAsync, AnyAsync, AverageA
This approach still **has a limitation**. You need to call the extension method directly on the repository object. For example, the below usage is **not supported**:
```csharp
-var count = await _bookRepository.Where(x => x.Name.Contains("A")).CountAsync();
+var queryable = await _bookRepository.GetQueryableAsync();
+var count = await queryable.Where(x => x.Name.Contains("A")).CountAsync();
```
-This is because the object returned from the `Where` method is not a repository object, it is a standard `IQueryable` interface. See the other options for such cases.
+This is because the `CountAsync()` method in this example is called on a `IQueryable` interface, not on the repository object. See the other options for such cases.
This method is suggested **wherever possible**.
@@ -352,8 +357,11 @@ namespace AbpDemo
public async Task> GetListAsync(string name)
{
+ //Obtain the IQueryable
+ var queryable = await _productRepository.GetQueryableAsync();
+
//Create the query
- var query = _productRepository
+ var query = queryable
.Where(p => p.Name.Contains(name))
.OrderBy(p => p.Name);
diff --git a/docs/en/Road-Map.md b/docs/en/Road-Map.md
index 6f4213a6bd..0920639106 100644
--- a/docs/en/Road-Map.md
+++ b/docs/en/Road-Map.md
@@ -18,4 +18,4 @@ You can always check the milestone planning and the prioritized backlog issues o
The backlog items are subject to change. We are adding new items and changing priorities based on the community feedbacks and goals of the project.
-Vote for your favorite feature on the related GitHub issues (and write your thoughts). You can create an issue on [the GitHub repository](https://github.com/abpframework/abp) for your feature requests, but first search in in the existing issues.
\ No newline at end of file
+Vote for your favorite feature on the related GitHub issues (and write your thoughts). You can create an issue on [the GitHub repository](https://github.com/abpframework/abp) for your feature requests, but first search in the existing issues.
diff --git a/docs/en/Specifications.md b/docs/en/Specifications.md
index 036baa749e..bfe1d031d3 100644
--- a/docs/en/Specifications.md
+++ b/docs/en/Specifications.md
@@ -122,7 +122,8 @@ namespace MyProject
public async Task> GetCustomersCanBuyAlcohol()
{
- var query = _customerRepository.Where(
+ var queryable = await _customerRepository.GetQueryableAsync();
+ var query = queryable.Where(
new Age18PlusCustomerSpecification().ToExpression()
);
@@ -137,7 +138,8 @@ namespace MyProject
Actually, using the `ToExpression()` method is not necessary since the specifications are automatically casted to Expressions. This would also work:
````csharp
-var query = _customerRepository.Where(
+var queryable = await _customerRepository.GetQueryableAsync();
+var query = queryable.Where(
new Age18PlusCustomerSpecification()
);
````
diff --git a/docs/en/Startup-Templates/Module.md b/docs/en/Startup-Templates/Module.md
index 2dc0896c65..84b7525944 100644
--- a/docs/en/Startup-Templates/Module.md
+++ b/docs/en/Startup-Templates/Module.md
@@ -1,4 +1,4 @@
-# MVC Module Startup Template
+# Module Startup Template
This template can be used to create a **reusable [application module](../Modules/Index.md)** based on the [module development best practices & conventions](../Best-Practices/Index.md). It is also suitable for creating **microservices** (with or without UI).
@@ -20,6 +20,20 @@ abp new Acme.IssueManagement -t module
- `Acme.IssueManagement` is the solution name, like *YourCompany.YourProduct*. You can use single level, two-levels or three-levels naming.
+### Specify the UI Framework
+
+This template provides multiple UI frameworks:
+
+* `mvc`: ASP.NET Core MVC UI with Razor Pages (default)
+* `blazor`: Blazor UI
+* `angular`: Angular UI
+
+Use `-u` or `--ui` option to specify the UI framework:
+
+````bash
+abp new Acme.IssueManagement -t module -u angular
+````
+
### Without User Interface
The template comes with an MVC UI by default. You can use `--no-ui` option to not include the UI layer.
@@ -160,3 +174,91 @@ You should run the application with the given order:
- First, run the `.IdentityServer` since other applications depends on it.
- Then run the `.HttpApi.Host` since it is used by the `.Web.Host` application.
- Finally, you can run the `.Web.Host` project and login to the application using `admin` as the username and `1q2w3E*` as the password.
+
+## UI
+
+### Angular UI
+
+If you choose `Angular` as the UI framework (using the `-u angular` option), the solution will have a folder called `angular` in it. This is where the client-side code is located. When you open that folder in an IDE, the folder structure will look like below:
+
+
+
+* _angular/projects/issue-management_ folder contains the Angular module project.
+* _angular/projects/dev-app_ folder contains a development application that runs your module.
+
+The server-side is similar to the solution described above. `*.HttpApi.Host` project serves the API and the `Angular` demo application consumes it. You will not need to run the `.Web.Host` project though.
+
+#### How to Run the Angular Development App
+
+For module development, you will need the `dev-app` project up and running. So, here is how we can start the development server.
+
+First, we need to install dependencies:
+
+1. Open your terminal at the root folder, i.e. `angular`.
+2. Run `yarn` or `npm install`.
+
+The dependencies will be installed and some of them are ABP modules published as NPM packages. To see all ABP packages, you can run the following command in the `angular` folder:
+
+```bash
+yarn list --pattern abp
+```
+
+> There is no equivalent of this command in npm.
+
+The module you will develop depends on two of these ABP packages: _@abp/ng.core_ and _@abp/ng.theme.shared_. Rest of the ABP modules are included in _package.json_ because of the `dev-app` project.
+
+Once all dependencies are installed, follow the steps below to serve your development app:
+
+1. Make sure `.IdentityServer` and `*.HttpApi.Host` projects are up and running.
+2. Open your terminal at the root folder, i.e. `angular`.
+3. Run `yarn start` or `npm start`.
+
+
+
+The issue management page is empty in the beginning. You may change the content in `IssueManagementComponent` at the _angular/projects/issue-management/src/lib/issue-management.component.ts_ path and observe that the view changes accordingly.
+
+Now, let's have a closer look at some key elements of your project.
+
+#### Main Module
+
+`IssueManagementModule` at the _angular/projects/issue-management/src/lib/issue-management.module.ts_ path is the main module of your module project. There are a few things worth mentioning in it:
+
+- Essential ABP modules, i.e. `CoreModule` and `ThemeSharedModule`, are imported.
+- `IssueManagementRoutingModule` is imported.
+- `IssueManagementComponent` is declared.
+- It is prepared for configurability. The `forLazy` static method enables [a configuration to be passed to the module when it is loaded by the router](https://volosoft.com/blog/how-to-configure-angular-modules-loaded-by-the-router).
+
+
+#### Main Routing Module
+
+`IssueManagementRoutingModule` at the _angular/projects/issue-management/src/lib/issue-management-routing.module.ts_ path is the main routing module of your module project. It currently does two things:
+
+- Loads `DynamicLayoutComponent` at base path it is given.
+- Loads `IssueManagementComponent` as child to the layout, again at the given base path.
+
+You can rearrange this module to load more than one component at different routes, but you need to update the route provider at _angular/projects/issue-management/config/src/providers/route.provider.ts_ to match the new routing structure with the routes in the menu. Please check [Modifying the Menu](../UI/Angular/Modifying-the-Menu.md) to see how route providers work.
+
+#### Config Module
+
+There is a config module at the _angular/projects/issue-management/config/src/issue-management-config.module.ts_ path. The static `forRoot` method of this module is supposed to be called at the route level. So, you may assume the following will take place:
+
+```js
+@NgModule({
+ imports: [
+ /* other imports */
+
+ IssueManagementConfigModule.forRoot(),
+ ],
+
+ /* rest of the module meta data */
+})
+export class AppModule {}
+```
+
+You can use this static method to configure an application that uses your module project. An example of such configuration is already implemented and the `ISSUE_MANAGEMENT_ROUTE_PROVIDERS` token is provided here. The method can take options which enables further configuration possibilities.
+
+The difference between the `forRoot` method of the config module and the `forLazy` method of the main module is that, for smallest bundle size, the former should only be used when you have to configure an app before your module is even loaded.
+
+#### Testing Angular UI
+
+Please see the [testing document](../UI/Angular/Testing.md).
diff --git a/docs/en/Tutorials/Part-1.md b/docs/en/Tutorials/Part-1.md
index 3348679420..4667b8e539 100644
--- a/docs/en/Tutorials/Part-1.md
+++ b/docs/en/Tutorials/Part-1.md
@@ -189,6 +189,8 @@ Add-Migration "Created_Book_Entity"

+> If you get an error like "*Your startup project ... doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work*", right click to the `Acme.BookStore.EntityFrameworkCore.DbMigrations` project and **Set as the Startup Project** and try again.
+
This will create a new migration class inside the `Migrations` folder of the `Acme.BookStore.EntityFrameworkCore.DbMigrations` project.
Before updating the database, read the section below to learn how to seed some initial data to the database.
diff --git a/docs/en/Tutorials/Part-10.md b/docs/en/Tutorials/Part-10.md
index a9de3a062e..ec68dfe955 100644
--- a/docs/en/Tutorials/Part-10.md
+++ b/docs/en/Tutorials/Part-10.md
@@ -364,10 +364,11 @@ namespace Acme.BookStore.Books
public override async Task GetAsync(Guid id)
{
- await CheckGetPolicyAsync();
+ //Get the IQueryable from the repository
+ var queryable = await Repository.GetQueryableAsync();
//Prepare a query to join books and authors
- var query = from book in Repository
+ var query = from book in queryable
join author in _authorRepository on book.AuthorId equals author.Id
where book.Id == id
select new { book, author };
@@ -384,17 +385,24 @@ namespace Acme.BookStore.Books
return bookDto;
}
- public override async Task> GetListAsync(
- PagedAndSortedResultRequestDto input)
+ public override async Task> GetListAsync(PagedAndSortedResultRequestDto input)
{
- await CheckGetListPolicyAsync();
+ //Set a default sorting, if not provided
+ if (input.Sorting.IsNullOrWhiteSpace())
+ {
+ input.Sorting = nameof(Book.Name);
+ }
+
+ //Get the IQueryable from the repository
+ var queryable = await Repository.GetQueryableAsync();
//Prepare a query to join books and authors
- var query = from book in Repository
+ var query = from book in queryable
join author in _authorRepository on book.AuthorId equals author.Id
- orderby input.Sorting
+ orderby input.Sorting //TODO: Can not sort like that!
select new {book, author};
+ //Paging
query = query
.Skip(input.SkipCount)
.Take(input.MaxResultCount);
@@ -437,7 +445,7 @@ Let's see the changes we've done:
* Injected `IAuthorRepository` to query from the authors.
* Overrode the `GetAsync` method of the base `CrudAppService`, which returns a single `BookDto` object with the given `id`.
* Used a simple LINQ expression to join books and authors and query them together for the given book id.
- * Used `AsyncExecuter.FirstOrDefaultAsync(...)` to execute the query and get a result. `AsyncExecuter` was previously used in the `AuthorAppService`. Check the [repository documentation](../Repositories.md) to understand why we've used it.
+ * Used `AsyncExecuter.FirstOrDefaultAsync(...)` to execute the query and get a result. It is a way to use asynchronous LINQ extensions without depending on the database provider API. Check the [repository documentation](../Repositories.md) to understand why we've used it.
* Throws an `EntityNotFoundException` which results an `HTTP 404` (not found) result if requested book was not present in the database.
* Finally, created a `BookDto` object using the `ObjectMapper`, then assigning the `AuthorName` manually.
* Overrode the `GetListAsync` method of the base `CrudAppService`, which returns a list of books. The logic is similar to the previous method, so you can easily understand the code.
@@ -487,8 +495,6 @@ namespace Acme.BookStore.Books
public async override Task GetAsync(Guid id)
{
- await CheckGetPolicyAsync();
-
var book = await Repository.GetAsync(id);
var bookDto = ObjectMapper.Map(book);
@@ -501,17 +507,18 @@ namespace Acme.BookStore.Books
public async override Task>
GetListAsync(PagedAndSortedResultRequestDto input)
{
- await CheckGetListPolicyAsync();
-
//Set a default sorting, if not provided
if (input.Sorting.IsNullOrWhiteSpace())
{
input.Sorting = nameof(Book.Name);
}
+
+ //Get the IQueryable from the repository
+ var queryable = await Repository.GetQueryableAsync();
//Get the books
var books = await AsyncExecuter.ToListAsync(
- Repository
+ queryable
.OrderBy(input.Sorting)
.Skip(input.SkipCount)
.Take(input.MaxResultCount)
@@ -553,8 +560,10 @@ namespace Acme.BookStore.Books
.Distinct()
.ToArray();
+ var queryable = await _authorRepository.GetQueryableAsync();
+
var authors = await AsyncExecuter.ToListAsync(
- _authorRepository.Where(a => authorIds.Contains(a.Id))
+ queryable.Where(a => authorIds.Contains(a.Id))
);
return authors.ToDictionary(x => x.Id, x => x);
diff --git a/docs/en/Tutorials/Part-2.md b/docs/en/Tutorials/Part-2.md
index 7bc42b1fc9..627b55a476 100644
--- a/docs/en/Tutorials/Part-2.md
+++ b/docs/en/Tutorials/Part-2.md
@@ -103,7 +103,7 @@ Before starting to the UI development, we first want to prepare the localization
Localization texts are located under the `Localization/BookStore` folder of the `Acme.BookStore.Domain.Shared` project:
-
+
Open the `en.json` (*the English translations*) file and change the content as below:
@@ -157,7 +157,7 @@ It's time to create something visible and usable! Instead of classic MVC, we wil
Create `Books` folder under the `Pages` folder of the `Acme.BookStore.Web` project. Add a new Razor Page by right clicking the Books folder then selecting **Add > Razor Page** menu item. Name it as `Index`:
-
+
Open the `Index.cshtml` and change the whole content as shown below:
@@ -208,7 +208,7 @@ context.Menu.AddItem(
Run the project, login to the application with the username `admin` and the password `1q2w3E*` and see the new menu item has been added to the main menu:
-
+
When you click to the Books menu item under the Book Store parent, you are being redirected to the new empty Books Page.
@@ -250,7 +250,7 @@ Change the `Pages/Books/Index.cshtml` as following:
Create an `Index.js` file under the `Pages/Books` folder:
-
+
The content of the file is shown below:
@@ -344,8 +344,6 @@ It's time to create something visible and usable! There are some tools that we w
- [Ng Bootstrap](https://ng-bootstrap.github.io/#/home) will be used as the UI component library.
- [Ngx-Datatable](https://swimlane.gitbook.io/ngx-datatable/) will be used as the datatable library.
-### BookModule
-
Run the following command line to create a new module, named `BookModule` in the root folder of the angular application:
```bash
@@ -457,7 +455,7 @@ abp generate-proxy
This command will create the following files under the `/src/app/proxy/books` folder:
-
+
### BookComponent
@@ -490,7 +488,7 @@ export class BookComponent implements OnInit {
```
* We imported and injected the generated `BookService`.
-* We are using the [ListService](https://docs.abp.io/en/abp/latest/UI/Angular/List-Service), a utility service of the ABP Framework which provides easy pagination, sorting and searching.
+* We are using the [ListService](../UI/Angular/List-Service.md), a utility service of the ABP Framework which provides easy pagination, sorting and searching.
Open the `/src/app/book/book.component.html` and replace the content as below:
@@ -531,7 +529,7 @@ Open the `/src/app/book/book.component.html` and replace the content as below:
Now you can see the final result on your browser:
-
+
{{else if UI == "Blazor"}}
diff --git a/docs/en/Tutorials/Part-3.md b/docs/en/Tutorials/Part-3.md
index e58857ec89..ec326ddb65 100644
--- a/docs/en/Tutorials/Part-3.md
+++ b/docs/en/Tutorials/Part-3.md
@@ -48,13 +48,13 @@ This part is also recorded as a video tutorial and ** Localization key names are arbitrary and no forcing rule. But we prefer the convention used above.
+> Localization key names are arbitrary and there is no forcing rule. But we prefer the convention used above.
### Permission Management UI
diff --git a/docs/en/Tutorials/Part-6.md b/docs/en/Tutorials/Part-6.md
index 69c6574520..d5df8133b7 100644
--- a/docs/en/Tutorials/Part-6.md
+++ b/docs/en/Tutorials/Part-6.md
@@ -124,7 +124,7 @@ Created this class inside the `Acme.BookStore.Domain.Shared` project since we wi
## AuthorManager: The Domain Service
-`Author` constructor and `ChangeName` method is `internal`, so they can be usable only in the domain layer. Create an `AuthorManager` class in the `Authors` folder (namespace) of the `Acme.BookStore.Domain` project:
+`Author` constructor and `ChangeName` methods are `internal`, so they can be used only in the domain layer. Create an `AuthorManager` class in the `Authors` folder (namespace) of the `Acme.BookStore.Domain` project:
````csharp
using System;
@@ -186,7 +186,7 @@ namespace Acme.BookStore.Authors
* `AuthorManager` forces to create an author and change name of an author in a controlled way. The application layer (will be introduced later) will use these methods.
-> **DDD tip**: Do not introduce domain service methods unless they are really needed and perform some core business rules. For this case, we needed to this service to be able to force the unique name constraint.
+> **DDD tip**: Do not introduce domain service methods unless they are really needed and perform some core business rules. For this case, we needed this service to be able to force the unique name constraint.
Both methods checks if there is already an author with the given name and throws a special business exception, `AuthorAlreadyExistsException`, defined in the `Acme.BookStore.Domain` project (in the `Authors` folder) as shown below:
@@ -226,7 +226,7 @@ This is a unique string represents the error code thrown by your application and
"BookStore:00001": "There is already an author with the same name: {name}"
````
-Whenever you throw an `AuthorAlreadyExistsException`, the end use will see a this message on the UI.
+Whenever you throw an `AuthorAlreadyExistsException`, the end user will see a nice error message on the UI.
## IAuthorRepository
diff --git a/docs/en/Tutorials/Part-7.md b/docs/en/Tutorials/Part-7.md
index 97d28691ae..e14237fd59 100644
--- a/docs/en/Tutorials/Part-7.md
+++ b/docs/en/Tutorials/Part-7.md
@@ -70,7 +70,7 @@ This is just like done for the `Book` entity before, so no need to explain again
## Create a new Database Migration
-Open the **Package Manager Console** on Visual Studio and ensure that the **Default project** is `Acme.BookStore.EntityFrameworkCore.DbMigrations` in the Package Manager Console, as shown on the picture below. Also, set the `Acme.BookStore.Web` (or `Acme.BookStore.HttpApi.Host`, depending on your solution) as the **startup project** (right click it on the solution explorer and click to "Set as Startup Project").
+Open the **Package Manager Console** on Visual Studio and ensure that the **Default project** is `Acme.BookStore.EntityFrameworkCore.DbMigrations` in the Package Manager Console, as shown on the picture below. Also, set this project as the **startup project** (right click it on the solution explorer and click to "Set as Startup Project").
Run the following command to create a new database migration:
@@ -127,7 +127,8 @@ namespace Acme.BookStore.Authors
public async Task FindByNameAsync(string name)
{
- return await DbSet.FirstOrDefaultAsync(author => author.Name == name);
+ var dbSet = await GetDbSetAsync();
+ return await dbSet.FirstOrDefaultAsync(author => author.Name == name);
}
public async Task> GetListAsync(
@@ -136,7 +137,8 @@ namespace Acme.BookStore.Authors
string sorting,
string filter = null)
{
- return await DbSet
+ var dbSet = await GetDbSetAsync();
+ return await dbSet
.WhereIf(
!filter.IsNullOrWhiteSpace(),
author => author.Name.Contains(filter)
@@ -186,8 +188,8 @@ namespace Acme.BookStore.Authors
public async Task FindByNameAsync(string name)
{
- return await GetMongoQueryable()
- .FirstOrDefaultAsync(author => author.Name == name);
+ var queryable = await GetMongoQueryableAsync();
+ return await queryable.FirstOrDefaultAsync(author => author.Name == name);
}
public async Task> GetListAsync(
@@ -196,7 +198,8 @@ namespace Acme.BookStore.Authors
string sorting,
string filter = null)
{
- return await GetMongoQueryable()
+ var queryable = await GetMongoQueryableAsync();
+ return await queryable
.WhereIf>(
!filter.IsNullOrWhiteSpace(),
author => author.Name.Contains(filter)
diff --git a/docs/en/Tutorials/Part-8.md b/docs/en/Tutorials/Part-8.md
index b7c805c17e..6ab14c714c 100644
--- a/docs/en/Tutorials/Part-8.md
+++ b/docs/en/Tutorials/Part-8.md
@@ -172,6 +172,7 @@ using System.Threading.Tasks;
using Acme.BookStore.Permissions;
using Microsoft.AspNetCore.Authorization;
using Volo.Abp.Application.Dtos;
+using Volo.Abp.Domain.Repositories;
namespace Acme.BookStore.Authors
{
@@ -230,12 +231,10 @@ public async Task> GetListAsync(GetAuthorListDto input
input.Filter
);
- var totalCount = await AsyncExecuter.CountAsync(
- _authorRepository.WhereIf(
- !input.Filter.IsNullOrWhiteSpace(),
- author => author.Name.Contains(input.Filter)
- )
- );
+ var totalCount = input.Filter == null
+ ? await _authorRepository.CountAsync()
+ : await _authorRepository.CountAsync(
+ author => author.Name.Contains(input.Filter));
return new PagedResultDto(
totalCount,
@@ -246,7 +245,7 @@ public async Task> GetListAsync(GetAuthorListDto input
* Default sorting is "by author name" which is done in the beginning of the method in case of it wasn't sent by the client.
* Used the `IAuthorRepository.GetListAsync` to get a paged, sorted and filtered list of authors from the database. We had implemented it in the previous part of this tutorial. Again, it actually was not needed to create such a method since we could directly query over the repository, but wanted to demonstrate how to create custom repository methods.
-* Directly queried from the `AuthorRepository` while getting the count of the authors. We preferred to use the `AsyncExecuter` service which allows us to perform async queries without depending on the EF Core. However, you could depend on the EF Core package and directly use the `_authorRepository.WhereIf(...).ToListAsync()` method. See the [repository document](../Repositories.md) to read the alternative approaches and the discussion.
+* Directly queried from the `AuthorRepository` while getting the count of the authors. If a filter is sent, then we are using it to filter entities while getting the count.
* Finally, returning a paged result by mapping the list of `Author`s to a list of `AuthorDto`s.
### CreateAsync
diff --git a/docs/en/Tutorials/Part-9.md b/docs/en/Tutorials/Part-9.md
index a1b4b03e21..c623cfcf46 100644
--- a/docs/en/Tutorials/Part-9.md
+++ b/docs/en/Tutorials/Part-9.md
@@ -843,8 +843,10 @@ Create a new Razor Component Page, `/Pages/Authors.razor`, in the `Acme.BookStor
````xml
@page "/authors"
@using Acme.BookStore.Authors
+@using Acme.BookStore.Localization
@inherits BookStoreComponentBase
@inject IAuthorAppService AuthorAppService
+@inject AbpBlazorMessageLocalizerHelper LH
@@ -917,68 +919,104 @@ Create a new Razor Component Page, `/Pages/Authors.razor`, in the `Acme.BookStor
-
- @L["NewAuthor"]
-
-
-
-
- @L["Name"]
-
-
-
- @L["BirthDate"]
-
-
-
- @L["ShortBio"]
-
-
-
-
-
-
-
+
-
- @EditingAuthor.Name
-
-
-
-
- @L["Name"]
-
-
-
- @L["BirthDate"]
-
-
-
- @L["ShortBio"]
-
-
-
-
-
-
-
+
````
@@ -1025,6 +1063,10 @@ namespace Acme.BookStore.Blazor.Pages
private Modal CreateAuthorModal { get; set; }
private Modal EditAuthorModal { get; set; }
+ private Validations CreateValidationsRef;
+
+ private Validations EditValidationsRef;
+
public Authors()
{
NewAuthor = new CreateAuthorDto();
@@ -1079,6 +1121,8 @@ namespace Acme.BookStore.Blazor.Pages
private void OpenCreateAuthorModal()
{
+ CreateValidationsRef.ClearAll();
+
NewAuthor = new CreateAuthorDto();
CreateAuthorModal.Show();
}
@@ -1090,6 +1134,8 @@ namespace Acme.BookStore.Blazor.Pages
private void OpenEditAuthorModal(AuthorDto author)
{
+ EditValidationsRef.ClearAll();
+
EditingAuthorId = author.Id;
EditingAuthor = ObjectMapper.Map(author);
EditAuthorModal.Show();
@@ -1114,16 +1160,22 @@ namespace Acme.BookStore.Blazor.Pages
private async Task CreateAuthorAsync()
{
- await AuthorAppService.CreateAsync(NewAuthor);
- await GetAuthorsAsync();
- CreateAuthorModal.Hide();
+ if (CreateValidationsRef.ValidateAll())
+ {
+ await AuthorAppService.CreateAsync(NewAuthor);
+ await GetAuthorsAsync();
+ CreateAuthorModal.Hide();
+ }
}
private async Task UpdateAuthorAsync()
{
- await AuthorAppService.UpdateAsync(EditingAuthorId, EditingAuthor);
- await GetAuthorsAsync();
- EditAuthorModal.Hide();
+ if (EditValidationsRef.ValidateAll())
+ {
+ await AuthorAppService.UpdateAsync(EditingAuthorId, EditingAuthor);
+ await GetAuthorsAsync();
+ EditAuthorModal.Hide();
+ }
}
}
}
diff --git a/docs/en/UI/Angular/Component-Replacement.md b/docs/en/UI/Angular/Component-Replacement.md
index 54a1869c0e..0010a30a2f 100644
--- a/docs/en/UI/Angular/Component-Replacement.md
+++ b/docs/en/UI/Angular/Component-Replacement.md
@@ -546,4 +546,5 @@ The final UI looks like below:
## See Also
+- [How Replaceable Components Work with Extensions](./How-Replaceable-Components-Work-with-Extensions.md)
- [How to Replace PermissionManagementComponent](./Permission-Management-Component-Replacement.md)
diff --git a/docs/en/UI/Angular/Ellipsis-Directive.md b/docs/en/UI/Angular/Ellipsis-Directive.md
new file mode 100644
index 0000000000..c462331574
--- /dev/null
+++ b/docs/en/UI/Angular/Ellipsis-Directive.md
@@ -0,0 +1,83 @@
+# Ellipsis
+
+Text inside an HTML element can be truncated easily with an ellipsis by using CSS. To make this even easier, you can use the `EllipsisDirective` which has been exposed by the `@abp/ng.theme.shared` package.
+
+
+## Getting Started
+
+In order to use the `EllipsisDirective` in an HTML template, the **`ThemeSharedModule`** should be imported into your module like this:
+
+```js
+// ...
+import { ThemeSharedModule } from '@abp/ng.theme.shared';
+
+@NgModule({
+ //...
+ imports: [..., ThemeSharedModule],
+})
+export class MyFeatureModule {}
+```
+
+or **if you would not like to import** the `ThemeSharedModule`, you can import the **`EllipsisModule`** as shown below:
+
+
+```js
+// ...
+import { EllipsisModule } from '@abp/ng.theme.shared';
+
+@NgModule({
+ //...
+ imports: [..., EllipsisModule],
+})
+export class MyFeatureModule {}
+```
+
+## Usage
+
+The `EllipsisDirective` is very easy to use. The directive's selector is **`abpEllipsis`**. By adding the `abpEllipsis` attribute to an HTML element, you can activate the `EllipsisDirective` for the HTML element.
+
+See an example usage:
+
+```html
+