I have a base class for all entities:
public abstract class Entity { int Id { get; set; } bool Flagged { get; set; } } public class Foo : Entity { s