-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with scaffolding asp.net razor pages using an entity framework core dbcontext inside DAL class library #948
Comments
If haven't tested this yet (though I will later today for just the For example the following line in your .HasDefaultValueSql("'current_timestamp()'") This was fixed in #896 and should not use single quotes: .HasDefaultValueSql("current_timestamp()") There also seems to be a problem with the default value of .HasDefaultValueSql("'b\\'1\\''"); The code should look like the following line instead: .HasDefaultValueSql("b'1'"); This time this is |
CREATE TABLE |
I could reproduce the issue while testing it yesterday, but the issue also appears in a much simpler scenario with only one project, one entity with one property and even when specifying wrong a wrong model name. I will have to check this against a SQL Server table first, but this issue might be unrelated to Pomelo. |
I was also facing issue even when ef core was in one project. I have also posted this issue in Microsoft asp.net forums. https://forums.asp.net/p/2161604/6284921.aspx?p=True&t=637098986858738711 |
Steps to reproduce
Create a class library for DAL
Create an asp.net razor application.
Reference the dal project in ui project.
Include below references in DAL project file.
DAL csproj file:
Switch to UI project directory in terminal.
Run below command on temrinal:
The issue
Unable to scaffold asp.net razor pages with the dbContext.
Exception message:
Stack trace:
Further technical details
MySQL version: mariadb Ver 15.1 Distrib 10.4.10-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Operating system: Ubuntu 18.04 LTS
Pomelo.EntityFrameworkCore.MySql version: 2.2.6 or 3.0.0
Microsoft.AspNetCore.App version: 3.0
Other details about my project setup:
The text was updated successfully, but these errors were encountered: