Feature: Repository Monitor

Subscribe to be notified of database changes.
This commit is contained in:
Gary Sharp
2013-04-11 16:11:42 +10:00
parent b5531e64bd
commit 4869005c82
29 changed files with 657 additions and 216 deletions
@@ -0,0 +1,32 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Data.Repository.Monitor
{
public class RepositoryMonitorEvent
{
public RepositoryMonitorEventType EventType { get; set; }
[JsonIgnore]
public Type EntityType { get; set; }
public string EntityTypeName
{
get
{
return EntityType.Name;
}
}
[JsonIgnore]
public object Entity { get; set; }
public object[] EntityKey { get; set; }
public string[] ModifiedProperties { get; set; }
}
}