I connected the application to the database I am using. With the old version of MVC5 application can access this database and repository. I made ASP.NET CORE 3.1 to talk to the repository and I am getting this error as below.
Error >
System.TypeLoadException
HResult=0x80131522
Message=Method 'GetEntityStaticMetaData' in type 'CDS.DataAccessLayer.EntityClasses.AddressEntity' from assembly 'CDS.DataAccessLayer, Version=1.0.7429.20516, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Source=CDS.Core.Repositories.Llblgen
StackTrace:
at CDS.Core.Repositories.Llblgen.ClienteleRepository.GetAllClienteles() in D:\CDS.Core.Repositories.Llblgen\ClienteleRepository.cs:line 43
at CDS.Core.Services.ClienteleService.GetAllClienteles() in
D:\CDS.Core.Services\ClienteleService.cs:line 151
at CDS.PORTAL.ApiController.TestController.Get() in
D:\CDS.PORTAL\ApiController\TestController.cs:line 37
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
User contributions licensed under CC BY-SA 3.0