December 29, 2024

EF Core 9.0: Introducing EF.Parameter(T)

In this post, let’s have a look EF.Parameter<T>(T) method that was introduced with EF 9.0. Consider the following simple LINQ query. async Task<List<Employee>> GetEmployees(int employeeId){    return await context.Employees        .Where(e => e.Id == 
December 4, 2024

EF Core 9.0: UseSeeding and UseAsyncSeeding

EF Core 9.0 (EF 9) introduced new methods UseSeeding and UseAsyncSeeding to seed the initial data. Let’s have a look at an example. Consider the following MyDbContext. public record Blog{    public int Id { get; set; }     public string Name { get; set;&nbsp