Skip to content

Instantly share code, notes, and snippets.

@pietervp
Created July 3, 2012 19:16
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/3042110 to your computer and use it in GitHub Desktop.
Save pietervp/3042110 to your computer and use it in GitHub Desktop.
public class ActivatableLogic : LogicBase<IActivatableEntity>, IActivatableEntityLogic
{
public void Active()
{
CurrentInstance.IsActive = true;
}
public void DeActivate()
{
CurrentInstance.IsActive = false;
}
}
[MData]
public interface IActivatableEntity : IActivatableEntityLogic
{
bool IsActive { get; set; }
}
public interface IActivatableEntityLogic
{
void Active();
void DeActivate();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment