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

Activities of "manojreddy"

@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.

I want to create some user-defined functions using code first approach in abp framework.

I have created stored procedures xyz by adding xyz.sql inside EntityFrameworkCore\Migrations\Stored Procedures folder, But not able to find a way to create a function, please help.

Run npm uninstall datamaps in command prompt. It will delete nil.json and nil.topo.jdon. These two files are causing issue.

I have implemented a service which has some get, post, update and delete methods.

I want to make this service restful.

Here is my service code.

public class TestAppService : MyProjectAppServiceBase, ITestAppService
{

	public async Task CreateTest(TestDetailsDto input)
	{
	
	}

	public PagedResultDto<FetchTestDetails> GetSearchTest(FetchTestDetails searchInput)
	{
	
	}

	public TestDetailsDto GetTestDetailsForEdit(EntityDto input)
	{
	}

	public async Task UpdateTest(TestDetailsDto input)
	{
	}

	public async Task DeleteTest(EntityDto input)
	{
	}

	public ListResultDto<FetchTestDetails> GetAllCurrencies()
	{
	}

}

so instead of >http://localhost:22742/api/services/app/Test/GetTestDetailsForEdit?Id=1 url should be something like >http://localhost:22742/api/services/app/Currency?Id=1 for get api.

for >http://localhost:22742/api/services/app/Test/CreateTest it should be something like >http://localhost:22742/api/services/app/Test for post api.

for> <a class="postlink" href="http://localhost:22742/api/services/app/Test/DeleteTest?Id=1">http://localhost:22742/api/services/app ... eTest?Id=1</a> it should be >http://localhost:22742/api/services/app/Test?Id=1

@Aaron

I agree, Thanks a lot :)

Showing 101 to 110 of 267 entries