Linking Two Tables/Classes w/o EF
Hi,I'm sure this has been asked and answered before, but I can't find anything that is not using EF.Basically, I'm trying to link and display two tables. For example:Teacher 1 ------------ Student 1...
View Articleusing Microsoft.AspNetCore.Identity.EntityFrameworkCore;
I'm porting over a site from MVC 5 and In one of my classes I have this used:public classWebRoleEntity : IdentityRole<Guid,WebUserRoleEntity>, IWebRoleIdentityRole in the old site used this:using...
View ArticleVisual Studio 2017 and dotnet restore
I'm building an ASP Core MVC app in VS 2017. I have libraries organized in solution folders. Anyway, every time I add a project library through solution explorer, I have to CD to the project...
View ArticleHow to set up .net core in RHEL7 offline mode
This is for a company offline RHEL7 server, no internet access.Does any one know how to set up .net core in this case?Thanks
View ArticleRepository and Dependency Injection Error
Hi,I have this Repository and Dependency implementation to be injected to my controller but I'm getting this error..."Unable to resolve service for type 'WebsiteName.ApplicationContext' while...
View ArticleRetrieving access token in controller
I am developing an ASP .Net Core 1.1 MVC web app which calls a web API using the "Authorization Code Grant Flow". I am using Auth0 for the authentication server.Following the Auth0 tutorials, at the...
View ArticleContoso University
Hi, with the Contoso university, how do you get the project to vreate the required tables (Identity)?It looks like all the views are there. Thanks,
View ArticleHow do I debug routes in .NET Core MVC
When you have a lot of routes registered, is there a way to intercept a request and see what the registered routes are which ones it matches?P.S. Not sure if this is the best forum for this question. I...
View ArticleEnity Framework Core 1.1 and migration
<p>Hi fellow programmers! :)</p><p>I've just installed Microsoft Visual Studio 2017 Community and try to get heads up on the newest technology.</p><p>I'm not that familiar...
View ArticleMake Date control on form change time as well as date
Hi, I have below which only allows me to change the date, not the time.<div class="col-md-10"> <input asp-for="Date" class="form-control" /> <span...
View ArticleError using Redis Cache on Azure
We have a redis cache hosted on Azure and we use the following as a service in our .net core application:services.AddSingleton<IConnectionMultiplexer>(provider =>...
View ArticleHow to securely store sensitive data like passwords in an ASP.NET Core...
Hi,I wonder how to properly handle passwords using ASP.NET Core MVC in production and I can't find any solution for this topic. I need to access an API and therefore have to store AD service account...
View ArticleProblem send Json HttpClient
Hi thereI have a problem with send Json to API Rest.Codeusing (var client = new HttpClient()) { client.BaseAddress = new Uri("SomeURL"); client.DefaultRequestHeaders.Accept.Clear();...
View Article.NET core application to be deployed on Linux serve
Is there a solution for that problem in .NET core application , please ?<div dir="ltr" style="font-size: 12.8px;"> <div>Kindly note that we need .NET core application to be deployed on...
View ArticleGetting logged in user from web api
I have a web app front end and web api back end both written in ASP .Net Core 1.1 MVC. I am using Auth0 as the authentication server, using the "authorization code grant flow".So the user logs in -...
View ArticleMigration from 4.0 to 4.6.2
We have recently migrated our existing website from 4.0 to 4.6.2, After publishing the website we can see the change is only to web.config file with the version updated as 4.6.2 Do we really need to...
View ArticleCan we build desktop applications as well with asp.net core framework or only...
SirCan we build desktop applications as well with asp.net core framework or only web based applications.?Regards
View ArticleEntity framework core : particular many to many relation
Hi,I have the following Model class :public class Terminal { public int id { get; set; } public string serialNumber { get; set; } public string model { get; set; } public virtual...
View ArticleUser.Identity.Name is null
I have a web app written in ASP .Net Core 1.1 MVC. I am using Auth0 as the authentication server. After a successful login, the Index page should show the logged in user's name, but it's not. If I look...
View ArticleHow to set css class to div dynamically in mvc view?
hello,I am not getting how to do this, let me explain, I have data base having column name SignalCSS having some row (css class name) like PT1, PT2 . . . , now, in my model class I have property say...
View Article