Base solution for your next web application

Activities of "XugoWebTeam"

Hi,

I've recently been attempting to get the test project up and running for our project. It appears as though a previous colleague did attempt to setup the mocking of the database using an in-memory SQLite database using a custom DB context which appears to follow the steps outlined here https://aspnetboilerplate.com/Pages/Documents/Articles/Unit-Testing-with-Entity-Framework,-xUnit-Effort/index.html. Following on from that article, I've attempted to write some test cases for another part of our project and noticed that the linked article should support resolving the repository within the test class. However, when I attempt to resolve like this _siteJoinReportRepository = Resolve<ISiteJoinReportRepository>();, I receive an object disposed exception with the following System.ObjectDisposedException Cannot access a disposed context instance. A common cause of this error is disposing a context instance that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling 'Dispose' on the context instance, or wrapping it in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances. . I've tried to update the test base to something like this, which I thought by removing the using, would stop the context from being disposed but the issue still persists.

        private void SeedTestData()
        {
            void NormalizeDbContext(XugoDbContext context)
            {
                context.EntityChangeEventHelper = NullEntityChangeEventHelper.Instance;
                context.EventBus = NullEventBus.Instance;
                context.SuppressAutoSetTenantId = true;
            }

            //Seed initial data for default tenant
            AbpSession.TenantId = 1;

            UsingDbContext(context =>
            {
                NormalizeDbContext(context);
                new TestDataBuilder(context, 1).Create();
                
                var repo = LocalIocManager.Resolve<EventReportRepository>();
                var t = repo.GetTable();
                
            });
        }

        protected IDisposable UsingTenantId(int? tenantId)
        {
            var previousTenantId = AbpSession.TenantId;
            AbpSession.TenantId = tenantId;
            return new DisposeAction(() => AbpSession.TenantId = previousTenantId);
        }

        protected void UsingDbContext(Action<XugoDbContext> action)
        {
            UsingDbContext(AbpSession.TenantId, action);
        }

Please let me know if you need any further information or details.

Thanks.

What is your product version: v11.1.0 What is your product type (Angular or MVC): ASP.NET CORE & Angular What is product framework type: .net core


is it possible to insert a line break into a language (xml) file?

for example, we have SweetAlert warning messages like below

&lt;text name =&quot;InvalidProjectDeleteWarning&quot; value=&quot;Failed to delete project {0} still has tasks.&quot; /&gt;

If we wanted to insert a line-break where there is a {0}, can that be done?

Question

Hello,

I often use your demo site as a point of reference when working on our own product. Currently though it seems to be down?

e,g.

https://t27254c64.demo.aspnetzero.com/account/login

I tried generating a fresh demo, but still get the same thing.

Would be good if you can restore this.

thank you

  • What is your product version? 11

  • What is your product type: Angular

  • What is product framework type: .net core

  • Which theme are you using? Default


Hi, I am looking to generate my own version of Metronic from the original Metronic source files. (In order to insert our own colors, styles extra....)

Before I do so, can you pleae confirm if the ASP.NET ZERO version of Metronic is stock standard? i.e you guys haven't made any of your own modifications?

thanks

Hello,

I was wanting to download the source files for Metronic, but it seems your links on this page are broken:

https://github.com/aspnetzero/aspnet-zero-core/releases/download/v11.0.0-rc.1/metronic_v8.0.26.zip

Can you fix please

thanks!

Question
  • What is your product type: Angular

  • What is product framework type : .net core)?

  • Which theme are you using? Default


Hi Support,

Can you confirm if, as part of ASPNETZERO, we get access to the Theming addon for PrimeNg: Theme Designer

https://www.primefaces.org/designer-ng

I believe this is normally a paid add-on

Question
  • What is your product version? 9
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core
  • Which theme are you using? Default

Hi,

We have a multi-tenant implementation of ASPNETZERO, and our needs require us to serve different icons to different Tenants.

Currently they way we are doing this is by forking the code in the HTML using appSession.tenancyName :

<img *ngIf="appSession.tenancyName.toLowerCase() == 'tenantName'

or:

<i *ngIf="appSession.tenancyName.toLowerCase() == 'tenantName' else defaultEventIcon;" class="la la-warning"><i>

<br> But this is not an ideal solution as the code can get messy as more and more icons/tenant are added

Can you recommend an alternative approach?

fyi - currently were using image icons, font icons and some SVG icons.

thank you

Question
  • What is your product type: Angular
  • What is product framework type: .net core

Hi,

Are there plans for ASPNETZERO to introduce dark-mode in the future? I see that this has already been introduced to Metronic v.8

  • What is your product version? 9.1
  • What is your product type (Angular
  • What is product framework type .net core)

If issue is about UI

  • Which theme are you using? Default

In the Default Theme, the left side menu panel, collapses to Closed Mode when the App switches to 'Mobile View'

What is the best way we could make this happen earlier? say for example at 1100px.

I know that we need to apply a class of aside-minimize to the body, but not sure the best way of applying it

  • What is your product version? V.8
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .netcore

Hello,

In the activation email for a new user signup, there is a link to Twitter in the header.

Can you please advise how we can remove this.

thank you

Showing 1 to 10 of 32 entries