Feature: Repository Monitor
Subscribe to be notified of database changes.
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user