public Snapshot TakeSingletonSnapshot(object entity) { if (entity == null) { return Snapshot.Null; } var snapshot = new Snapshot(entity); if (IsValueSource(entity)) { snapshot.Add(Property, GetValue(entity)); } return snapshot; }
public Snapshot TakeSingletonSnapshot(object entity) { if (entity == null) { return(Snapshot.Null); } var snapshot = new Snapshot(entity); if (IsValueSource(entity)) { snapshot.Add(Property, GetValue(entity)); } return(snapshot); }
public Snapshot TakeSnapshot(object entity) { if (entity == null) { return(Snapshot.Null); } Snapshot snapshot = new Snapshot(entity); foreach (var configuration in properties.Values) { if (configuration.IsValueSource(entity)) { snapshot.Add(configuration.Property, configuration.GetValue(entity)); } } return(snapshot); }