forums.asp.net forums.asp.net

Problem in JsonConvert.SerializeObject to serialize list of entities to TempData.

Hi I have a main problem which i created in thread (please read it before this thread). Anyway, After a lot of digging & debugging my code, I Think the problem is related to serializing lstPackageDetails to TempData via this method : private void SetPackageDetailsList(List<DefaultVisitProductDetails> lstPackageDetails) { TempData["_lstPackageDetails"] = JsonConvert.SerializeObject(lstPackageDetails,...

forums.asp.net forums.asp.net

Getting error "Hmmm...can’t reach this page Try this Make sure you’ve got the right web address: https://localhost:5001"

Hello everyone! My first post. Was thrown in the ring to write a razor app... The app implements the PRG pattern whereby a search page is presented, the user enters a criteria, hits the search button and the result of the search is presented at the bottom of the same page. The items listed in the results table have a link that open a detail page, which has a "back" link to the first page. All that was working...I made some...

forums.asp.net forums.asp.net

The property 'JobTitle' is not a navigation property of entity type 'Job'. The 'Include(string)' method can only be used with a '.' separated list of navigation property names.

I am attempting to read related data across three tables in ASP.NET CORE MVC 2.2 with Entity Framework Core. To be more specific I am using this tutorial to build my project https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/read-related-data?view=aspnetcore-2.2. I am using Eager Loading to read Job.JobTitle all the way from the Problem Index method. Reading this I realize I want to find where Problem navigation property that...

forums.asp.net forums.asp.net

Problem to use AsNoTracking query in master-detail entities.

Hi I have 2  tables in master-details scenario as follow : DefaultVisitProductHeaders -> Master table DefaultVisitProductDetails -> Detail table My problem is that when i load details data with AsNoTracking as follow : List<DefaultVisitProductDetails> packageDetails = _dbContext.DefaultVisitProductDetails.AsNoTracking().Where(d => d.DefaultVisitProductHeaderRowID == gidPackageHeaderRowID).OrderBy(d =>...

forums.asp.net forums.asp.net

Bind certain properties of the navigation properties inside my action method

I have the following 2 model classes:- public Submission() { SubmissionQuestionSubmission = new HashSet<SubmissionQuestionSubmission>(); } public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string Npi { get; set; } public bool Independent { get; set; } public string Comment { get; set; } ...

forums.asp.net forums.asp.net

Web App Recommendation

Hello all: I understand it might be difficult making a recommendation without full details, but due to privacy concerns I cannot relate all details, and will give as much info as possible. I need a web site built for an industrial application, like say a factory, that might have up to 5000 users, and 20000+ IOT or other devices as part of a project at the facility. User interactions with the IOT devices will need to be captured in the...