mirror of https://github.com/abpframework/abp.git
committed by
GitHub
497 changed files with 12679 additions and 1795 deletions
@ -0,0 +1,14 @@ |
|||
{ |
|||
"culture": "en-GB", |
|||
"texts": { |
|||
"Account": "ABP Account - Login & Register | ABP.IO", |
|||
"Welcome": "Welcome", |
|||
"UseOneOfTheFollowingLinksToContinue": "Use one of the following links to continue", |
|||
"FrameworkHomePage": "Framework home page", |
|||
"FrameworkDocumentation": "Framework documentation", |
|||
"OfficialBlog": "Official blog", |
|||
"CommercialHomePage": "Commercial home page", |
|||
"CommercialSupportWebSite": "Commercial support web site", |
|||
"CommunityWebSite": "ABP community web site" |
|||
} |
|||
} |
|||
@ -0,0 +1,202 @@ |
|||
{ |
|||
"culture": "en-GB", |
|||
"texts": { |
|||
"Permission:Organizations": "Organisations", |
|||
"Permission:Manage": "Manage Organisations", |
|||
"Permission:DiscountRequests": "Discount Requests", |
|||
"Permission:DiscountManage": "Manage Discount Requests", |
|||
"Permission:Disable": "Disable", |
|||
"Permission:Enable": "Enable", |
|||
"Permission:EnableSendEmail": "Enable Send Email", |
|||
"Permission:SendEmail": "Send Email", |
|||
"Permission:NpmPackages": "NPM Packages", |
|||
"Permission:NugetPackages": "Nuget Packages", |
|||
"Permission:Maintenance": "Maintenance", |
|||
"Permission:Maintain": "Maintain", |
|||
"Permission:ClearCaches": "Clear caches", |
|||
"Permission:Modules": "Modules", |
|||
"Permission:Packages": "Packages", |
|||
"Permission:Edit": "Edit", |
|||
"Permission:Delete": "Delete", |
|||
"Permission:Create": "Create", |
|||
"Permission:Accounting": "Accounting", |
|||
"Permission:Accounting:Quotation": "Quotation", |
|||
"Permission:Accounting:Invoice": "Invoice", |
|||
"Menu:Organizations": "Organisations", |
|||
"Menu:Accounting": "Accounting", |
|||
"Menu:Packages": "Packages", |
|||
"Menu:DiscountRequests": "Discount Requests", |
|||
"NpmPackageDeletionWarningMessage": "This NPM Package will be deleted. Please confirm this?", |
|||
"NugetPackageDeletionWarningMessage": "This Nuget Package will be deleted. Please confirm this?", |
|||
"ModuleDeletionWarningMessage": "This Module will be deleted. Please confirm this?", |
|||
"Name": "Name", |
|||
"DisplayName": "Display name", |
|||
"ShortDescription": "Short description", |
|||
"NameFilter": "Name", |
|||
"CreationTime": "Creation time", |
|||
"IsPro": "Is pro", |
|||
"ShowOnModuleList": "Show in module list", |
|||
"EfCoreConfigureMethodName": "Configure method name", |
|||
"IsProFilter": "Is pro", |
|||
"ApplicationType": "Application type", |
|||
"Target": "Target", |
|||
"TargetFilter": "Target", |
|||
"ModuleClass": "Module class", |
|||
"NugetPackageTarget.DomainShared": "Domain Shared", |
|||
"NugetPackageTarget.Domain": "Domain", |
|||
"NugetPackageTarget.Application": "Application", |
|||
"NugetPackageTarget.ApplicationContracts": "Application Contracts", |
|||
"NugetPackageTarget.HttpApi": "Http Api", |
|||
"NugetPackageTarget.HttpApiClient": "Http Api Client", |
|||
"NugetPackageTarget.Web": "Web", |
|||
"NugetPackageTarget.EntityFrameworkCore": "Delete Entity Framework Core", |
|||
"NugetPackageTarget.MongoDB": "MongoDB", |
|||
"Edit": "Edit", |
|||
"Delete": "Delete", |
|||
"Refresh": "Refresh", |
|||
"NpmPackages": "NPM Packages", |
|||
"NugetPackages": "Nuget Packages", |
|||
"NpmPackageCount": "NPM Package Count", |
|||
"NugetPackageCount": "Nuget Package Count", |
|||
"Module": "Modules", |
|||
"ModuleInfo": "Module info", |
|||
"CreateANpmPackage": "Create a NPM package", |
|||
"CreateAModule": "Create a module", |
|||
"CreateANugetPackage": "Create a Nuget package", |
|||
"AddNew": "Add new", |
|||
"PackageAlreadyExist{0}": "\"{0}\" package has already been added.", |
|||
"ModuleAlreadyExist{0}": "\"{0}\" module has already been added.", |
|||
"ClearCache": "Clear cache", |
|||
"SuccessfullyCleared": "Successfully cleared", |
|||
"Menu:NpmPackages": "NPM Packages", |
|||
"Menu:Modules": "Modules", |
|||
"Menu:Maintenance": "Maintenance", |
|||
"Menu:NugetPackages": "Nuget Packages", |
|||
"CreateAnOrganization": "Create an organisation", |
|||
"Organizations": "Organisations", |
|||
"LongName": "Long name", |
|||
"LicenseType": "License type", |
|||
"MissingLicenseTypeField": "The license type field is required!", |
|||
"LicenseStartTime": "License start time", |
|||
"LicenseEndTime": "License end time", |
|||
"AllowedDeveloperCount": "Allowed developer count", |
|||
"UserNameOrEmailAddress": "Username or email address", |
|||
"AddOwner": "Add owner", |
|||
"UserName": "Username", |
|||
"Email": "Email", |
|||
"Developers": "Developers", |
|||
"AddDeveloper": "Add developer", |
|||
"Create": "Create", |
|||
"UserNotFound": "User not found", |
|||
"{0}WillBeRemovedFromDevelopers": "{0} Will be removed from developers, please confirm?", |
|||
"{0}WillBeRemovedFromOwners": "{0} Will be removed from owners, please confirm?", |
|||
"Computers": "Computers", |
|||
"UniqueComputerId": "Unique computer id", |
|||
"LastSeenDate": "Last seen date", |
|||
"{0}Computer{1}WillBeRemovedFromRecords": "Computer of {0} ({1}) will be removed from records", |
|||
"OrganizationDeletionWarningMessage": "Organisation will be deleted", |
|||
"DeletingLastOwnerWarningMessage": "An organisation must have at least one owner, therefore you cannot remove this owner", |
|||
"This{0}AlreadyExistInThisOrganization": "{0} already exist in this organisation", |
|||
"AreYouSureYouWantToDeleteAllComputers": "Are you sure you want to delete all computers?", |
|||
"DeleteAll": "Delete all", |
|||
"DoYouWantToCreateNewUser": "Do you want to create new user?", |
|||
"MasterModules": "Master Modules", |
|||
"OrganizationName": "Organisation name", |
|||
"CreationDate": "Creation date", |
|||
"LicenseStartDate": "License start date", |
|||
"LicenseEndDate": "License end date", |
|||
"OrganizationNamePlaceholder": "Organisation name...", |
|||
"TotalQuestionCountPlaceholder": "Total question count...", |
|||
"RemainingQuestionCountPlaceholder": "Remaining question count...", |
|||
"LicenseTypePlaceholder": "License type...", |
|||
"CreationDatePlaceholder": "Creation date...", |
|||
"LicenseStartDatePlaceholder": "License start date...", |
|||
"LicenseEndDatePlaceholder": "License end date...", |
|||
"UsernameOrEmail": "Username or email", |
|||
"UsernameOrEmailPlaceholder": "Username or email...", |
|||
"Member": "Member", |
|||
"PurchaseOrderNo": "Purchase Order No.", |
|||
"QuotationDate": "Quotation date", |
|||
"CompanyName": "Company name", |
|||
"CompanyAddress": "Company address", |
|||
"Price": "Price", |
|||
"DiscountText": "Discount text", |
|||
"DiscountQuantity": "Discount quantity", |
|||
"DiscountPrice": "Discount price", |
|||
"Quotation": "Quotation", |
|||
"ExtraText": "Extra text", |
|||
"ExtraAmount": "Extra Amount", |
|||
"DownloadQuotation": "Download Quotation", |
|||
"Invoice": "Invoice", |
|||
"TaxNumber": "Tax No.", |
|||
"InvoiceNumber": "Invoice No.", |
|||
"InvoiceDate": "Invoice Date", |
|||
"InvoiceNote": "Invoice Note", |
|||
"Quantity": "Quantity", |
|||
"AddProduct": "Add Product", |
|||
"AddProductWarning": "You need to add a Product!", |
|||
"TotalPrice": "Total Price", |
|||
"Generate": "Generate", |
|||
"MissingQuantityField": "The Quantity field is required!", |
|||
"MissingPriceField": "The Price field is required!", |
|||
"CodeUsageStatus": "Status", |
|||
"Country": "Country", |
|||
"DeveloperCount": "Developer Count", |
|||
"RequestCode": "Request Code", |
|||
"WebSite": "Website", |
|||
"GithubUsername": "Github Username", |
|||
"PhoneNumber": "Phone Number", |
|||
"ProjectDescription": "Project Description", |
|||
"Referrer": "Referrer", |
|||
"DiscountRequests": "Discount Request", |
|||
"Copylink": "Copy Link", |
|||
"Disable": "Disable", |
|||
"Enable": "Enable", |
|||
"EnableSendEmail": "Enable Send Email", |
|||
"SendEmail": "Send Email", |
|||
"SuccessfullyDisabled": "Successfully disabled", |
|||
"SuccessfullyEnabled": "Successfully enabled", |
|||
"EmailSent": "Email sent", |
|||
"SuccessfullySent": "Successfully sent", |
|||
"SuccessfullyDeleted": "Successfully deleted", |
|||
"DiscountRequestDeletionWarningMessage": "Discount request will be deleted", |
|||
"BusinessType": "Business Type", |
|||
"TotalQuestionCount": "Total question count", |
|||
"RemainingQuestionCount": "Remaining question count", |
|||
"TotalQuestionMustBeGreaterWarningMessage": "TotalQuestionCount must be greater than RemainingQuestionCount!", |
|||
"QuestionCountsMustBeGreaterThanZero": "TotalQuestionCount and RemainingQuestionCount must be zero or greater than zero!", |
|||
"UnlimitedQuestionCount": "Unlimited question count", |
|||
"Notes": "Notes", |
|||
"Menu:Community": "Community", |
|||
"Menu:Articles": "Articles", |
|||
"Wait": "Wait", |
|||
"Approve": "Approve", |
|||
"Reject": "Reject", |
|||
"Details": "Details", |
|||
"Url": "Url", |
|||
"Title": "Title", |
|||
"ContentSource": "Content source", |
|||
"Status": "Status", |
|||
"ReadArticle": "Read article", |
|||
"ArticleHasBeenWaiting": "Article has been waiting", |
|||
"ArticleHasBeenApproved": "Article has been approved", |
|||
"ArticleHasBeenRejected": "Article has been rejected", |
|||
"Permission:Community": "Community", |
|||
"Permission:CommunityArticle": "Article", |
|||
"Link": "Link", |
|||
"Enum:ContentSource:0": "Github", |
|||
"Enum:ContentSource:1": "External", |
|||
"Enum:Status:0": "Waiting", |
|||
"Enum:Status:1": "Author name", |
|||
"Enum:Status:2": "Approved", |
|||
"Summary": "Summary", |
|||
"AuthorName": "Author", |
|||
"CoverImage": "Cover Image", |
|||
"RemoveCacheConfirmationMessage": "Are you sure you want remove the cache for \"{0}\" article?", |
|||
"SuccessfullyRemoved": "Successfully cleared", |
|||
"RemoveCache": "Remove Cache", |
|||
"Language": "Language", |
|||
"Optional": "Optional", |
|||
"CreateArticleLanguageInfo": "The language in which the article is written" |
|||
} |
|||
} |
|||
@ -0,0 +1,35 @@ |
|||
{ |
|||
"culture": "en-GB", |
|||
"texts": { |
|||
"Volo.AbpIo.Domain:010004": "Maximum member count reached!", |
|||
"Volo.AbpIo.Domain:010005": "Maximum owner count reached!", |
|||
"Volo.AbpIo.Domain:010006": "This user is already an owner in this organisation!", |
|||
"Volo.AbpIo.Domain:010007": "This user is already a developer in this organisation!", |
|||
"Volo.AbpIo.Domain:010008": "Allowed Developer Count can not be less then current developer count!", |
|||
"Volo.AbpIo.Domain:010009": "Allowed Developer Count can not be less then 0!", |
|||
"Volo.AbpIo.Domain:010010": "Maximum mac address count has been exceeded!", |
|||
"Volo.AbpIo.Domain:010011": "Personal license can't have more than 1 developer!", |
|||
"Volo.AbpIo.Domain:010012": "License can't be extended one month after license expires!", |
|||
"Volo.AbpIo.Domain:020001": "Couldn't delete this NPM Package because \"{NugetPackages}\" Nuget Packages are dependent to this package.", |
|||
"Volo.AbpIo.Domain:020002": "Couldn't delete this NPM Package because \"{Modules}\" Modules are using this package.", |
|||
"Volo.AbpIo.Domain:020003": "Couldn't delete this NPM Package because \"{Modules}\" Modules are using this package and \"{NugetPackages}\" Nuget Packages are dependent to this package.", |
|||
"Volo.AbpIo.Domain:020004": "Couldn't delete this Nuget Package because \"{Modules}\" Modules are using this package.", |
|||
"WantToLearn?": "Want to learn?", |
|||
"ReadyToGetStarted?": "Ready to get started?", |
|||
"JoinOurCommunity": "Join our community", |
|||
"GetStartedUpper": "GET STARTED", |
|||
"ForkMeOnGitHub": "Fork me on GitHub", |
|||
"Features": "Features", |
|||
"GetStarted": "Get Started", |
|||
"Documents": "Documents", |
|||
"Community": "Community", |
|||
"ContributionGuide": "Contribution Guide", |
|||
"Blog": "Blog", |
|||
"Commercial": "Commercial", |
|||
"MyAccount": "My account", |
|||
"Permission:License": "License", |
|||
"Permission:UserInfo": "User info", |
|||
"SeeDocuments": "See Documents", |
|||
"Samples": "Samples" |
|||
} |
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
{ |
|||
"culture": "en-GB", |
|||
"texts": { |
|||
"OrganizationManagement": "Organisation Management", |
|||
"OrganizationList": "Organisation list", |
|||
"Volo.AbpIo.Commercial:010003": "You are not owner of this organisation!", |
|||
"OrganizationNotFoundMessage": "Organisation not found!", |
|||
"DeveloperCount": "Allocated / total developers", |
|||
"QuestionCount": "Remaining / total questions", |
|||
"Unlimited": "Unlimited", |
|||
"Owners": "Owners", |
|||
"AddMember": "Add member", |
|||
"AddOwner": "Add owner", |
|||
"AddDeveloper": "Add developer", |
|||
"UserName": "Username", |
|||
"Name": "Name", |
|||
"EmailAddress": "Email address", |
|||
"Developers": "Developers", |
|||
"LicenseType": "License type", |
|||
"Manage": "Manage", |
|||
"StartDate": "Start date", |
|||
"EndDate": "End date", |
|||
"Modules": "Modules", |
|||
"LicenseExtendMessage": "Your license end date is extended to {0}", |
|||
"LicenseUpgradeMessage": "Your license is upgraded to {0}", |
|||
"LicenseAddDeveloperMessage": "{0} developers added to your license", |
|||
"Volo.AbpIo.Commercial:010004": "Cannot find the specified user! The user must have already registered.", |
|||
"MyOrganizations": "My organisations", |
|||
"ApiKey": "API key", |
|||
"UserNameNotFound": "There is no user with username {0}", |
|||
"SuccessfullyAddedToNewsletter": "Thank you for subscribing to our newsletter!", |
|||
"MyProfile": "My Profile", |
|||
"EmailNotValid": "Please enter a valid email address.", |
|||
"JoinOurMarketingNewsletter": "Join our marketing newsletter", |
|||
"WouldLikeToReceiveMarketingMaterials": "I would like to receive marketing materials e.g. product deals & special offers.", |
|||
"StartUsingYourLicenseNow": "Start using your license now!", |
|||
"WelcomePage": "Welcome Page" |
|||
} |
|||
} |
|||
@ -0,0 +1,106 @@ |
|||
{ |
|||
"culture": "en-GB", |
|||
"texts": { |
|||
"Permission:CommunityArticle": "Community Article", |
|||
"Permission:Edit": "Edit", |
|||
"Waiting": "Waiting", |
|||
"Approved": "Approved", |
|||
"Rejected": "Rejected", |
|||
"Wait": "Wait", |
|||
"Approve": "Approve", |
|||
"Reject": "Reject", |
|||
"ReadArticle": "Read Article", |
|||
"Status": "Status", |
|||
"ContentSource": "Content Source", |
|||
"Details": "Details", |
|||
"Url": "Url", |
|||
"Title": "Title", |
|||
"CreationTime": "Creation time", |
|||
"Save": "Save", |
|||
"SameUrlAlreadyExist": "The Url already exists. If you want to add this article, you should change the url!", |
|||
"UrlIsNotValid": "Url is not valid.", |
|||
"UrlNotFound": "Url not found.", |
|||
"UrlContentNotFound": "Url content not found.", |
|||
"Summary": "Summary", |
|||
"MostRead": "Most Read", |
|||
"Latest": "Latest", |
|||
"ContributeAbpCommunity": "Contribute to the ABP Community", |
|||
"SubmitYourArticle": "Submit Your Article", |
|||
"ContributionGuide": "Contribution Guide", |
|||
"BugReport": "Bug Report", |
|||
"SeeAllArticles": "See All Articles", |
|||
"WelcomeToABPCommunity!": "Welcome to the ABP Community!", |
|||
"MyProfile": "My Profile", |
|||
"MyOrganizations": "My Organisations", |
|||
"EmailNotValid": "Please enter a valid email address.", |
|||
"FeatureRequest": "Feature Request", |
|||
"CreateArticleTitleInfo": "Title of the article to be shown on the article list.", |
|||
"CreateArticleUrlInfo": "Original GitHub/External URL of the article.", |
|||
"CreateArticleSummaryInfo": "A short summary of the article to be shown on the article list.", |
|||
"CreateArticleCoverInfo": "To create an effective article, add a cover photo and an upload 16:9 aspect ratio pictures for the best view (Maximum file size: 1MB)", |
|||
"ThisExtensionIsNotAllowed": "The extension is not allowed.", |
|||
"TheFileIsTooLarge": "The file is too large.", |
|||
"GoToTheArticle": "Go to the Article", |
|||
"Contribute": "Contribute", |
|||
"OverallProgress": "Overall Progress", |
|||
"Done": "Done", |
|||
"Open": "Open", |
|||
"Closed": "Closed", |
|||
"LatestQuestionOnThe": "Latest Question on the", |
|||
"Stackoverflow": "Stackoverflow", |
|||
"Votes": "votes", |
|||
"Answer": "Answer", |
|||
"Views": "views", |
|||
"Answered": "Answered", |
|||
"WaitingForYourAnswer": "Waiting for your answer", |
|||
"Asked": "asked", |
|||
"AllQuestions": "All Questions", |
|||
"NextVersion": "Next Version", |
|||
"MilestoneErrorMessage": "Couldn't get the current milestone details from Github.", |
|||
"QuestionItemErrorMessage": "Couldn't get the latest question details from Stackoverflow.", |
|||
"Oops": "Oops!", |
|||
"CreateArticleSuccessMessage": "The Article has been successfully submitted. It will be published once it has been reviewed by the site admin.", |
|||
"ChooseCoverImage": "Choose a cover image...", |
|||
"CoverImage": "Cover Image", |
|||
"ShareYourExperiencesWithTheABPFramework": "Share your experiences with the ABP Framework!", |
|||
"Optional": "Optional", |
|||
"UpdateUserWebSiteInfo": "Example: https://johndoe.com", |
|||
"UpdateUserTwitterInfo": "Example: johndoe", |
|||
"UpdateUserGithubInfo": "Example: johndoe", |
|||
"UpdateUserLinkedinInfo": "Example: https://www.linkedin.com/...", |
|||
"UpdateUserCompanyInfo": "Example: Volosoft", |
|||
"UpdateUserJobTitleInfo": "Example: Software Developer", |
|||
"UserName": "UserName", |
|||
"Company": "Company", |
|||
"PersonalWebsite": "Personal website", |
|||
"RegistrationDate": "Registration date", |
|||
"Social": "Social", |
|||
"Biography": "Biography", |
|||
"HasNoPublishedArticlesYet": "has no published articles yet", |
|||
"Author": "Author", |
|||
"LatestGithubAnnouncements": "Latest GitHub Announcements", |
|||
"SeeAllAnnouncements": "View all Announcements", |
|||
"LatestBlogPost": "Latest Blog Post", |
|||
"Edit": "Edit", |
|||
"ProfileImageChange": "Change the profile image", |
|||
"BlogItemErrorMessage": "Couldn't get the latest blog post details from ABP.", |
|||
"PlannedReleaseDate": "Planned release date", |
|||
"CommunityArticleRequestErrorMessage": "Couldn't get the latest article request from GitHub.", |
|||
"ArticleRequestFromGithubIssue": "There aren't any article requests at the moment.", |
|||
"LatestArticles": "Latest Articles", |
|||
"ArticleRequests": "Article Requests", |
|||
"AllArticleRequests": "See all Article requests", |
|||
"SubscribeToTheNewsletter": "Subscribe to the Newsletter", |
|||
"NewsletterEmailDefinition": "Receive information about what's happening in ABP; new releases, free sources, articles, and more.", |
|||
"NoThanks": "No thanks", |
|||
"MaybeLater": "Maybe later", |
|||
"JoinOurArticleNewsletter": "Join our article newsletter", |
|||
"Community": "Community", |
|||
"Marketing": "Marketing", |
|||
"CommunityPrivacyPolicyConfirmation": "I agree to the Terms & Conditions and <a href=\"https://commercial.abp.io/Privacy\">Privacy Policy</a>.", |
|||
"ArticleRequestMessageTitle": "<a href=\"https://github.com/abpframework/abp/issues/new\">Open an issue</a> on the GitHub to request an article/tutorial you want to see on this web site.", |
|||
"ArticleRequestMessageBody": "Here is the list of the requested articles by the Community. Do you want to write a requested article? Please click on the request and join the discussion.", |
|||
"Language": "Language", |
|||
"CreateArticleLanguageInfo": "The language in which the article is written" |
|||
} |
|||
} |
|||
@ -0,0 +1,197 @@ |
|||
{ |
|||
"culture": "en-GB", |
|||
"texts": { |
|||
"GetStarted": "Get Started - Startup Templates", |
|||
"Create": "Create", |
|||
"NewProject": "New Project", |
|||
"DirectDownload": "Direct Download", |
|||
"ProjectName": "Project name", |
|||
"ProjectType": "Project type", |
|||
"DatabaseProvider": "Database provider", |
|||
"NTier": "N-Tier", |
|||
"IncludeUserInterface": "Include user interface", |
|||
"CreateNow": "Create now", |
|||
"TheStartupProject": "The startup project", |
|||
"Tutorial": "Tutorial", |
|||
"UsingCLI": "Using CLI", |
|||
"SeeDetails": "See Details", |
|||
"AbpShortDescription": "ABP Framework is a complete infrastructure to create modern web applications by following the software development best practices and conventions.", |
|||
"SourceCodeUpper": "SOURCE CODE", |
|||
"LatestReleaseLogs": "Latest release logs", |
|||
"Infrastructure": "Infrastructure", |
|||
"Architecture": "Architecture", |
|||
"Modular": "Modular", |
|||
"DontRepeatYourself": "Don’t Repeat Yourself", |
|||
"DeveloperFocused": "Developer Focused", |
|||
"FullStackApplicationInfrastructure": "Full stack application infrastructure.", |
|||
"DomainDrivenDesign": "Domain Driven Design", |
|||
"DomainDrivenDesignExplanation": "Designed and developed based on DDD patterns and principles. Provides a layered model for your application.", |
|||
"Authorization": "Authorisation", |
|||
"AuthorizationExplanation": "Advanced authorisation with user, role and fine-grained permission system. Built on the Microsoft Identity library.", |
|||
"MultiTenancy": "Multi-Tenancy", |
|||
"MultiTenancyExplanationShort": "SaaS applications made easy! Integrated multi-tenancy from database to UI.", |
|||
"CrossCuttingConcerns": "Cross Cutting Concerns", |
|||
"CrossCuttingConcernsExplanationShort": "Complete infrastructure for authorization, validation, exception handling, caching, audit logging, transaction management and more.", |
|||
"BuiltInBundlingMinification": "Built-In Bundling & Minification", |
|||
"BuiltInBundlingMinificationExplanation": "No need to use external tools for bundling & minification. ABP offers a simpler, dynamic, powerful, modular and built-in way!", |
|||
"VirtualFileSystem": "Virtual File System", |
|||
"VirtualFileSystemExplanation": "Embed views, scripts, styles, images... into packages/libraries and reuse them in different applications.", |
|||
"Theming": "Theming", |
|||
"ThemingExplanationShort": "Use and customise the bootstrap-based standard UI theme or create your own.", |
|||
"BootstrapTagHelpersDynamicForms": "Bootstrap Tag Helpers & Dynamic Forms", |
|||
"BootstrapTagHelpersDynamicFormsExplanation": "Instead of manually writing bootstrap components, Use ABP's tag helpers to simplify and take advantage of intellisense. Quickly build UI forms based on a C# model using the dynamic form tag helper.", |
|||
"HTTPAPIsDynamicProxies": "HTTP APIs & Dynamic Proxies", |
|||
"HTTPAPIsDynamicProxiesExplanation": "Automatically expose application services as REST style HTTP APIs, and consume them with dynamic JavaScript and C# proxies.", |
|||
"CompleteArchitectureInfo": "Modern architecture to create maintainable software solutions.", |
|||
"DomainDrivenDesignBasedLayeringModelExplanation": "Helps you to implement a DDD based layered architecture and build a maintainable code base.", |
|||
"DomainDrivenDesignBasedLayeringModelExplanationCont": "Provides startup templates, abstractions, base classes, services, documentation and guides to help you to develop your application based on DDD patterns & principles.", |
|||
"MicroserviceCompatibleModelExplanation": "The core framework & pre-build modules are designed with microservice architecture in mind.", |
|||
"MicroserviceCompatibleModelExplanationCont": "Provides infrastructure, integrations, samples and documentation to implement microservice solutions easier, while it doesn’t bring additional complexity if you want a monolithic application.", |
|||
"ModularInfo": "ABP provides a module system that allows you to develop reusable application modules, tie into application lifecycle events, and express dependencies between core parts of your system.", |
|||
"PreBuiltModulesThemes": "Pre-Built Modules & Themes", |
|||
"PreBuiltModulesThemesExplanation": "Open source and commercial modules & themes are ready to use in your business application.", |
|||
"NuGetNPMPackages": "NuGet & NPM Packages", |
|||
"NuGetNPMPackagesExplanation": "Distributed as NuGet & NPM packages. Easy to install and upgrade.", |
|||
"ExtensibleReplaceable": "Extensible/Replaceable", |
|||
"ExtensibleReplaceableExplanation": "All services & modules are designed extensibility in mind. You can replace services, pages, styles and components.", |
|||
"CrossCuttingConcernsExplanation2": "Keep your codebase smaller so you can maintain focus on the code that’s specific to your business.", |
|||
"CrossCuttingConcernsExplanation3": "Don’t spend time implementing common application requirements on multiple projects.", |
|||
"AuthenticationAuthorization": "Authentication & Authorization", |
|||
"ExceptionHandling": "Exception Handling", |
|||
"Validation": "Validation", |
|||
"DatabaseConnection": "Database Connection", |
|||
"TransactionManagement": "Transaction management", |
|||
"AuditLogging": "Audit Logging", |
|||
"Caching": "Caching", |
|||
"Multitenancy": "Multitenancy", |
|||
"DataFiltering": "Data filtering", |
|||
"ConventionOverConfiguration": "Convention Over Configuration", |
|||
"ConventionOverConfigurationExplanation": "ABP implements common application conventions by default with a minimal or zero configuration.", |
|||
"ConventionOverConfigurationExplanationList1": "Auto registers known services to dependency injection.", |
|||
"ConventionOverConfigurationExplanationList2": "Exposes application services as HTTP APIs by naming conventions.", |
|||
"ConventionOverConfigurationExplanationList3": "Creates dynamic HTTP client proxies for C# and JavaScript.", |
|||
"ConventionOverConfigurationExplanationList4": "Provides default repositories for your entities.", |
|||
"ConventionOverConfigurationExplanationList5": "Manages Unit of Work per web request or application service method.", |
|||
"ConventionOverConfigurationExplanationList6": "Publishes create, update & delete events for your entities.", |
|||
"BaseClasses": "Base Classes", |
|||
"BaseClassesExplanation": "Pre-built base classes for common application patterns.", |
|||
"DeveloperFocusedExplanation": "ABP is for developers.", |
|||
"DeveloperFocusedExplanationCont": "It aims to simplify your daily software development while not restricting you from writing low level code.", |
|||
"SeeAllFeatures": "See All Features", |
|||
"CLI_CommandLineInterface": "CLI (Command Line Interface)", |
|||
"CLI_CommandLineInterfaceExplanation": "Includes a CLI to help you automate the creation of new projects and the addition of new modules.", |
|||
"StartupTemplates": "Startup Templates", |
|||
"StartupTemplatesExplanation": "Various startup templates provide a fully configured solution to jump start your development.", |
|||
"BasedOnFamiliarTools": "Based on Familiar Tools", |
|||
"BasedOnFamiliarToolsExplanation": "Built and integrated with popular tools you already know. Low learning curve, easy adaptation, comfortable development.", |
|||
"ORMIndependent": "ORM Independent", |
|||
"ORMIndependentExplanation": "The core framework is ORM/database independent and can work with any data source. Entity Framework Core and MongoDB providers are already available.", |
|||
"Features": "Explore the ABP Framework Features", |
|||
"ABPCLI": "ABP CLI", |
|||
"Modularity": "Modularity", |
|||
"BootstrapTagHelpers": "Bootstrap Tag Helpers", |
|||
"DynamicForms": "Dynamic Forms", |
|||
"BundlingMinification": "Bundling & Minification", |
|||
"BackgroundJobs": "Background Jobs", |
|||
"BackgroundJobsExplanation": "Define simple classes to execute jobs in the background as queued. Use the built-in job manager or integrate your own. <a href=\"{0}\">Hangfire</a> & <a href=\"{1}\">RabbitMQ</a> integrations are already available.", |
|||
"DDDInfrastructure": "DDD Infrastructure", |
|||
"DomainDrivenDesignInfrastructure": "Domain Driven Design Infrastructure", |
|||
"AutoRESTAPIs": "Auto REST APIs", |
|||
"DynamicClientProxies": "Dynamic Client Proxies", |
|||
"DistributedEventBus": "Distributed Event Bus", |
|||
"DistributedEventBusWithRabbitMQIntegration": "Distributed Event Bus with RabbitMQ Integration", |
|||
"TestInfrastructure": "Test Infrastructure", |
|||
"AuditLoggingEntityHistories": "Audit Logging & Entity Histories", |
|||
"ObjectToObjectMapping": "Object to Object Mapping", |
|||
"ObjectToObjectMappingExplanation": "<a href=\"{0}\">Object to object mapping</a> abstraction with AutoMapper integration.", |
|||
"EmailSMSAbstractions": "Email & SMS Abstractions", |
|||
"EmailSMSAbstractionsWithTemplatingSupport": "Email & SMS Abstractions with Templating Support", |
|||
"Localization": "Localization", |
|||
"SettingManagement": "Setting Management", |
|||
"ExtensionMethods": "Extension Methods", |
|||
"ExtensionMethodsHelpers": "Extension Methods & Helpers", |
|||
"AspectOrientedProgramming": "Aspect Oriented Programming", |
|||
"DependencyInjection": "Dependency Injection", |
|||
"DependencyInjectionByConventions": "Dependency Injection by Conventions", |
|||
"ABPCLIExplanation": "The ABP CLI (Command Line Interface) is a command line tool to perform common operations for ABP based solutions.", |
|||
"ModularityExplanation": "ABP provides a complete infrastructure to build your own application modules those may have entities, services, database integration, APIs, UI components and so on.", |
|||
"MultiTenancyExplanation": "ABP framework not only supports to develop multi-tenant applications, but also makes your code mostly unaware of the multi-tenancy.", |
|||
"MultiTenancyExplanation2": "Can automatically determine the current Tenant and isolate each Tenant's data from each other.", |
|||
"MultiTenancyExplanation3": "Supports single database, database per tenant and hybrid approaches.", |
|||
"MultiTenancyExplanation4": "You focus on your business code and let the framework to handle multi-tenancy on behalf of you.", |
|||
"BootstrapTagHelpersExplanation": "Instead of manually writing the repeating details of bootstrap components, use ABP's tag helpers to simplify and take advantage of intellisense. You can use Bootstrap whenever you need it.", |
|||
"DynamicFormsExplanation": "Dynamic form & input tag helpers can create the complete form from a C# class as the model.", |
|||
"AuthenticationAuthorizationExplanation": "Rich authentication & authorization options integrated to ASP.NET Core Identity & IdentityServer4. Provides an extensible & detailed permission system.", |
|||
"CrossCuttingConcernsExplanation": "Don't repeat yourself when implementing common features. Instead, focus on your business logic and let ABP automate by convention.", |
|||
"DatabaseConnectionTransactionManagement": "Database Connection & Transaction Management", |
|||
"CorrelationIdTracking": "Correlation-Id Tracking", |
|||
"BundlingMinificationExplanation": "ABP offers a simple, dynamic, powerful, modular and built-in bundling & minification system.", |
|||
"VirtualFileSystemnExplanation": "The Virtual File System makes it possible to manage files those do not physically exist on the file system (disk). It's mainly used to embed (js, css, image, cshtml...) files into assemblies and use them like physical files on runtime.", |
|||
"ThemingExplanation": "Theming system allows to develop your application & modules theme independent by defining a set of common base libraries and layouts, based on the latest Bootstrap framework.", |
|||
"DomainDrivenDesignInfrastructureExplanation": "A complete infrastructure to build layered applications based on the Domain Driven Design patterns & principles.", |
|||
"Specification": "Specification", |
|||
"Repository": "Repository", |
|||
"DomainService": "Domain Service", |
|||
"ValueObject": "Value Object", |
|||
"ApplicationService": "Application Service", |
|||
"DataTransferObject": "Data Transfer Object", |
|||
"AggregateRootEntity": "Aggregate Root, Entity", |
|||
"AutoRESTAPIsExplanation": "ABP can automagically configure your application services as API Controllers by convention.", |
|||
"DynamicClientProxiesExplanation": "Easily consume your APIs from JavaScript and C# clients.", |
|||
"DistributedEventBusWithRabbitMQIntegrationExplanation": "Easily publish & consume distributed events using built-in Distributed Event Bus with RabbitMQ integration available.", |
|||
"TestInfrastructureExplanation": "The framework has been developed unit & integration testing in mind. Provides you base classes to make it easier. Startup templates come with pre-configured for testing.", |
|||
"AuditLoggingEntityHistoriesExplanation": "Built-in audit logging for business-critical applications. Request, service, method level audit logging and entity histories with property-level details.", |
|||
"EmailSMSAbstractionsWithTemplatingSupportExplanation": "IEmailSender and ISmsSender abstractions decouples your application logic from the infrastructure. Advanced email template system allows to create & localize email templates and easily use whenever needed.", |
|||
"LocalizationExplanation": "Localization system allows to create resources in plain JSON files and use them to localize your UI. It supports advanced scenarios like inheritance, extensions and JavaScript integration while it is fully compatible with AspNet Core's localization system.", |
|||
"SettingManagementExplanation": "Define settings for your application and get values on runtime based on the current configuration, tenant and user.", |
|||
"ExtensionMethodsHelpersExplanation": "Don't repeat yourself even for trivial code parts. Extensions & helpers for standard types makes your code much cleaner and easy to write.", |
|||
"AspectOrientedProgrammingExplanation": "Provides a comfortable infrastructure to create dynamic proxies and implement Aspect Oriented Programming. Intercept any class and execute your code before & after every method execution.", |
|||
"DependencyInjectionByConventionsExplanation": "No need to register your classes to dependency injection manually. Automatically registers common service types by convention. For other type of services, you can use interfaces and attributes to make it easier and in-place.", |
|||
"DataFilteringExplanation": "Define and use data filters those are automatically applied when you query entities from database. Soft Delete & Multi-Tenant filters are provided out of the box when you implement simple interfaces.", |
|||
"PublishEvents": "Publish Events", |
|||
"HandleEvents": "Handle Events", |
|||
"AndMore": "and more...", |
|||
"Code": "Code", |
|||
"Result": "Result", |
|||
"SeeTheDocumentForMoreInformation": "See the <a href=\"{1}\">{0} document</a> for more information", |
|||
"IndexPageHeroSection": "<span class=\"first-line shine\"><strong>open source</strong></span><span class=\"second-line text-uppercase\">Web Application<br />Framework </span><span class=\"third-line shine2\"><strong>for asp.net core</strong></span>", |
|||
"UiFramework": "UI Framework", |
|||
"EmailAddress": "Email address", |
|||
"Mobile": "Mobile", |
|||
"ReactNative": "React Native", |
|||
"Strong": "Strong", |
|||
"Complete": "Complete", |
|||
"BasedLayeringModel": "Based Layering Model", |
|||
"Microservice": "Microservice", |
|||
"Compatible": "Compatible", |
|||
"MeeTTheABPCommunityInfo": "Our mission is to create an environment where developers can help each other with articles, tutorials, case studies, etc. and meet like-minded people.", |
|||
"JoinTheABPCommunityInfo": "Get involved with a vibrant community and become a contributor to the ABP Framework!", |
|||
"AllArticles": "All Articles", |
|||
"SubmitYourArticle": "Submit Your Article", |
|||
"DynamicClientProxyDocument": "See the dynamic client proxy documentations for <a href=\"{0}\">JavaScript</a> & <a href=\"{1}\">C#</a>.", |
|||
"EmailSMSAbstractionsDocument": "See the <a href=\"{0}\">emailing</a> and <a href=\"{1}\">SMS sending</a> documents for more information.", |
|||
"CreateProjectWizard": "This wizard creates a new project from the startup template which is properly configured to jump start to your project.", |
|||
"TieredOption": "Creates a tiered solution where Web and Http API layers are physically separated. If not checked, creates a layered solution which is less complex and suitable for most scenarios.", |
|||
"SeparateIdentityServerOption": "Separates server side into two applications: First one is for the identity server and the second one is for your server side HTTP API.", |
|||
"UseslatestPreVersion": "Uses latest pre-release version", |
|||
"ReadTheDocumentation": "<span class=\"text-primary\">Read</span><span class=\"text-success\">The Documentation</span>", |
|||
"Documentation": "Documentation", |
|||
"GettingStartedTutorial": "Getting Started Tutorial", |
|||
"ApplicationDevelopmentTutorial": "Application Development Tutorial", |
|||
"TheStartupTemplate": "The Startup Template", |
|||
"InstallABPCLIInfo": "ABP CLI is the fastest way to start a new solution with the ABP framework. Install the ABP CLI using a command line window:", |
|||
"DifferentLevelOfNamespaces": "You can use different level of namespaces; e.g. BookStore, Acme.BookStore or Acme.Retail.BookStore.", |
|||
"ABPCLIExamplesInfo": "<strong>new</strong> command creates a <strong>layered MVC application</strong> with <strong>Entity Framework Core</strong> as the database provider. However, it has additional options. Examples:", |
|||
"SeeCliDocumentForMoreInformation": "See the <a href=\"{0}\">ABP CLI document</a> for more options or select the \"Direct Download\" tab above.", |
|||
"Optional": "Optional", |
|||
"LocalFrameworkRef": "Keep local project reference for the framework packages.", |
|||
"BlobStoring": "BLOB Storing", |
|||
"BlobStoringExplanation": "BLOB Storing system provides an abstraction to work with BLOBs. ABP provides some pre-built storage provider integrations (Azure, AWS, File System, Database, etc.) that you can easily use in your applications.", |
|||
"TextTemplating": "Text Templating", |
|||
"TextTemplatingExplanation": "Text templating is used to dynamically render contents based on a template and a model (a data object). For example, you can use it to create dynamic email contents with a pre-built template.", |
|||
"MultipleUIOptions": "Multiple UI Options", |
|||
"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:" |
|||
} |
|||
} |
|||
@ -0,0 +1,51 @@ |
|||
# ABP.IO Platform 4.1 Final Has Been Released! |
|||
|
|||
[ABP Framework](https://abp.io/) and [ABP Commercial](https://commercial.abp.io/) 4.1 versions have been released today. |
|||
|
|||
## What's New With 4.1? |
|||
|
|||
Since all the new features are already explained in details with the [4.1 RC Announcement Post](https://blog.abp.io/abp/ABP.IO-Platform-v4.1-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.1-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.1 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. |
|||
|
|||
## ABP Community |
|||
|
|||
We started to get more contributions by the community for the [ABP Community](https://community.abp.io/) contents. Thank you all! |
|||
|
|||
We will be adding **Video Content** sharing system in a short time. We are planning to create short video contents, especially to explore the new features in every release. Again, we will be waiting video contributions by the community :) |
|||
|
|||
## About the Next Versions |
|||
|
|||
Planned preview date for the version **4.2 is January 14, 2021**. See the [Road Map](https://docs.abp.io/en/abp/latest/Road-Map) document and [GitHub Milestones](https://github.com/abpframework/abp/milestones) to learn what's planned for the next versions. We are trying to be clear about the coming features and the next release dates. |
|||
@ -0,0 +1,3 @@ |
|||
# Blazor UI: Page Progress |
|||
|
|||
TODO |
|||
@ -1,3 +1,9 @@ |
|||
@using Volo.Abp.Ui.Branding |
|||
@using Volo.Abp.Ui.Branding |
|||
@inject IBrandingProvider BrandingProvider |
|||
<a class="navbar-brand" href="">@BrandingProvider.AppName</a> |
|||
<a class="navbar-brand" href=""> |
|||
@if (!BrandingProvider.LogoUrl.IsNullOrWhiteSpace()) |
|||
{ |
|||
<img src="@BrandingProvider.LogoUrl" alt="@BrandingProvider.AppName" > |
|||
} |
|||
@BrandingProvider.AppName |
|||
</a> |
|||
|
|||
@ -0,0 +1,49 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.AspNetCore.Mvc.Rendering; |
|||
using Microsoft.AspNetCore.Mvc.ViewFeatures; |
|||
using Microsoft.AspNetCore.Razor.TagHelpers; |
|||
using Microsoft.Extensions.Options; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form |
|||
{ |
|||
[HtmlTargetElement(Attributes = "abp-id-name")] |
|||
public class AbpIdNameTagHelper : AbpTagHelper |
|||
{ |
|||
/// <summary>
|
|||
/// Make sure this TagHelper is executed first.
|
|||
/// </summary>
|
|||
public override int Order => -1000 - 1; |
|||
|
|||
[HtmlAttributeName("abp-id-name")] |
|||
public ModelExpression IdNameFor { get; set; } |
|||
|
|||
private readonly MvcViewOptions _mvcViewOptions; |
|||
|
|||
public AbpIdNameTagHelper(IOptions<MvcViewOptions> mvcViewOptions) |
|||
{ |
|||
_mvcViewOptions = mvcViewOptions.Value; |
|||
} |
|||
|
|||
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output) |
|||
{ |
|||
if (IdNameFor != null) |
|||
{ |
|||
if (!context.AllAttributes.Any(x => x.Name.Equals("id", StringComparison.OrdinalIgnoreCase))) |
|||
{ |
|||
var id = TagBuilder.CreateSanitizedId(IdNameFor.Name, _mvcViewOptions.HtmlHelperOptions.IdAttributeDotReplacement); |
|||
output.Attributes.Add("id", id); |
|||
} |
|||
|
|||
if (!context.AllAttributes.Any(x => x.Name.Equals("name", StringComparison.OrdinalIgnoreCase))) |
|||
{ |
|||
output.Attributes.Add("name", IdNameFor.Name); |
|||
} |
|||
} |
|||
|
|||
return Task.CompletedTask; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
{ |
|||
"culture": "en-GB", |
|||
"texts": { |
|||
"GivenTenantIsNotAvailable": "Given tenant is not available: {0}", |
|||
"Tenant": "Tenant", |
|||
"Switch": "switch", |
|||
"Name": "Name", |
|||
"SwitchTenantHint": "Leave the name field blank to switch to the host side.", |
|||
"SwitchTenant": "Switch tenant", |
|||
"NotSelected": "Not selected" |
|||
} |
|||
} |
|||
@ -1,3 +1,9 @@ |
|||
@using Volo.Abp.Ui.Branding |
|||
@inject IBrandingProvider BrandingProvider |
|||
<a class="navbar-brand" href="~/">@BrandingProvider.AppName</a> |
|||
<a class="navbar-brand" href="~/"> |
|||
@if (!BrandingProvider.LogoUrl.IsNullOrWhiteSpace()) |
|||
{ |
|||
<img src="@BrandingProvider.LogoUrl" alt="@BrandingProvider.AppName" > |
|||
} |
|||
@BrandingProvider.AppName |
|||
</a> |
|||
|
|||
@ -0,0 +1,52 @@ |
|||
using System; |
|||
using System.Net.Http; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.Extensions.Options; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Uow; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Uow |
|||
{ |
|||
public class AspNetCoreUnitOfWorkTransactionBehaviourProvider : IUnitOfWorkTransactionBehaviourProvider, ISingletonDependency |
|||
{ |
|||
private readonly IHttpContextAccessor _httpContextAccessor; |
|||
private readonly AspNetCoreUnitOfWorkTransactionBehaviourProviderOptions _options; |
|||
|
|||
public virtual bool? IsTransactional |
|||
{ |
|||
get |
|||
{ |
|||
var httpContext = _httpContextAccessor.HttpContext; |
|||
if (httpContext == null) |
|||
{ |
|||
return null; |
|||
} |
|||
|
|||
var currentUrl = httpContext.Request.Path.Value; |
|||
if (currentUrl != null) |
|||
{ |
|||
foreach (var url in _options.NonTransactionalUrls) |
|||
{ |
|||
if (currentUrl.StartsWith(url, StringComparison.OrdinalIgnoreCase)) |
|||
{ |
|||
return false; |
|||
} |
|||
} |
|||
} |
|||
|
|||
return !string.Equals( |
|||
httpContext.Request.Method, |
|||
HttpMethod.Get.Method, StringComparison.OrdinalIgnoreCase |
|||
); |
|||
} |
|||
} |
|||
|
|||
public AspNetCoreUnitOfWorkTransactionBehaviourProvider( |
|||
IHttpContextAccessor httpContextAccessor, |
|||
IOptions<AspNetCoreUnitOfWorkTransactionBehaviourProviderOptions> options) |
|||
{ |
|||
_httpContextAccessor = httpContextAccessor; |
|||
_options = options.Value; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Uow |
|||
{ |
|||
public class AspNetCoreUnitOfWorkTransactionBehaviourProviderOptions |
|||
{ |
|||
public List<string> NonTransactionalUrls { get; } |
|||
|
|||
public AspNetCoreUnitOfWorkTransactionBehaviourProviderOptions() |
|||
{ |
|||
NonTransactionalUrls = new List<string> |
|||
{ |
|||
"/connect/" |
|||
}; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
{ |
|||
"culture": "en-GB", |
|||
"texts": { |
|||
"Volo.Authorization:010001": "Authorisation failed! Given policy has not granted.", |
|||
"Volo.Authorization:010002": "Authorisation failed! Given policy has not granted: {PolicyName}", |
|||
"Volo.Authorization:010003": "Authorisation failed! Given policy has not granted for given resource: {ResourceName}", |
|||
"Volo.Authorization:010004": "Authorisation failed! Given requirement has not granted for given resource: {ResourceName}", |
|||
"Volo.Authorization:010005": "Authorisation failed! Given requirements has not granted for given resource: {ResourceName}" |
|||
} |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using AutoMapper; |
|||
using AutoMapper.Internal; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.Extensions.DependencyInjection.Extensions; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.AutoMapper |
|||
{ |
|||
public class AbpAutoMapperConventionalRegistrar : ConventionalRegistrarBase |
|||
{ |
|||
protected readonly Type[] OpenTypes = { |
|||
typeof(IValueResolver<,,>), |
|||
typeof(IMemberValueResolver<,,,>), |
|||
typeof(ITypeConverter<,>), |
|||
typeof(IValueConverter<,>), |
|||
typeof(IMappingAction<,>) |
|||
}; |
|||
|
|||
public override void AddType(IServiceCollection services, Type type) |
|||
{ |
|||
if (IsConventionalRegistrationDisabled(type)) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
if (type.IsClass && !type.IsAbstract && OpenTypes.Any(type.ImplementsGenericInterface)) |
|||
{ |
|||
services.TryAddTransient(type); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,122 +0,0 @@ |
|||
// This software is part of the Autofac IoC container
|
|||
// Copyright © 2015 Autofac Contributors
|
|||
// https://autofac.org
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person
|
|||
// obtaining a copy of this software and associated documentation
|
|||
// files (the "Software"), to deal in the Software without
|
|||
// restriction, including without limitation the rights to use,
|
|||
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
// copies of the Software, and to permit persons to whom the
|
|||
// Software is furnished to do so, subject to the following
|
|||
// conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be
|
|||
// included in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|||
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|||
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|||
// OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
|||
using System; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
|
|||
namespace Autofac.Extensions.DependencyInjection |
|||
{ |
|||
/// <summary>
|
|||
/// Autofac implementation of the ASP.NET Core <see cref="IServiceProvider"/>.
|
|||
/// </summary>
|
|||
/// <seealso cref="System.IServiceProvider" />
|
|||
/// <seealso cref="Microsoft.Extensions.DependencyInjection.ISupportRequiredService" />
|
|||
public class AutofacServiceProvider : IServiceProvider, ISupportRequiredService, IDisposable |
|||
{ |
|||
private readonly ILifetimeScope _lifetimeScope; |
|||
|
|||
private bool _disposed = false; |
|||
|
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="AutofacServiceProvider"/> class.
|
|||
/// </summary>
|
|||
/// <param name="lifetimeScope">
|
|||
/// The lifetime scope from which services will be resolved.
|
|||
/// </param>
|
|||
public AutofacServiceProvider(ILifetimeScope lifetimeScope) |
|||
{ |
|||
this._lifetimeScope = lifetimeScope; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Gets service of type <paramref name="serviceType" /> from the
|
|||
/// <see cref="AutofacServiceProvider" /> and requires it be present.
|
|||
/// </summary>
|
|||
/// <param name="serviceType">
|
|||
/// An object that specifies the type of service object to get.
|
|||
/// </param>
|
|||
/// <returns>
|
|||
/// A service object of type <paramref name="serviceType" />.
|
|||
/// </returns>
|
|||
/// <exception cref="Autofac.Core.Registration.ComponentNotRegisteredException">
|
|||
/// Thrown if the <paramref name="serviceType" /> isn't registered with the container.
|
|||
/// </exception>
|
|||
/// <exception cref="Autofac.Core.DependencyResolutionException">
|
|||
/// Thrown if the object can't be resolved from the container.
|
|||
/// </exception>
|
|||
public object GetRequiredService(Type serviceType) |
|||
{ |
|||
return this._lifetimeScope.Resolve(serviceType); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Gets the service object of the specified type.
|
|||
/// </summary>
|
|||
/// <param name="serviceType">
|
|||
/// An object that specifies the type of service object to get.
|
|||
/// </param>
|
|||
/// <returns>
|
|||
/// A service object of type <paramref name="serviceType" />; or <see langword="null" />
|
|||
/// if there is no service object of type <paramref name="serviceType" />.
|
|||
/// </returns>
|
|||
public object GetService(Type serviceType) |
|||
{ |
|||
return this._lifetimeScope.ResolveOptional(serviceType); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Gets the underlying instance of <see cref="ILifetimeScope" />.
|
|||
/// </summary>
|
|||
public ILifetimeScope LifetimeScope => _lifetimeScope; |
|||
|
|||
/// <summary>
|
|||
/// Releases unmanaged and - optionally - managed resources.
|
|||
/// </summary>
|
|||
/// <param name="disposing">
|
|||
/// <see langword="true" /> to release both managed and unmanaged resources;
|
|||
/// <see langword="false" /> to release only unmanaged resources.
|
|||
/// </param>
|
|||
protected virtual void Dispose(bool disposing) |
|||
{ |
|||
if (!this._disposed) |
|||
{ |
|||
this._disposed = true; |
|||
if (disposing) |
|||
{ |
|||
this._lifetimeScope.Dispose(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|||
/// </summary>
|
|||
public void Dispose() |
|||
{ |
|||
this.Dispose(true); |
|||
GC.SuppressFinalize(this); |
|||
} |
|||
} |
|||
} |
|||
@ -1,77 +0,0 @@ |
|||
// This software is part of the Autofac IoC container
|
|||
// Copyright © 2017 Autofac Contributors
|
|||
// http://autofac.org
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person
|
|||
// obtaining a copy of this software and associated documentation
|
|||
// files (the "Software"), to deal in the Software without
|
|||
// restriction, including without limitation the rights to use,
|
|||
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
// copies of the Software, and to permit persons to whom the
|
|||
// Software is furnished to do so, subject to the following
|
|||
// conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be
|
|||
// included in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|||
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|||
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|||
// OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
|||
using System; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
|
|||
namespace Autofac.Extensions.DependencyInjection |
|||
{ |
|||
/// <summary>
|
|||
/// A factory for creating a <see cref="ContainerBuilder"/> and an <see cref="T:System.IServiceProvider" />.
|
|||
/// </summary>
|
|||
public class AutofacServiceProviderFactory : IServiceProviderFactory<ContainerBuilder> |
|||
{ |
|||
private readonly Action<ContainerBuilder> _configurationAction; |
|||
|
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="AutofacServiceProviderFactory"/> class.
|
|||
/// </summary>
|
|||
/// <param name="configurationAction">Action on a <see cref="ContainerBuilder"/> that adds component registrations to the container.</param>
|
|||
public AutofacServiceProviderFactory(Action<ContainerBuilder> configurationAction = null) |
|||
{ |
|||
_configurationAction = configurationAction ?? (builder => { }); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Creates a container builder from an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
|
|||
/// </summary>
|
|||
/// <param name="services">The collection of services</param>
|
|||
/// <returns>A container builder that can be used to create an <see cref="T:System.IServiceProvider" />.</returns>
|
|||
public ContainerBuilder CreateBuilder(IServiceCollection services) |
|||
{ |
|||
var builder = new ContainerBuilder(); |
|||
|
|||
builder.Populate(services); |
|||
|
|||
_configurationAction(builder); |
|||
|
|||
return builder; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Creates an <see cref="T:System.IServiceProvider" /> from the container builder.
|
|||
/// </summary>
|
|||
/// <param name="containerBuilder">The container builder</param>
|
|||
/// <returns>An <see cref="T:System.IServiceProvider" /></returns>
|
|||
public IServiceProvider CreateServiceProvider(ContainerBuilder containerBuilder) |
|||
{ |
|||
if (containerBuilder == null) throw new ArgumentNullException(nameof(containerBuilder)); |
|||
|
|||
var container = containerBuilder.Build(); |
|||
|
|||
return new AutofacServiceProvider(container); |
|||
} |
|||
} |
|||
} |
|||
@ -1,67 +0,0 @@ |
|||
// This software is part of the Autofac IoC container
|
|||
// Copyright © 2015 Autofac Contributors
|
|||
// http://autofac.org
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person
|
|||
// obtaining a copy of this software and associated documentation
|
|||
// files (the "Software"), to deal in the Software without
|
|||
// restriction, including without limitation the rights to use,
|
|||
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
// copies of the Software, and to permit persons to whom the
|
|||
// Software is furnished to do so, subject to the following
|
|||
// conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be
|
|||
// included in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|||
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|||
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|||
// OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
|||
using System; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
|
|||
namespace Autofac.Extensions.DependencyInjection |
|||
{ |
|||
/// <summary>
|
|||
/// Autofac implementation of the ASP.NET Core <see cref="IServiceScope"/>.
|
|||
/// </summary>
|
|||
/// <seealso cref="Microsoft.Extensions.DependencyInjection.IServiceScope" />
|
|||
internal class AutofacServiceScope : IServiceScope |
|||
{ |
|||
private readonly ILifetimeScope _lifetimeScope; |
|||
|
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="AutofacServiceScope"/> class.
|
|||
/// </summary>
|
|||
/// <param name="lifetimeScope">
|
|||
/// The lifetime scope from which services should be resolved for this service scope.
|
|||
/// </param>
|
|||
public AutofacServiceScope(ILifetimeScope lifetimeScope) |
|||
{ |
|||
this._lifetimeScope = lifetimeScope; |
|||
this.ServiceProvider = this._lifetimeScope.Resolve<IServiceProvider>(); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Gets an <see cref="IServiceProvider" /> corresponding to this service scope.
|
|||
/// </summary>
|
|||
/// <value>
|
|||
/// An <see cref="IServiceProvider" /> that can be used to resolve dependencies from the scope.
|
|||
/// </value>
|
|||
public IServiceProvider ServiceProvider { get; } |
|||
|
|||
/// <summary>
|
|||
/// Disposes of the lifetime scope and resolved disposable services.
|
|||
/// </summary>
|
|||
public void Dispose() |
|||
{ |
|||
this._lifetimeScope.Dispose(); |
|||
} |
|||
} |
|||
} |
|||
@ -1,65 +0,0 @@ |
|||
// This software is part of the Autofac IoC container
|
|||
// Copyright © 2015 Autofac Contributors
|
|||
// http://autofac.org
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person
|
|||
// obtaining a copy of this software and associated documentation
|
|||
// files (the "Software"), to deal in the Software without
|
|||
// restriction, including without limitation the rights to use,
|
|||
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
// copies of the Software, and to permit persons to whom the
|
|||
// Software is furnished to do so, subject to the following
|
|||
// conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be
|
|||
// included in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|||
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|||
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|||
// OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
|||
using System.Diagnostics.CodeAnalysis; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
|
|||
namespace Autofac.Extensions.DependencyInjection |
|||
{ |
|||
/// <summary>
|
|||
/// Autofac implementation of the ASP.NET Core <see cref="IServiceScopeFactory"/>.
|
|||
/// </summary>
|
|||
/// <seealso cref="Microsoft.Extensions.DependencyInjection.IServiceScopeFactory" />
|
|||
[SuppressMessage("Microsoft.ApiDesignGuidelines", "CA2213", Justification = "The creator of the root service lifetime scope is responsible for disposal.")] |
|||
internal class AutofacServiceScopeFactory : IServiceScopeFactory |
|||
{ |
|||
private readonly ILifetimeScope _lifetimeScope; |
|||
|
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="AutofacServiceScopeFactory"/> class.
|
|||
/// </summary>
|
|||
/// <param name="lifetimeScope">The lifetime scope.</param>
|
|||
public AutofacServiceScopeFactory(ILifetimeScope lifetimeScope) |
|||
{ |
|||
this._lifetimeScope = lifetimeScope; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Creates an <see cref="IServiceScope" /> which contains an
|
|||
/// <see cref="System.IServiceProvider" /> used to resolve dependencies within
|
|||
/// the scope.
|
|||
/// </summary>
|
|||
/// <returns>
|
|||
/// An <see cref="IServiceScope" /> controlling the lifetime of the scope. Once
|
|||
/// this is disposed, any scoped services that have been resolved
|
|||
/// from the <see cref="IServiceScope.ServiceProvider" />
|
|||
/// will also be disposed.
|
|||
/// </returns>
|
|||
public IServiceScope CreateScope() |
|||
{ |
|||
return new AutofacServiceScope(this._lifetimeScope.BeginLifetimeScope()); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,26 @@ |
|||
using System.Linq; |
|||
using Hangfire; |
|||
using Microsoft.Extensions.Options; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.BackgroundJobs.Hangfire |
|||
{ |
|||
public class AbpDashboardOptionsProvider : ITransientDependency |
|||
{ |
|||
protected AbpBackgroundJobOptions AbpBackgroundJobOptions { get; } |
|||
|
|||
public AbpDashboardOptionsProvider(IOptions<AbpBackgroundJobOptions> abpBackgroundJobOptions) |
|||
{ |
|||
AbpBackgroundJobOptions = abpBackgroundJobOptions.Value; |
|||
} |
|||
|
|||
public virtual DashboardOptions Get() |
|||
{ |
|||
return new DashboardOptions |
|||
{ |
|||
DisplayNameFunc = (dashboardContext, job) => |
|||
AbpBackgroundJobOptions.GetJob(job.Args.First().GetType()).JobName |
|||
}; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
using System; |
|||
using System.IO; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Cli.Args; |
|||
using Volo.Abp.Cli.Utils; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.Cli.Commands |
|||
{ |
|||
public class CreateMigrationAndRunMigrator : IConsoleCommand, ITransientDependency |
|||
{ |
|||
public virtual async Task ExecuteAsync(CommandLineArgs commandLineArgs) |
|||
{ |
|||
if (commandLineArgs.Target.IsNullOrEmpty()) |
|||
{ |
|||
throw new CliUsageException( |
|||
"DbMigrations folder path is missing!" |
|||
); |
|||
} |
|||
|
|||
var dbMigratorProjectPath = GetDbMigratorProjectPath(commandLineArgs.Target); |
|||
|
|||
if (dbMigratorProjectPath == null) |
|||
{ |
|||
throw new Exception("DbMigrator is not found!"); |
|||
} |
|||
|
|||
var output = CmdHelper.RunCmdAndGetOutput("cd \"" + commandLineArgs.Target + "\" && dotnet ef migrations add Initial -s " + dbMigratorProjectPath); |
|||
|
|||
if (output.Contains("Done.") && output.Contains("To undo this action") && output.Contains("ef migrations remove")) // Migration added successfully
|
|||
{ |
|||
CmdHelper.RunCmd("cd \"" + Path.GetDirectoryName(dbMigratorProjectPath) + "\" && dotnet run"); |
|||
} |
|||
} |
|||
|
|||
private string GetDbMigratorProjectPath(string dbMigrationsFolderPath) |
|||
{ |
|||
var srcFolder = Directory.GetParent(dbMigrationsFolderPath); |
|||
|
|||
var dbMigratorFolderPath = Directory.GetDirectories(srcFolder.FullName).FirstOrDefault(d => d.EndsWith(".DbMigrator")); |
|||
|
|||
if (dbMigratorFolderPath == null) |
|||
{ |
|||
return null; |
|||
} |
|||
|
|||
return Directory.GetFiles(dbMigratorFolderPath).FirstOrDefault(f => f.EndsWith(".csproj")); |
|||
} |
|||
|
|||
public string GetUsageInfo() |
|||
{ |
|||
return string.Empty; |
|||
} |
|||
|
|||
public string GetShortDescription() |
|||
{ |
|||
return string.Empty; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
namespace Volo.Abp.Cli.ProjectBuilding.Building |
|||
{ |
|||
public enum DatabaseManagementSystem |
|||
{ |
|||
NotSpecified, |
|||
SQLServer, |
|||
MySQL, |
|||
PostgreSQL, |
|||
Oracle, |
|||
OracleDevart, |
|||
SQLite |
|||
} |
|||
} |
|||
@ -0,0 +1,97 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using Volo.Abp.Cli.ProjectBuilding.Files; |
|||
|
|||
namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps |
|||
{ |
|||
public class DatabaseManagementSystemChangeStep : ProjectBuildPipelineStep |
|||
{ |
|||
public override void Execute(ProjectBuildContext context) |
|||
{ |
|||
switch (context.BuildArgs.DatabaseManagementSystem) |
|||
{ |
|||
case DatabaseManagementSystem.MySQL: |
|||
ChangeEntityFrameworkCoreDependency(context,"Volo.Abp.EntityFrameworkCore.MySQL", |
|||
"Volo.Abp.EntityFrameworkCore.MySQL", |
|||
"AbpEntityFrameworkCoreMySQLModule"); |
|||
AddMySqlServerVersion(context); |
|||
ChangeUseSqlServer(context,"UseMySQL", "UseMySql"); |
|||
break; |
|||
|
|||
case DatabaseManagementSystem.PostgreSQL: |
|||
ChangeEntityFrameworkCoreDependency(context,"Volo.Abp.EntityFrameworkCore.PostgreSql", |
|||
"Volo.Abp.EntityFrameworkCore.PostgreSql", |
|||
"AbpEntityFrameworkCorePostgreSqlModule"); |
|||
ChangeUseSqlServer(context,"UseNpgsql"); |
|||
break; |
|||
|
|||
case DatabaseManagementSystem.Oracle: |
|||
ChangeEntityFrameworkCoreDependency(context,"Volo.Abp.EntityFrameworkCore.Oracle", |
|||
"Volo.Abp.EntityFrameworkCore.Oracle", |
|||
"AbpEntityFrameworkCoreOracleModule"); |
|||
ChangeUseSqlServer(context,"UseOracle"); |
|||
break; |
|||
|
|||
case DatabaseManagementSystem.OracleDevart: |
|||
ChangeEntityFrameworkCoreDependency(context,"Volo.Abp.EntityFrameworkCore.Oracle.Devart", |
|||
"Volo.Abp.EntityFrameworkCore.Oracle.Devart", |
|||
"AbpEntityFrameworkCoreOracleDevartModule"); |
|||
AdjustOracleDbContextOptionsBuilder(context); |
|||
ChangeUseSqlServer(context,"UseOracle"); |
|||
break; |
|||
|
|||
case DatabaseManagementSystem.SQLite: |
|||
ChangeEntityFrameworkCoreDependency(context,"Volo.Abp.EntityFrameworkCore.Sqlite", |
|||
"Volo.Abp.EntityFrameworkCore.Sqlite", |
|||
"AbpEntityFrameworkCoreSqliteModule"); |
|||
ChangeUseSqlServer(context,"UseSqlite"); |
|||
break; |
|||
|
|||
default: |
|||
return; |
|||
} |
|||
} |
|||
|
|||
private void AdjustOracleDbContextOptionsBuilder(ProjectBuildContext context) |
|||
{ |
|||
var dbContextFactoryFile = context.Files.First(f => f.Name.EndsWith("MigrationsDbContextFactory.cs", StringComparison.OrdinalIgnoreCase)); |
|||
|
|||
dbContextFactoryFile.ReplaceText("new DbContextOptionsBuilder", |
|||
$"(DbContextOptionsBuilder<{context.BuildArgs.SolutionName.ProjectName}MigrationsDbContext>) new DbContextOptionsBuilder"); |
|||
} |
|||
|
|||
private void AddMySqlServerVersion(ProjectBuildContext context) |
|||
{ |
|||
var dbContextFactoryFile = context.Files.First(f => f.Name.EndsWith("MigrationsDbContextFactory.cs", StringComparison.OrdinalIgnoreCase)); |
|||
|
|||
dbContextFactoryFile.ReplaceText("configuration.GetConnectionString(\"Default\")", |
|||
"configuration.GetConnectionString(\"Default\"), MySqlServerVersion.LatestSupportedServerVersion"); |
|||
} |
|||
|
|||
private void ChangeEntityFrameworkCoreDependency(ProjectBuildContext context, string newPackageName, string newModuleNamespace, string newModuleClass) |
|||
{ |
|||
var efCoreProjectFile = context.Files.First(f => f.Name.EndsWith("EntityFrameworkCore.csproj", StringComparison.OrdinalIgnoreCase)); |
|||
efCoreProjectFile.ReplaceText("Volo.Abp.EntityFrameworkCore.SqlServer", newPackageName); |
|||
|
|||
var efCoreModuleClass = context.Files.First(f => f.Name.EndsWith("EntityFrameworkCoreModule.cs", StringComparison.OrdinalIgnoreCase)); |
|||
efCoreModuleClass.ReplaceText("Volo.Abp.EntityFrameworkCore.SqlServer", newModuleNamespace); |
|||
efCoreModuleClass.ReplaceText("AbpEntityFrameworkCoreSqlServerModule", newModuleClass); |
|||
} |
|||
|
|||
private void ChangeUseSqlServer(ProjectBuildContext context, string newUseMethodForEfModule, string newUseMethodForDbContext = null) |
|||
{ |
|||
if (newUseMethodForDbContext == null) |
|||
{ |
|||
newUseMethodForDbContext = newUseMethodForEfModule; |
|||
} |
|||
|
|||
var oldUseMethod = "UseSqlServer"; |
|||
|
|||
var efCoreModuleClass = context.Files.First(f => f.Name.EndsWith("EntityFrameworkCoreModule.cs", StringComparison.OrdinalIgnoreCase)); |
|||
efCoreModuleClass.ReplaceText(oldUseMethod, newUseMethodForEfModule); |
|||
|
|||
var dbContextFactoryFile = context.Files.First(f => f.Name.EndsWith("MigrationsDbContextFactory.cs", StringComparison.OrdinalIgnoreCase)); |
|||
dbContextFactoryFile.ReplaceText(oldUseMethod, newUseMethodForDbContext); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,24 @@ |
|||
using Volo.Abp.Cli.ProjectBuilding.Building; |
|||
using Volo.Abp.Cli.ProjectBuilding.Files; |
|||
|
|||
namespace Volo.Abp.Cli.ProjectBuilding.Templates.App |
|||
{ |
|||
public class AppTemplateChangeDbMigratorPortSettingsStep : ProjectBuildPipelineStep |
|||
{ |
|||
public string IdentityServerPort { get; } |
|||
|
|||
/// <param name="identityServerPort"></param>
|
|||
public AppTemplateChangeDbMigratorPortSettingsStep( |
|||
string identityServerPort) |
|||
{ |
|||
IdentityServerPort = identityServerPort; |
|||
} |
|||
|
|||
public override void Execute(ProjectBuildContext context) |
|||
{ |
|||
context |
|||
.GetFile("/aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator/appsettings.json") |
|||
.ReplaceText("44305", IdentityServerPort); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,46 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using Newtonsoft.Json; |
|||
using Newtonsoft.Json.Linq; |
|||
using Volo.Abp.Cli.ProjectBuilding.Building; |
|||
|
|||
namespace Volo.Abp.Cli.ProjectBuilding.Templates |
|||
{ |
|||
public class RemoveUnnecessaryPortsStep : ProjectBuildPipelineStep |
|||
{ |
|||
public override void Execute(ProjectBuildContext context) |
|||
{ |
|||
var httpApiHostAppSettings = context.Files.FirstOrDefault(f => f.Name.EndsWith(".HttpApi.Host/appsettings.json")); |
|||
|
|||
if (httpApiHostAppSettings == null) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
var portsToRemoveFromCors = new List<string>(); |
|||
|
|||
var appSettingsJson = JObject.Parse(httpApiHostAppSettings.Content); |
|||
var appJson = (JObject) appSettingsJson["App"]; |
|||
|
|||
if (context.BuildArgs.UiFramework != UiFramework.Angular) |
|||
{ |
|||
appJson.Property("ClientUrl")?.Remove(); |
|||
portsToRemoveFromCors.Add("4200"); |
|||
} |
|||
if (context.BuildArgs.UiFramework != UiFramework.Blazor) |
|||
{ |
|||
portsToRemoveFromCors.Add("44307"); |
|||
} |
|||
|
|||
if (appJson["CorsOrigins"] != null) |
|||
{ |
|||
appJson["CorsOrigins"] = string.Join(",", |
|||
appJson["CorsOrigins"].ToString().Split(",").Where(u=> !portsToRemoveFromCors.Any(u.EndsWith)) |
|||
); |
|||
} |
|||
|
|||
httpApiHostAppSettings.SetContent(JsonConvert.SerializeObject(appSettingsJson, Formatting.Indented)); |
|||
} |
|||
} |
|||
} |
|||
@ -1,40 +0,0 @@ |
|||
using System; |
|||
using System.IO; |
|||
using Volo.Abp.Cli.Utils; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.Cli.ProjectModification |
|||
{ |
|||
public class EfCoreMigrationAdder : ITransientDependency |
|||
{ |
|||
public void AddMigration(string dbMigrationsCsprojFile, string module, string startupProject) |
|||
{ |
|||
var moduleName = ParseModuleName(module); |
|||
var migrationName = "Added_" + moduleName + "_Module" + GetUniquePostFix(); |
|||
|
|||
CmdHelper.RunCmd("cd \"" + Path.GetDirectoryName(dbMigrationsCsprojFile) + "\" && dotnet ef migrations add " + migrationName + GetStartupProjectOption(startupProject)); |
|||
} |
|||
|
|||
protected virtual string ParseModuleName(string fullModuleName) |
|||
{ |
|||
var words = fullModuleName?.Split('.'); |
|||
|
|||
if (words == null || words.Length <= 1) |
|||
{ |
|||
return ""; |
|||
} |
|||
|
|||
return words[words.Length - 1]; |
|||
} |
|||
|
|||
protected virtual string GetUniquePostFix() |
|||
{ |
|||
return "_" + new Random().Next(1,99999); |
|||
} |
|||
|
|||
protected virtual string GetStartupProjectOption(string startupProject) |
|||
{ |
|||
return startupProject.IsNullOrWhiteSpace() ? "" : $" -s {startupProject}"; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,73 @@ |
|||
using System; |
|||
using System.IO; |
|||
using System.Linq; |
|||
using Microsoft.Extensions.Logging; |
|||
using Microsoft.Extensions.Logging.Abstractions; |
|||
using Volo.Abp.Cli.Utils; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.Cli.ProjectModification |
|||
{ |
|||
public class EfCoreMigrationManager : ITransientDependency |
|||
{ |
|||
public ILogger<EfCoreMigrationManager> Logger { get; set; } |
|||
|
|||
public EfCoreMigrationManager() |
|||
{ |
|||
Logger = NullLogger<EfCoreMigrationManager>.Instance; |
|||
} |
|||
|
|||
public void AddMigration(string dbMigrationsCsprojFile, string module, string startupProject) |
|||
{ |
|||
var moduleName = ParseModuleName(module); |
|||
var migrationName = "Added_" + moduleName + "_Module" + GetUniquePostFix(); |
|||
|
|||
CmdHelper.RunCmd("cd \"" + Path.GetDirectoryName(dbMigrationsCsprojFile) + |
|||
"\" && dotnet ef migrations add " + migrationName + |
|||
GetStartupProjectOption(startupProject)); |
|||
} |
|||
|
|||
public void RemoveAllMigrations(string solutionFolder) |
|||
{ |
|||
if (Directory.Exists(Path.Combine(solutionFolder, "aspnet-core"))) |
|||
{ |
|||
solutionFolder = Path.Combine(solutionFolder, "aspnet-core"); |
|||
} |
|||
|
|||
var srcFolder = Path.Combine(solutionFolder, "src"); |
|||
|
|||
var migrationsFolder = Directory.GetDirectories(srcFolder) |
|||
.FirstOrDefault(d => d.EndsWith(".EntityFrameworkCore.DbMigrations")); |
|||
|
|||
if (migrationsFolder != null) |
|||
{ |
|||
Directory.Delete(Path.Combine(migrationsFolder, "Migrations"), true); |
|||
} |
|||
else |
|||
{ |
|||
Logger.LogWarning("No migration found to delete."); |
|||
} |
|||
} |
|||
|
|||
protected virtual string ParseModuleName(string fullModuleName) |
|||
{ |
|||
var words = fullModuleName?.Split('.'); |
|||
if (words == null || words.Length <= 1) |
|||
{ |
|||
return ""; |
|||
} |
|||
|
|||
return words[words.Length - 1]; |
|||
} |
|||
|
|||
protected virtual string GetUniquePostFix() |
|||
{ |
|||
return "_" + new Random().Next(1, 99999); |
|||
} |
|||
|
|||
protected virtual string GetStartupProjectOption(string startupProject) |
|||
{ |
|||
return startupProject.IsNullOrWhiteSpace() ? "" : $" -s {startupProject}"; |
|||
} |
|||
} |
|||
} |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue