forked from dsuryd/dotNetify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransaction.cs
More file actions
38 lines (32 loc) · 818 Bytes
/
Copy pathTransaction.cs
File metadata and controls
38 lines (32 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Collections.Generic;
namespace DotNetify.Postgres
{
public class Transaction
{
public List<DataEvent> DataEvents { get; } = new List<DataEvent>();
}
public class Relation
{
public uint Id { get; set; }
public string Name { get; set; }
public string[] ColumnNames { get; set; }
}
public class DataEvent
{
public Relation Relation { get; set; }
}
public class InsertEvent : DataEvent
{
public object[] ColumnValues { get; set; }
}
public class UpdateEvent : DataEvent
{
public object[] ColumnValues { get; set; }
public object[] OldColumnValues { get; set; }
}
public class DeleteEvent : DataEvent
{
public object[] Keys { get; set; }
public object[] OldColumnValues { get; set; }
}
}