I'm using this command to generate models:
Scaffold-DbContext "Data Source=;Initial Catalog=;Integrated Security=True;Command Timeout=3000;" Microsoft.EntityFrameworkCore.SqlServer -NoOnConfiguring -UseDatabaseNames -OutputDir "" -Context "" -ContextDir "" -Force -Tables ""
I'm some issues with using the models because I can't have all the extra properties that are generated from the foreign key constraints. The model might look something like this:
public Guid Id { get; set; }
public byte[] Timestamp { get; set; } = null!;
public Guid Company { get; set; }
public virtual Company Company { get; set; } = null!;
I'm trying to avoid having the last property generated and thought I could do so by skipping generating foreign key constraints. I was unsuccessful finding anything in the docs. Any ideas what I could do here?