Activities of "liangshiwei"

Duplicate of https://support.abp.io/QA/Questions/6824/I-want-to-only-have-custom-tables-and-databases-that-I-create-in-my-Mongo-DB-using-sample-abp-template

I was thinking of using a microservice template but since it does not support mongo db and I am not able to connect with Cosmos db using entity framework and even I am not able to run the solution after adding a new microservice.

I thought maybe I will use the sample templates and create different solutions for each microservice as a single solution. I am able to reach to Cosmos db using Mongo DB aa the database But the challenge I face here is that there is a lot pf table data that I won’t use. With your expertise can you share what approach should I follow

I'll share a sample solution with you

I will check how to use EF core to connect to Azure Cosmos

After my check, the EF Core Cosmos provider only works with Azure Cosmos DB for NoSQL, so you have to use MongoDB

https://learn.microsoft.com/en-us/ef/core/providers/cosmos/?tabs=dotnet-core-cli

Hi,

I am able to reach to Cosmos db using Mongo DB aa the database But the challenge I face here is that there is a lot of table data created in database that I won’t use.

https://support.abp.io/QA/Questions/6824/I-want-to-only-have-custom-tables-and-databases-that-I-create-in-my-Mongo-DB-using-sample-abp-template#answer-3a112eb6-73b8-de62-7e50-36262b587cac

Microservices have many challenges, and ABP's microservices module is configured to address them. It's best if you can use it directly. But microservices are complex, and you have to understand it otherwise, it may slow down your development progress

I was thinking of using a microservice template but since it does not support mongo db and I am not able to connect with Cosmos db using entity framework and even I am not able to run the solution after adding a new microservice.

I will check how to use EF core to connect to Azure Cosmos

Ok,

You can remove all the pre-built modules from your solution.

As I remember, you are using the Micoservice template.

You can remove administration, identity, product, and saas services from your solution.

Remove route config from the gateway:

After you have removed the service, you will also need to fix the solution reference.

You can try to build the solution, and then delete the relevant code based on the error message until the build succeeds, for example:

As I understand, you don't need any ABP pre-built modules and features. you want developed from scratch, do you?

I need to have 4 to 10 API microservices and no web is required. For web we are having Angular as a separate solution.

You can create a microservice project with angular UI and remove you don't need some of them

We need to use Azure Cosmos DB. As per your document we are not having any mongo connection string provided in the azure. Just primary and secondary keys and connection string for Cosmos DB . We need your help in how do we connect to cosmos in our microservices. Refer to the image below for cosmos db configuration that I have:

Here is the Microsoft document about how to get the Cosmos db connection string: https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/connect-account#get-the-mongodb-connection-string-by-using-the-quick-start

We need to use client IDP server for authentication and authorization of API's.

I didn't get it.

We need to have more information on where and how to implement Unit testing .

ABP has a lot of examples for unit testing when you create the project, you can see unit test code in the solution

See also https://docs.abp.io/en/commercial/latest/tutorials/book-store/part-4?UI=NG&DB=EFhttps://docs.abp.io/en/abp/latest/UI/Angular/Testing https://community.abp.io/articles/unit-testing-with-the-angular-ui-p4l550q3

I do not need other features like RabbitMQ in my solution.

You can remove RabbitMQ related config from the solution without question.

Hi,

Yes, you can configure the AbpAuditingOptions,

For example:

Configure<AbpAuditingOptions>(options =>
{
    options.AlwaysLogSelectors.Add((info =>
    {
        if(info.ClientId == "Your client id")
        {
            return Task.FromResult(true);
        }
        
        return Task.FromResult(false);
    }));
});

See also: https://docs.abp.io/en/abp/latest/Audit-Logging#abpauditingoptions

Hi,

HTTP GET requests should not make any change in the database normally and audit log system doesn't save audit log objects for GET request. Set this to true to enable it also for the GET requests.

https://docs.abp.io/en/abp/latest/Audit-Logging#abpauditingoptions

You can try a POST request.

Hi,

You can install the serilog-sinks-rollingfile package and config it in the SerilogConfigurationHelper

https://github.com/serilog/serilog-sinks-rollingfile/blob/dev/README.md

Showing 2341 to 2350 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 07, 2025, 08:20