Base solution for your next web application

Activities of "system15"

ERROR in src/app/main/phonebook/edit-person-modal.component.ts(34,9): error TS2554: Expected 5 arguments, but got 1.

Code below: show(personId): void { this.active = true; line: 34 = this._personService.getPersonForEdit(personId).subscribe((result) => { this.person = result; console.log(this.person); this.modal.show(); }); }

I'm using SQLServer. I have created a custom mapper but it still doesn't work. I still get the error message Specified cast is not valid. Is there any other ideas that I can try. I am simply following the documentation for the phonebook component.

Reference: https://www.aspnetzero.com/Documents/Developing-Step-By-Step-Angular Section that I'm getting an issue with: CHANGING GETPEOPLE METHOD.

System.InvalidCastException
  HResult=0x80004002
  Message=Specified cast is not valid.
  Source=Microsoft.EntityFrameworkCore.Relational
  StackTrace:
   at Microsoft.EntityFrameworkCore.Storage.Internal.UntypedRelationalValueBufferFactory.Create(DbDataReader dataReader)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable`1.Enumerator.BufferlessMoveNext(Boolean buffer)
   at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.&lt;&gt;c__DisplayClass12_0`2.<Execute>b__0(DbContext c, TState s)
   at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, Func`2 operation, Func`2 verifySucceeded, TState state)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable`1.Enumerator.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryBuffer.IncludeCollection(Int32 includeId, INavigation navigation, INavigation inverseNavigation, IEntityType targetEntityType, IClrCollectionAccessor clrCollectionAccessor, IClrPropertySetter inverseClrPropertySetter, Boolean tracking, Object entity, Func`1 relatedEntitiesFactory)
   at Microsoft.EntityFrameworkCore.Query.Internal.IncludeCompiler._Include[TEntity](QueryContext queryContext, TEntity entity, Object[] included, Action`3 fixup)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__17`2.MoveNext()
   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at DentsplyDemoNg5.PhoneBook.PersonService.GetPeople(GetPeopleInput input) in C:\Users\x\Documents\DentsplyDemoNg5\src\DentsplyDemoNg5.Application\PhoneBook\PersonService.cs:line 39
   at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.&lt;InvokeActionMethodAsync&gt;d__12.MoveNext()

I want to completely remove the entity from the project first is this possible?

Hi there the link provided doesn't work.

Thank you very much. @alper

I'm trying to load the data into a new component without using a modal. So it's just another page that shows details. Any ideas. Out of the box it seems to be a modal for a detailed page.

"Keyword not supported" with whatever is first. I've tried numerous different options.

I tried the above as mentioned but only the navigation steps would change when you clicked the save and continue button. I had to add some code to the wizard.js plugin file so that when you clicked the save and continue button the navigation and the content change.

Thanks.

I have sent an email across with a link to our secure file share system containing the project.

Kitty

Showing 21 to 30 of 30 entries