Skip to content

Instantly share code, notes, and snippets.

@pietervp
Created July 3, 2012 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pietervp/3041933 to your computer and use it in GitHub Desktop.
Save pietervp/3041933 to your computer and use it in GitHub Desktop.
public class ConcreteEntityA : ActivatableEntity
{
//...
}
public class ConcreteEntityB : ActivatableEntity, AuditEntity //not possible!!!
{
//...
}
public class AuditEntity : EntityBase
{
DateTime CreatedOn { get; set; }
DateTime ModifiedOn { get; set; }
}
public class ActivatableEntity : EntityBase
{
public bool IsActive { get; set; }
public void Active()
{
//...
}
public void DeActivate()
{
//...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment