using Microsoft.EntityFrameworkCore;
public static void Main()
using MyDbContext context = new MyDbContext();
.Where(c => c.LastName == "patel")
public int Id { get; set; }
public string LastName { get; set; }
public string Gender { get; set; }
public DateTime DateOfBirth { get; set; }
public Address Address { get; set; }
public int Id { get; set; }
public string FirstLine { get; set; }
public string SecondLine { get; set; }
public string Province { get; set; }
public class MyDbContext : DbContext
public DbSet<Client> Clients { get; set; }
public DbSet<Address> Addresses { get; set; }