I get following error while generating entity through power tools.
Unable to create a 'DbContext' of type ''. The exception 'The entity type 'Bid' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
I am using SQL Server Express 2022. The table has a primary key.
Below is the DDL:
CREATE TABLE dbo.Bid( ID int IDENTITY(1,1) NOT NULL, AppUserID int NULL, EventDateTime datetime NULL, BudgetLow int NOT NULL, BudgetHigh int NOT NULL, EventDescription varchar(max) NOT NULL, CreatedDate datetime NOT NULL DEFAULT GETDATE(), ModifiedDate datetime NULL, CONSTRAINT PK_Bid_ID PRIMARY KEY CLUSTERED (ID), FOREIGN KEY (AppUserID) REFERENCES AppUser(ID) );
It doesn't generate proxy classes. Not sure if it is because of the above error and npm start throws compilation errors.
How do I unlock user from the database? I tried setting LockoutEndDateUtc to null but it didn't work.
I use the following method to update the data from the Input received from the Angular UI.
public async Task CreateOrEdit(CreateOrEditOwnerDto input) { var owner = ObjectMapper.Map<Owner>(input); await _ownerRepository.UpdateAsync(owner); }
The above method updates all columns in the Owner table even if I only changed one column from the UI. This is very inefficient for a table with lots of columns.
How do I update only columns that have changed?
On the change log page it says the following.
"The change logs in this page are just a summary of major changes. Detailed release notes are shared on the Github repository (only available to the customers)."
Can you share exactly where this is kept? I tried to login and I couldn't see anything. I am a paid customer.
How do I upgrade aspnetzero to the latest version? I see so many threads mentioning that I have to download full version and create & merge branches. This is an awful lot of work to do an upgrade and I hope there is a simpler way.
-Jayesh