© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
21 replies
Bailey

✅ Entityframework for framework 4.8 instead of .net / core

Hello,

I'm trying to use EF with framework 4.8. There is a version 6.4.4.
When using this, I cant find a lot of options which are available in .net 6 version of EF.

I'm searching for an equivalent of these options. Possible they do not exist.

In this case I'm talking about the following:

override to attach to a config:
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.ApplyConfiguration<ProductModel>(new ProductConfiguration());
// etc
The configuration option:


public class ProductConfiguration : IEntityTypeConfiguration<ProductModel>
{
public void Configure(EntityTypeBuilder<ProductModel> builder)
{
builder.ToTable("Products");

builder.HasKey(p => p.ProductId);

builder.Property(p => p.ProductId)
.HasColumnName("ProductId")
.HasColumnType("uniqueidentifier")
.IsRequired();
// etc
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ .NET Framework 4.8 Vs .Net Core for Longterm Support
C#CC# / help
3y ago
Migrate .NET Framework 4.8 / .NET Core 5 to .NET 9 (.NET 10)
C#CC# / help
5mo ago
Entity Framework in .Net 4.8
C#CC# / help
2y ago
.net 4.8 💀
C#CC# / help
2y ago