Starts in:
0 DAY
22 HRS
42 MIN
42 SEC
Starts in:
0 D
22 H
42 M
42 S
Open Closed

Generating CRUD using abp suite for module #8266


User avatar
0
surajlokhandemmew created

ABP Framework version: v8.1.0

UI Type: MVC

Database System: MongoDB

Tiered (for MVC) or Auth Server Separated (for Angular): no

I generated a module using ABP.IO within the same solution. However, when I try to create CRUD operations, they are being added to the main project instead of the module, even though I specify the module's namespace. The main project already has a namespace with the same name as the module.

I hope you are getting me.


38 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    can i check it remotely?

  • User Avatar
    0
    surajlokhandemmew created

    does it help to analyze?

  • User Avatar
    0
    surajlokhandemmew created

    can i check it remotely?

    yes please

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    https://us05web.zoom.us/j/5929668302?pwd=UXl2M2RUeG5PazVSY2ZCOW1NMUxtZz09

  • User Avatar
    0
    surajlokhandemmew created

    https://us05web.zoom.us/j/5929668302?pwd=UXl2M2RUeG5PazVSY2ZCOW1NMUxtZz09

    Hi sent you email with project.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Suite:

    you can change this

    Generate code

    Your API definition response is not standardized.

    See https://abp.io/support/questions/6319/Angular-Proxy-Generation-Cannot-read-properties-of-null-reading-%27replace%27#answer-3a0f8f60-fd10-54ed-9f29-0169898dcef4

    Add MyAbpApiDefinitionController to Web project

    [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(AbpApiDefinitionController))]
    public class MyAbpApiDefinitionController : AbpApiDefinitionController
    {
        public MyAbpApiDefinitionController(IApiDescriptionModelProvider modelProvider) : base(modelProvider)
        {
        }
    
        public override ApplicationApiDescriptionModel Get(ApplicationApiDescriptionModelRequestDto model)
        {
            return RemoveNullParameters(base.Get(model));
        }
    
        public ApplicationApiDescriptionModel RemoveNullParameters(ApplicationApiDescriptionModel model)
        {
            foreach (var action in 
                     model.Modules.Select(x => x.Value)
                         .Select(api => api.Controllers).SelectMany(controllerApi => controllerApi.Values)
                         .SelectMany(controller => controller.Actions.Values))
            {
    
                action.Parameters.RemoveAll(x => x.Type == null && x.TypeSimple == null);
                action.ParametersOnMethod.RemoveAll(x => x.Type == null && x.TypeSimple == null);
            }
    
            return model;
        }
    }
    
  • User Avatar
    0
    surajlokhandemmew created

    Thank you for the quick response! It worked, but I’ve been using the same structure for the past 3–4 months without any issues. Do you have any idea why it suddenly stopped working?

  • User Avatar
    0
    surajlokhandemmew created

    on runtime i am getting this in browser

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Thank you for the quick response! It worked, but I’ve been using the same structure for the past 3–4 months without any issues. Do you have any idea why it suddenly stopped working?

    I don't know why, I have checked the logic about suite, we have not changed for a year.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can check those same issues https://abp.io/support/questions/5539/NullInjectorError-No-provider-for-InjectionToken-COREOPTIONS https://abp.io/support/questions/7377/Frontend-Error-after-ABP-upgrade--No-provider-for-InjectionToken-COREOPTIONS

  • User Avatar
    0
    surajlokhandemmew created

    i already checked all those related questions but unable to resolve this is my app module file

    import { CoreModule, provideAbpCore, withOptions } from '@abp/ng.core'; import { provideSettingManagementConfig, SettingManagementConfigModule } from '@abp/ng.setting-management/config'; import { provideAbpThemeShared, ThemeSharedModule, withHttpErrorConfig, withValidationBluePrint } from '@abp/ng.theme.shared'; import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { IdentityConfigModule, provideIdentityConfig } from '@volo/abp.ng.identity/config'; import { CommercialUiConfigModule, provideCommercialUiConfig } from '@volo/abp.commercial.ng.ui/config'; import { AccountAdminConfigModule, provideAccountAdminConfig } from '@volo/abp.ng.account/admin/config'; import { AccountPublicConfigModule, provideAccountPublicConfig } from '@volo/abp.ng.account/public/config'; import { GdprConfigModule, provideGdprConfig, withCookieConsentOptions } from '@volo/abp.ng.gdpr/config'; import { AuditLoggingConfigModule, provideAuditLoggingConfig } from '@volo/abp.ng.audit-logging/config'; import { LanguageManagementConfigModule, provideLanguageManagementConfig } from '@volo/abp.ng.language-management/config'; import { registerLocale } from '@volo/abp.ng.language-management/locale'; import { FileManagementConfigModule, provideFileManagementConfig } from '@volo/abp.ng.file-management/config'; import { ChatConfigModule, provideChatConfig } from '@volo/abp.ng.chat/config'; import { provideSaasConfig, SaasConfigModule } from '@volo/abp.ng.saas/config'; import { provideTextTemplateManagementConfig, TextTemplateManagementConfigModule } from '@volo/abp.ng.text-template-management/config'; import { OpeniddictproConfigModule, provideOpeniddictproConfig } from '@volo/abp.ng.openiddictpro/config'; import { environment } from '../environments/environment'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { APP_ROUTE_PROVIDER } from './route.provider'; import { FeatureManagementModule, provideFeatureManagementConfig } from '@abp/ng.feature-management'; import { HttpErrorComponent, ThemeLeptonXModule } from '@volosoft/abp.ng.theme.lepton-x'; import { SideMenuLayoutModule } from '@volosoft/abp.ng.theme.lepton-x/layouts'; import { AccountLayoutModule } from '@volosoft/abp.ng.theme.lepton-x/account'; import { AbpOAuthModule } from '@abp/ng.oauth'; import { MASTERS_TAXES_TAX_ROUTE_PROVIDER } from './masters/taxes/tax/providers/tax-route.provider'; import { STORE_TICKETS_TICKET_ROUTE_PROVIDER } from './store/tickets/ticket/providers/ticket-route.provider'; import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; import { share } from 'rxjs'; import { SharedModule } from './shared/shared.module'; import { CUSTOMERS_CLIENT_RELATIONS_CLIENT_RELATION_ROUTE_PROVIDER } from './customers/client-relations/client-relation/providers/client-relation-route.provider'; import { COMMERCIAL_CLIENTS_COMMERCIAL_CLIENT_ROUTE_PROVIDER } from './commercial-clients/commercial-client/providers/commercial-client-route.provider'; import { COMMERCIAL_DEPATMENTS_DEPATMENT_ROUTE_PROVIDER } from './commercial/depatments/depatment/providers/depatment-route.provider'; import { DEPARTMENTS_DEPARTMENT_ROUTE_PROVIDER } from './departments/department/providers/department-route.provider'; import { QUOTATION_MASTERS_QUOTATION_MASTER_ROUTE_PROVIDER } from './quotation-masters/quotation-master/providers/quotation-master-route.provider'; import { COMMERCIAL_QUOTATION_REGIONS_QUOTATION_REGION_ROUTE_PROVIDER } from './commercial/quotation-regions/quotation-region/providers/quotation-region-route.provider'; import { COMMERCIAL_CONTRACTS_CONTRACT_ROUTE_PROVIDER } from './commercial/contracts/contract/providers/contract-route.provider'; import { JOB_CARDS_JOB_CARD_ROUTE_PROVIDER } from './job-cards/job-card/providers/job-card-route.provider'; import { COMMERCIAL_ORDERS_COMMERCIAL_ORDER_ROUTE_PROVIDER } from './commercial-orders/commercial-order/providers/commercial-order-route.provider'; import { STORE_ORDERS_ORDER_ROUTE_PROVIDER } from './store/orders/order/providers/order-route.provider'; import { ORDER_STATUS_UPDATES_ORDER_STATUS_UPDATE_ROUTE_PROVIDER } from './order-status-updates/order-status-update/providers/order-status-update-route.provider'; import { MASTERS_DESIGNATIONS_DESIGNATION_ROUTE_PROVIDER } from './masters/designations/designation/providers/designation-route.provider'; import { DEPARTMENT_CONTACTS_DEPARTMENT_CONTACT_ROUTE_PROVIDER } from './department-contacts/department-contact/providers/department-contact-route.provider'; import { QuillModule } from 'ngx-quill'; import { CLIENT_TEMPLATES_CLIENT_TEMPLATE_ROUTE_PROVIDER } from './client-templates/client-template/providers/client-template-route.provider'; import { PRODUCT_DEPARTMENTS_PRODUCT_DEPARTMENT_ROUTE_PROVIDER } from './product-departments/product-department/providers/product-department-route.provider'; import { COMMERCIAL_PRODUCTS_COMMERCIAL_PRODUCT_ROUTE_PROVIDER } from './commercial-products/commercial-product/providers/commercial-product-route.provider'; import { MASTERS_REGIONS_REGION_ROUTE_PROVIDER } from './masters/regions/region/providers/region-route.provider'; import { MASTERS_CUSTOMER_REGIONS_CUSTOMER_REGION_ROUTE_PROVIDER } from './masters/customer-regions/customer-region/providers/customer-region-route.provider'; import { COMMERCIAL_CUSTOMERS_TEMPLATES_CUSTOMERS_TEMPLATE_ROUTE_PROVIDER } from './commercial/customers-templates/customers-template/providers/customers-template-route.provider'; import { COMMERCIAL_PRODUCT_SERVICE_MAPS_PRODUCT_SERVICE_MAP_ROUTE_PROVIDER } from './commercial/product-service-maps/product-service-map/providers/product-service-map-route.provider'; import { COMMERCIAL_CLIENT_STAFFS_CLIENT_STAFF_ROUTE_PROVIDER } from './commercial/client-staffs/client-staff/providers/client-staff-route.provider'; import { COMMERCIAL_COLLECTIONS_COLLECTION_ROUTE_PROVIDER } from './commercial/collections/collection/providers/collection-route.provider'; import { COMMERCIAL_CONTACT_PEOPLE_CONTACT_PERSON_ROUTE_PROVIDER } from './commercial/contact-people/contact-person/providers/contact-person-route.provider'; import { COMMERCIAL_COLLECTION_STATUSES_COLLECTION_STATUS_ROUTE_PROVIDER } from './commercial/collection-statuses/collection-status/providers/collection-status-route.provider'; import { COMMERCIAL_DELIVERIES_DELIVERY_ROUTE_PROVIDER } from './commercial/deliveries/delivery/providers/delivery-route.provider'; import { MASTERS_QUOTATION_CATEGORIES_QUOTATION_CATEGORY_ROUTE_PROVIDER } from './masters/quotation-categories/quotation-category/providers/quotation-category-route.provider'; import { COMMERCIAL_QUOTATION_RATES_QUOTATION_RATE_ROUTE_PROVIDER } from './commercial/quotation-rates/quotation-rate/providers/quotation-rate-route.provider'; import { COMMERCIAL_INVOICES_COMMERCIAL_INVOICE_ROUTE_PROVIDER } from './commercial-invoices/commercial-invoice/providers/commercial-invoice-route.provider'; import { COMMERCIAL_CUSTOMER_CREDENTIALS_CUSTOMER_CREDENTIAL_ROUTE_PROVIDER } from './commercial/customer-credentials/customer-credential/providers/customer-credential-route.provider'; import { COMMERCIAL_APPROVED_CNS_APPROVED_CN_ROUTE_PROVIDER } from './commercial/approved-cns/approved-cn/providers/approved-cn-route.provider'; import { COMMERCIAL_APPROVED_DNS_APPROVED_DN_ROUTE_PROVIDER } from './commercial/approved-dns/approved-dn/providers/approved-dn-route.provider'; import { CUSTOMER_INVOICES_CUSTOMER_INVOICE_ROUTE_PROVIDER } from './customer-invoices/customer-invoice/providers/customer-invoice-route.provider'; import { TALLY_ACCOUNTS_ACCOUNT_ROUTE_PROVIDER } from './tally/accounts/account/providers/account-route.provider'; import { TALLY_LEDGER_CATEGORIES_LEDGER_CATEGORY_ROUTE_PROVIDER } from './tally/ledger-categories/ledger-category/providers/ledger-category-route.provider'; import { TALLY_LEDGERS_LEDGER_ROUTE_PROVIDER } from './tally/ledgers/ledger/providers/ledger-route.provider'; import { TALLY_VOUCHER_TYPES_VOUCHER_TYPE_ROUTE_PROVIDER } from './tally/voucher-types/voucher-type/providers/voucher-type-route.provider'; import { TALLY_VOUCHERS_VOUCHER_ROUTE_PROVIDER } from './tally/vouchers/voucher/providers/voucher-route.provider'; import { TALLY_TRANSACTION_TABLES_TRANSACTION_TABLE_ROUTE_PROVIDER } from './tally/transaction-tables/transaction-table/providers/transaction-table-route.provider'; import { TALLY_ACCOUNT_TYPES_ACCOUNT_TYPE_ROUTE_PROVIDER } from './tally/account-types/account-type/providers/account-type-route.provider'; import { TALLY_BANK_DETAILS_BANK_DETAIL_ROUTE_PROVIDER } from './tally/bank-details/bank-detail/providers/bank-detail-route.provider'; import { ACCOUNTS_VENDORS_VENDOR_ROUTE_PROVIDER } from './accounts/vendors/vendor/providers/vendor-route.provider'; import { ACCOUNTS_STORE_ITEMS_STORE_ITEM_ROUTE_PROVIDER } from './accounts/store-items/store-item/providers/store-item-route.provider'; import { ACCOUNTS_PURCHASE_REQUESTS_PURCHASE_REQUEST_ROUTE_PROVIDER } from './accounts/purchase-requests/purchase-request/providers/purchase-request-route.provider'; import { ACCOUNTS_PURCHASE_ORDERS_PURCHASE_ORDER_ROUTE_PROVIDER } from './accounts/purchase-orders/purchase-order/providers/purchase-order-route.provider'; import { ACCOUNTS_PURCHASES_PURCHASE_ROUTE_PROVIDER } from './accounts/purchases/purchase/providers/purchase-route.provider'; import { ACCOUNTS_COST_CENTERS_COST_CENTER_ROUTE_PROVIDER } from './accounts/cost-centers/cost-center/providers/cost-center-route.provider'; import { ACCOUNTS_INVOICE_AGAINST_PURCHASE_ORDERS_INVOICE_AGAINST_PURCHASE_ORDER_ROUTE_PROVIDER } from './accounts/invoice-against-purchase-orders/invoice-against-purchase-order/providers/invoice-against-purchase-order-route.provider'; import { provideAbpOAuth } from '@abp/ng.oauth'; @NgModule({ declarations: [AppComponent], imports: [ BrowserModule, BrowserAnimationsModule, AppRoutingModule,

    CoreModule,
    ThemeSharedModule,
    AccountAdminConfigModule,
    IdentityConfigModule,
    GdprConfigModule,
    AuditLoggingConfigModule,
    ThemeLeptonXModule.forRoot(),
    SideMenuLayoutModule.forRoot(),
    AccountLayoutModule.forRoot(),
    

    ], providers: [ APP_ROUTE_PROVIDER, provideAbpCore( withOptions({ environment, registerLocaleFn: registerLocale(),

      }),
    ),
    provideIdentityConfig(),
    provideAbpOAuth(),
    
    provideSettingManagementConfig(),
    
    provideFeatureManagementConfig(),
    provideAccountAdminConfig(),
    provideAccountPublicConfig(),
    provideCommercialUiConfig(),
    provideAbpThemeShared(
      withHttpErrorConfig({
        errorScreen: {
          component: HttpErrorComponent,
          forWhichErrors: [401, 403, 404, 500],
          hideCloseIcon: true,
        },
      }),
      withValidationBluePrint({
        wrongPassword: 'Please choose 1q2w3E*',
      }),
    ),
    provideGdprConfig(
      withCookieConsentOptions({
        cookiePolicyUrl: '/gdpr-cookie-consent/cookie',
        privacyPolicyUrl: '/gdpr-cookie-consent/privacy',
      }),
    ),
    provideLanguageManagementConfig(),
    provideFileManagementConfig(),
    provideSaasConfig(),
    provideChatConfig(),
    provideAuditLoggingConfig(),
    provideOpeniddictproConfig(),
    provideTextTemplateManagementConfig(),
    
    MASTERS_TAXES_TAX_ROUTE_PROVIDER,
    STORE_TICKETS_TICKET_ROUTE_PROVIDER,
    
    CUSTOMERS_CLIENT_RELATIONS_CLIENT_RELATION_ROUTE_PROVIDER,
    COMMERCIAL_CLIENTS_COMMERCIAL_CLIENT_ROUTE_PROVIDER,
    COMMERCIAL_DEPATMENTS_DEPATMENT_ROUTE_PROVIDER,
    DEPARTMENTS_DEPARTMENT_ROUTE_PROVIDER,
    QUOTATION_MASTERS_QUOTATION_MASTER_ROUTE_PROVIDER,
    COMMERCIAL_QUOTATION_REGIONS_QUOTATION_REGION_ROUTE_PROVIDER,
    COMMERCIAL_CONTRACTS_CONTRACT_ROUTE_PROVIDER,
    JOB_CARDS_JOB_CARD_ROUTE_PROVIDER,
    COMMERCIAL_ORDERS_COMMERCIAL_ORDER_ROUTE_PROVIDER,
    STORE_ORDERS_ORDER_ROUTE_PROVIDER,
    ORDER_STATUS_UPDATES_ORDER_STATUS_UPDATE_ROUTE_PROVIDER,
    MASTERS_DESIGNATIONS_DESIGNATION_ROUTE_PROVIDER,
    DEPARTMENT_CONTACTS_DEPARTMENT_CONTACT_ROUTE_PROVIDER,
    CLIENT_TEMPLATES_CLIENT_TEMPLATE_ROUTE_PROVIDER,
    PRODUCT_DEPARTMENTS_PRODUCT_DEPARTMENT_ROUTE_PROVIDER,
    COMMERCIAL_PRODUCTS_COMMERCIAL_PRODUCT_ROUTE_PROVIDER,
    MASTERS_REGIONS_REGION_ROUTE_PROVIDER,
    MASTERS_CUSTOMER_REGIONS_CUSTOMER_REGION_ROUTE_PROVIDER,
    COMMERCIAL_CUSTOMERS_TEMPLATES_CUSTOMERS_TEMPLATE_ROUTE_PROVIDER,
    COMMERCIAL_PRODUCT_SERVICE_MAPS_PRODUCT_SERVICE_MAP_ROUTE_PROVIDER,
    COMMERCIAL_CLIENT_STAFFS_CLIENT_STAFF_ROUTE_PROVIDER,
    COMMERCIAL_COLLECTIONS_COLLECTION_ROUTE_PROVIDER,
    COMMERCIAL_CONTACT_PEOPLE_CONTACT_PERSON_ROUTE_PROVIDER,
    COMMERCIAL_COLLECTION_STATUSES_COLLECTION_STATUS_ROUTE_PROVIDER,
    COMMERCIAL_DELIVERIES_DELIVERY_ROUTE_PROVIDER,
    MASTERS_QUOTATION_CATEGORIES_QUOTATION_CATEGORY_ROUTE_PROVIDER,
    COMMERCIAL_QUOTATION_RATES_QUOTATION_RATE_ROUTE_PROVIDER,
    COMMERCIAL_INVOICES_COMMERCIAL_INVOICE_ROUTE_PROVIDER,
    COMMERCIAL_CUSTOMER_CREDENTIALS_CUSTOMER_CREDENTIAL_ROUTE_PROVIDER,
    COMMERCIAL_APPROVED_CNS_APPROVED_CN_ROUTE_PROVIDER,
    COMMERCIAL_APPROVED_DNS_APPROVED_DN_ROUTE_PROVIDER,
    CUSTOMER_INVOICES_CUSTOMER_INVOICE_ROUTE_PROVIDER,
    TALLY_ACCOUNTS_ACCOUNT_ROUTE_PROVIDER,
    TALLY_LEDGER_CATEGORIES_LEDGER_CATEGORY_ROUTE_PROVIDER,
    TALLY_LEDGERS_LEDGER_ROUTE_PROVIDER,
    TALLY_VOUCHER_TYPES_VOUCHER_TYPE_ROUTE_PROVIDER,
    TALLY_VOUCHERS_VOUCHER_ROUTE_PROVIDER,
    TALLY_TRANSACTION_TABLES_TRANSACTION_TABLE_ROUTE_PROVIDER,
    TALLY_ACCOUNT_TYPES_ACCOUNT_TYPE_ROUTE_PROVIDER,
    TALLY_BANK_DETAILS_BANK_DETAIL_ROUTE_PROVIDER,
    ACCOUNTS_VENDORS_VENDOR_ROUTE_PROVIDER,
    ACCOUNTS_STORE_ITEMS_STORE_ITEM_ROUTE_PROVIDER,
    ACCOUNTS_PURCHASE_REQUESTS_PURCHASE_REQUEST_ROUTE_PROVIDER,
    ACCOUNTS_PURCHASE_ORDERS_PURCHASE_ORDER_ROUTE_PROVIDER,
    ACCOUNTS_PURCHASES_PURCHASE_ROUTE_PROVIDER,
    ACCOUNTS_COST_CENTERS_COST_CENTER_ROUTE_PROVIDER,
    ACCOUNTS_INVOICE_AGAINST_PURCHASE_ORDERS_INVOICE_AGAINST_PURCHASE_ORDER_ROUTE_PROVIDER,
    

    ], bootstrap: [AppComponent], }) export class AppModule {}

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI

    Please carefully check the answer

  • User Avatar
    0
    surajlokhandemmew created

    resolved you can close this

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06