-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
https://stackoverflow.com/questions/63229978/invoke-generic-method-at-runtime-with-reflection
Add support to EntityTypeBuilder not only generic EntityTypeBuilder<T>
So library can be used also like ModelBuilder.Entity(nameOfType, b => b.UseTemporalTable())
solution:
add
public static void UseTemporalTable(this EntityTypeBuilder entity)
{
TemporalEntitiesCache.Add(entity.Metadata);
}
public static void PreventTemporalTable(this EntityTypeBuilder entity)
{
TemporalEntitiesCache.Remove(entity.Metadata);
}
in fact EntityTypeBuilder<TEntity> extends EntityTypeBuilder so those two metods would be enough instead generic
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels