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

Activities of "manojreddy"

Hi

Tried, but its also not working.

[Route("api/services/app/Test")]
[HttpPost]
public async Task CreateTest(TestDetailsDto input)

[Route("api/services/app/Test")]
[HttpDelete]
public async Task DeleteTest(EntityDto input)

[Route("api/services/app/Test")]
[HttpGet]
public async Task GetTest(EntityDto input)

[Route("api/services/app/Test")]
[HttpPut]
public async Task UpdateTest(TestDetailsDto input)

Do I need to make any other change also ?

Giving the following error on npm start.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6197,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6230,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6252,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6267,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'void' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6281,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6300,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6315,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6329,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6351,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6370,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'void' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6384,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/merchandising/Tests/Test-list.component.ts (210,45): Property 'deleteTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/merchandising/Tests/Test-main.component.ts (102,41): Property 'getTestDetailsforEdit' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/merchandising/Tests/Test-main.component.ts (163,37): Property 'createTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/merchandising/Tests/Test-main.component.ts (206,37): Property 'createTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/merchandising/Tests/Test-main.component.ts (218,37): Property 'updateTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6197,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6230,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6252,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6267,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'void' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6281,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6300,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6315,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6329,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6351,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6370,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'void' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6384,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/merchandising/Tests/Test-list.component.ts (210,45): Property 'deleteTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/merchandising/Tests/Test-main.component.ts (102,41): Property 'getTestDetailsforEdit' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/merchandising/Tests/Test-main.component.ts (163,37): Property 'createTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/merchandising/Tests/Test-main.component.ts (206,37): Property 'createTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/merchandising/Tests/Test-main.component.ts (218,37): Property 'updateTest' does not exist on type 'TestServiceProxy'.

I have posted my answer here, please check it might help somebody.

[https://stackoverflow.com/a/48268866/6527049])

@Aaron any updates?

MultipleClientsFromOperationId not working, giving more than 100 error on npm start. Could you please try the same scenario on your local machine and come up with a proper solution with some test entity, because support for restful service has to be there in abp framework.

@Aaron I agree, But AspNetZero should support restful service because nowadays its must in APIs.

Hi @ismcagdas,

Thanks for your suggestion, I have posted my query in EF github repo, It would be a great help if in meanwhile your team can provide the solution or any hint.

Thanks

How to open this configuration UI which is mentioned in the github link provided by you, I'm able to see the only service.config.nswag file with a text "operationGenerationMode": "MultipleClientsFromPathSegments", so what should I set value for "operationGenerationMode" instead of "MultipleClientsFromPathSegments", or do I need to delete this line? Is there any side effect of this?

Yes, Of course I have run the Web.Host project, it running and generating methods.

I tried with all method, I'm able to run the server-side code. But when I run Refresh.bat file. and then run npm start. It gives the following error. so I think the reason could be that Swagger is not able to differentiate between these methods.

I tried the below code.

[HttpPost("api/services/app/Test")]
public async Task CreateTest(TestDetailsDto input)

[HttpDelete("api/services/app/Test")]
public async Task DeleteTest(EntityDto input)

[HttpGet("api/services/app/Test")]
public async Task GetTest(EntityDto input)

[HttpPut("api/services/app/Test")]
public async Task UpdateTest(TestDetailsDto input)

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6197,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6230,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6252,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6267,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'void' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6281,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6300,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6315,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6329,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6351,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6370,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'void' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6384,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/Tests/Test-list.component.ts (210,45): Property 'deleteTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/Tests/Test-main.component.ts (63,37): Property 'getTestDetailsforEdit' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/Tests/Test-main.component.ts (107,37): Property 'createTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/Tests/Test-main.component.ts (135,37): Property 'createTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/app/Tests/Test-main.component.ts (147,37): Property 'updateTest' does not exist on type 'TestServiceProxy'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6197,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6230,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6252,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6267,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'void' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6281,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6300,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6315,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6329,15): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6351,5): Duplicate function implementation.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6370,16): The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly. Type argument candidate 'void' is not a valid type argument because it is not a supertype of candidate 'TestDetailsDto'.

ERROR in C:/Users/MyName/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies.ts (6384,15): Duplicate function implementation.

Do I need to add some extra configuration? Please help

Hi yekalkan,

this article is about how to call SP and user-defined functions from C# code. But my question is different. I want to create user defined function using code first approach.

I'm able to create stored procedures using code first approach but not able to create UDF.

So basically I want to create UDF and add it to a migration. like we do for tables and stored procedures.

Showing 61 to 70 of 199 entries