Skip to main content

All Questions

1 vote
0 answers
133 views

Conditional user-role in authorization user

We are using asp.net core in our project and for authorization we use asp.net core identity and entity framwork codefirst approach.we have user and role in my project and i want to my user-role table ...
Hanieh Rezayi's user avatar
1 vote
0 answers
2k views

Net Core Project with Microsoft Access Database

I just created a net core project, where I need to connect to an Access database using EF. I downloaded a nugget package called JetEntityFramework. This is my appsettings.json { "...
Nacho Campo's user avatar
0 votes
1 answer
1k views

DropDownList from Existing DataBase [Asp.Net Core 2.0 MVC Enity Framework]

I hope you can help me I want to bind the DropDownList and get the data from an existing Database. Visual Studio doesn't show error but when i Run the app it tells me to migrate my DB even though I've ...
Jose Baleros Jr.'s user avatar
0 votes
1 answer
3k views

DropDown list [asp.net core 2.0]

Hi im having problem with my view as you can see there is an input and a select option <div class="form-group"> <label asp-for="DomWasLoc" class="control-label"></label> &...
Jose Baleros Jr.'s user avatar
1 vote
0 answers
471 views

ASP.NET Core/EF Core 2.0 using too much memory that results SQL Server Timeouts

tl;dr I am not cleaning up the context, as I assume that is all handled with DI/automatically being scoped (this might be my problem) I have a ASP.NET Core that utilizes EF Core and after a while my ...
Zoinky's user avatar
  • 4,829
29 votes
3 answers
28k views

'DbContextOptionsBuilder' does not contain a definition for UseNpgsql()

I am facing an issue while giving the connectionstring to get it connect to PostgreSQL through the AddDbContext() method in ConfigureServices method of Startup.cs I'm getting this error while calling ...
Karthik Saxena's user avatar
10 votes
2 answers
3k views

Mysql Entity Framework issue - Specified key was too long; max key length is 3072 bytes

When I use this command: $ dotnet ef database update I get this error: Specified key was too long; max key length is 3072 bytes The table which cause this error is a built-in Microsoft table for ...
Bob5421's user avatar
  • 8,829
2 votes
1 answer
663 views

ASP.Net Core 2 - Using a DBContext having defaultConnectionString from appsettings

I want to create a basic CRUD in ASP.Net Core 2 with EntityFrameworkCore. My appsettings.json file is like this- "DefaultConnection": "server=localhost; port=3306; database=inventory_management; ...
IT Eng - BU's user avatar
3 votes
1 answer
2k views

ApplicationUser within an ActionFilter in Asp.Net Core 2.0?

How can I access the current ApplicationUser (or UserManager) within an ActionFilter in Asp.Net Core 2.0? I am trying to lock down the entire application until the user accepts the EULA (End User ...
Film8kr's user avatar
  • 33
0 votes
1 answer
233 views

EF Core 2.0 Relation(Null Comig)

I am using asp.net core 2.0 and EF core 2.0. I have 3 class for DbSet. public class Person { [Key] public int PersonId { get; set; } public string Name { get; set; ...
Umut Bayğut's user avatar
0 votes
0 answers
140 views

.net core generic save method/class

I'm working with a .net core 2.0 / EF core project, where I'm trying to abstract my save method. Right now my save methods looks as follows: [HttpPost] public ActionResult Save(AbJob abJob) { ...
Iver's user avatar
  • 23
32 votes
3 answers
7k views

Local user account store for Web API in ASP.NET Core 2.0

I'm using ASP.Net Core 2.0, I want to build a Web API project with Individual User Accounts Authorization type, but the only option is Connect to an existing user store in the cloud. How can I add a ...
Kahbazi's user avatar
  • 14.8k