ミ★ 𝘢𝘣𝘤𝘥𝘦𝘧𝘩 ★彡
ミ★ 𝘢𝘣𝘤𝘥𝘦𝘧𝘩 ★彡
Explore posts from servers
CC#
Created by ミ★ 𝘢𝘣𝘤𝘥𝘦𝘧𝘩 ★彡 on 7/26/2024 in #help
EF - Cannot insert the value NULL into column 'Id'
It's okay I got it resolved with the following added to the OnModelCreate instead modelBuilder.Entity<CorrespondenceAddress>().Property(c => c.Id).HasDefaultValue(0);
6 replies