7 Answer(s)
-
0
Here is an example that sends a parameter to a stored procedure to delete a user:
public async Task DeleteUser(EntityDto input) { await Context.Database.ExecuteSqlCommandAsync( "EXEC DeleteUserById @id", default(CancellationToken), new SqlParameter("id", input.Id) ); }
Using Stored Procedure, User Defined Function and Views in a Custom Repository with ASP.NET Boilerplate: https://www.codeproject.com/Articles/1199648/Using-Stored-Procedure-User-Defined-Function-and-V
Source code is published on Github: https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/StoredProcedureDemo
-
0
Context does not exist
-
0
Context exists in AbpZeroTemplateRepositoryBase.cs.
See documentation on Custom Repositories: https://aspnetboilerplate.com/Pages/Documents/Entity-Framework-Core#DocCustomRepositoryMethods
-
0
Thank you install Abp.EntityFrameworkCoreon the Core Project or framework project ??
-
0
Install in Core project (EntityFrameworkCore project depends on Core project).
-
0
I do not have a project called EntityFrameworkCore , Which currently exists EntityFramework(MVC)
-
0
Here's the EntityFramework equivalent for documentation on Custom Repositories: https://aspnetboilerplate.com/Pages/Documents/EntityFramework-Integration#DocCustomRepositoryMethods