Activities of "maliming"

hi

https://support.abp.io/QA/Questions/631/Support-for-many-to-one-and-many-to-many-relationships https://community.abp.io/articles/many-to-many-relationship-with-abp-and-ef-core-g7rm2qut

hi

[Dependency(ReplaceServices = true)]
public class MyUnitOfWorkManager : IUnitOfWorkManager, ISingletonDependency
{
    private readonly UnitOfWorkManager _innerUnitOfWorkManager;

    public MyUnitOfWorkManager(UnitOfWorkManager innerUnitOfWorkManager)
    {
        _innerUnitOfWorkManager = innerUnitOfWorkManager;
    }

    public IUnitOfWork Begin(AbpUnitOfWorkOptions options, bool requiresNew = false)
    {
        options.IsTransactional = false;
        return _innerUnitOfWorkManager.Begin(options, requiresNew);
    }

    public IUnitOfWork Reserve(string reservationName, bool requiresNew = false)
    {
        return _innerUnitOfWorkManager.Reserve(reservationName, requiresNew);
    }

    public void BeginReserved(string reservationName, AbpUnitOfWorkOptions options)
    {
        options.IsTransactional = false;
        _innerUnitOfWorkManager.BeginReserved(reservationName, options);
    }

    public bool TryBeginReserved(string reservationName, AbpUnitOfWorkOptions options)
    {
        options.IsTransactional = false;
        return _innerUnitOfWorkManager.TryBeginReserved(reservationName, options);
    }

    public IUnitOfWork Current => _innerUnitOfWorkManager.Current;
}
public override void ConfigureServices(ServiceConfigurationContext context)
{
    context.Services.AddSingleton(typeof(UnitOfWorkManager));
}

hi

I will provide a solution, please wait a moment.

hi

Can you share your steps and error details?

Answer

Have you tried it according to its documentation?

hi

Can you explain it a lot more?

hi pszatkowski

Can you share a simplest project to reproduce the problem.

https://github.com/abpframework/abp-samples/pull/107

hi

I will create a such example.

Answer

hi MichelZ

I don't recommend you to do this, the disadvantages outweigh the advantages.

Showing 7391 to 7400 of 8945 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 08, 2025, 14:09