blob: 10bb15f3f083ec65908bed1bf69b76eb612d984b (
plain)
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
|
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.DAL.Observables
{
public interface IObservableEntity
{
[EntityFieldName("ID")]
Int32 ID { get; set; }
[EntityFieldName("GUID")]
String Guid { get; set; }
[EntityFieldName("LAST_UPDATED")]
DateTime LastUpdated { get; set; }
[EntityFieldName("DELETED")]
bool Deleted { get; set; }
void Save();
Task SaveAsync();
[Obsolete("The method delete is not for use as it prevents the synchronization of remote and local database.")]
void Delete();
void SoftDelete();
Task SoftDeleteAsync();
List<KeyValuePair<String, String>> GetDependentEntitiesNameAndGuid();
}
}
|