Column Names after Upgrade to latest version

Hello,

After Upgraded to latest version and refreshed the Database I have hundreds of errors because Radzen Studio changed all the column name with "_ID" to "id":

Old one - correct!

[Table("Dokumenttyp", Schema = "dbo")]
    public partial class Dokumenttyp
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Dokumenttyp_ID { get; set; }

        [Required]
        public string Dokumenttypname { get; set; }

        [Required]
        public string Dokumenttypextension { get; set; }

        public int Dokumentgrösse { get; set; }

        public bool OfficeViewer { get; set; }

        [Column(TypeName="datetime2")]
        [Required]
        public DateTime angelegt { get; set; }

        [Column(TypeName="datetime2")]
        public DateTime? geändert { get; set; }

        public string Benutzer { get; set; }

        public ICollection<Dokumentvorlage> Dokumentvorlages { get; set; }

        public ICollection<Pfuscheraktinhalt> Pfuscheraktinhalts { get; set; }

    }

new one

public partial class Dokumenttyp
{
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    [Column("Dokumenttyp_ID")]
    public int DokumenttypId { get; set; }

    [Required]
    [ConcurrencyCheck]
    public string Dokumenttypname { get; set; }

    [Required]
    [ConcurrencyCheck]
    public string Dokumenttypextension { get; set; }

    [ConcurrencyCheck]
    public int Dokumentgrösse { get; set; }

    [ConcurrencyCheck]
    public bool OfficeViewer { get; set; }

    [Column("angelegt",TypeName="datetime2")]
    [Required]
    [ConcurrencyCheck]
    public DateTime Angelegt { get; set; }

    [Column("geändert",TypeName="datetime2")]
    [ConcurrencyCheck]
    public DateTime? Geändert { get; set; }

    [ConcurrencyCheck]
    public string Benutzer { get; set; }

    public ICollection<Dokumentvorlage> Dokumentvorlages { get; set; }

    public ICollection<Pfuscheraktinhalt> Pfuscheraktinhalts { get; set; }
}

also changes from lower to uppercase "angelegt" to "Angelegt"

Robert

Can you provide the steps you performed during infer? You can check also our docs for reference about various types of naming:

Here are the steps - I have no option to set "Use table names directly from the database":

Robert

These options are available only on first infer, on subsequent infers will be read from appsettings.json. What are your settings?

OK - I can change this here?

image

Yes, you can change them. Can you add also "UseEFNaming": false and try to infer? Keep in mind also that locally during development appsettings.Development.json is used.

UPDATE: We've just fixed an issue related to this and we will released update immediately! UseEFNaming should be treated as false if not specified explicitly for existing data sources.