Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "maharatha"

I tried resolving : <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-templates/issues/43#issuecomment-401640552">https://github.com/aspnetboilerplate/as ... -401640552</a>

But now after deployment the connection string for the secondary database is being picked up from appsettings.json instead of appsettings.production.json

Do we have a solution to this problem ?

I am using multiple database context.

Database 1 - Table Name :Client Database 2 - Table Name : Tenant (This is the abpzero database)

Then I have extended the Tenant table to store Client Id from Table Client to have a mapping between Tenant and Client.

I am creating a drop down which will display clients which are not yet mapped to tenant.

Repository for Client -- _client Repository using ITenantAppService to Get Tenants var tenants = await _tenantAppService.GetTenants(new GetTenantsInput());

once I get the tenants I would like to write a query to only get those clients which have not been mapped with the tenant.

Not able to figure out how to write it.

Question

Hi -

I am trying to integrate : <a class="postlink" href="https://github.com/VadimDez/ng2-pdf-viewer">https://github.com/VadimDez/ng2-pdf-viewer</a> in my application. I am using angular and core.

core.js:1542 ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'src' since it isn't a known property of 'pdf-viewer'.
1. If 'pdf-viewer' is an Angular component and it has 'src' input, then verify that it is part of this module.
2. If 'pdf-viewer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("style/position from the component -->
                   
                <pdf-viewer id="viewer" [ERROR ->][src]="pdfSrc" (after-load-complete)="loadComplete($event)"></pdf-viewer>


"): ng:///MainModule/DocumentviewerComponent.html@33:40
'pdf-viewer' is not a known element:
1. If 'pdf-viewer' is an Angular component, then verify that it is part of this module.
2. If 'pdf-viewer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("accordingly and get the style/position from the component -->
                   
                [ERROR ->]<pdf-viewer id="viewer" [src]="pdfSrc" (after-load-complete)="loadComplete($event)"></pdf-viewer>

"): ng:///MainModule/DocumentviewerComponent.html@33:16
'createOrEditTemplateModal' is not a known element:
1. If 'createOrEditTemplateModal' is an Angular component, then verify that it is part of this module.
2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
    </div>

    [ERROR ->]<createOrEditTemplateModal #createOrEditTemplateModal (modalSave)="getTemplates()"></createOrEditTemp"): ng:///MainModule/DocumentviewerComponent.html@43:4
'viewTemplateModal' is not a known element:
1. If 'viewTemplateModal' is an Angular component, then verify that it is part of this module.
2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("lateModal #createOrEditTemplateModal (modalSave)="getTemplates()"></createOrEditTemplateModal>
    [ERROR ->]<viewTemplateModal #viewTemplateModal></viewTemplateModal>
</div>
"): ng:///MainModule/DocumentviewerComponent.html@44:4
Error: Template parse errors:
Can't bind to 'src' since it isn't a known property of 'pdf-viewer'.
1. If 'pdf-viewer' is an Angular component and it has 'src' input, then verify that it is part of this module.
2. If 'pdf-viewer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("style/position from the component -->
                   
                <pdf-viewer id="viewer" [ERROR ->][src]="pdfSrc" (after-load-complete)="loadComplete($event)"></pdf-viewer>

I have added import { PdfViewerModule } from 'ng2-pdf-viewer'; in app.module.ts.

The component is in the main folder in the angular project.

Am i doing something wrong here ?

I have a system where I want to store only the user information Authentication , Authroization and all the good stuff in Aspnet Zero project , but I would be heavily interacting with another MS SQL database. I would still want to use the repository pattern to update and access the other database tables, but I would like to prevent updating the other database which I am trying to access.

  1. Now I would be accessing only few tables and columns from the other database, so do I need to create those entities with the selected columns in the Core project

  2. How do I stop accidental migration scripts to be run on the secondary database.

I am trying to create a Upload component using the demo Ui file upload example. But I am unable to find a way how i can upload using Angular and Asp.net core 2 similar to that of Demo Ui Upload.

public async Task<Guid> UploadFile(IFormFile file).

Can you please guide me on what to changes the existing demo upload component so that it can work with the new upload service which take File as an input

Question

How to check if a Feature is enabled in an edition using Edition Id ?

The timezone setting is hidden and not being displayed for either Tenant or Host. I am using ASPNetZero core. I don't see any where to enable to disable it.

I use Visual Studio Nuget manager to upgrade and i am getting lot of nuget package resolving issue.

I would like to change the default passphrase per environment. Dev/QA/Stage and Prod. Any ideas?

Hi -

We would like to log out the users when the browser closes, so that when they come next time they have to re-login. In way I want to force the user to relogin everytime.

When I add an entity in RAD tool it just gives me two options for the menu drop down , Root Menu and Administration. I want to add couple of more Menus and then add Sub Menus underneath while adding entities.

e.g. I would like to add a menu "Employee: And the Sub Menu as

Employee Details Employee Pay Employee Attendance

Is this possible?

Showing 51 to 60 of 120 entries