-
-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
.ORG Projects edited this page May 19, 2026
·
2 revisions
- .NET 8.0 or later
- Entity Framework Core 8.0 or later
dotnet add package DotOrgProjects.EntityPlatform.Finder
In your application startup, register DbFoundContext using AddDbContext and configure EP Finder with UseFinderIn():
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using DotOrgProjects.EntityPlatform.Finder;
ServiceCollection services = new ServiceCollection();
services.AddDbContext<DbFoundContext>(options => {
options.UseSqlServer("Server=localhost;Database=MyDb;");
options.UseFinderIn("MyApp.Assembly", "MyApp.Entities.Root.Namespace");
});| Parameter | Description |
|---|---|
assemblyName |
The name of the assembly where your entities are defined. Typically matches your project's assembly name. |
rootNamespace |
The root namespace EP Finder will scan looking for classes annotated with [Table]. Only classes within this namespace and its sub-namespaces are discovered. |
EP Finder only discovers classes annotated with [Table]:
using System.ComponentModel.DataAnnotations.Schema;
[Table("Products")]
public class Product {
public int Id { get; set; }
public string Name { get; set; }
}ServiceProvider provider = services.BuildServiceProvider();
DbFoundContext context = provider.GetRequiredService<DbFoundContext>();
List<Product> products = context.Set<Product>().ToList();- See FAQ for common questions.
- See EP Finder Help for full API reference.
Copyright © .ORG Projects. All rights reserved. Licensed under MS-PL