public void Bootstrap(IConfiguration configure) { // TODO (Cameron): This is required in order to check the persisted events. Maybe give this some thought...? configure.AggregateRoot <Subject>().ToReconstituteUsing(() => new Subject()); configure.ValueObject <Data>() .ToMapToEvent <DataProcessed>((data, @event) => @event.DataValue = data.Value, @event => new Data(@event.DataValue)); }
public void Bootstrap(IConfiguration configure) { // TODO (Cameron): This is required in order to check the persisted events. Maybe give this some thought...? configure.AggregateRoot <Subject>().ToReconstituteUsing(() => new Subject()); configure.ValueObject <NaturalKey>() .ToMapToEvent <NewSubject>((key, @event) => @event.NaturalKeyValue = key.Value, @event => new NaturalKey(@event.NaturalKeyValue)); }
public void Bootstrap(IConfiguration configure) { // TODO (Cameron): This is required in order to check the persisted events. Maybe give this some thought...? configure.AggregateRoot <Subject>().ToReconstituteUsing(() => new Subject()); configure.Entity <Thing>() .ToMapToEvent <NewSubject>((thing, @event) => @event.ThingValue = thing.Value, @event => new Thing(@event.ThingValue)); }
public void Bootstrap(IConfiguration configure) { configure.AggregateRoot <Schedule>().ToReconstituteUsing(() => new Schedule()); configure.ValueObject <PointInTime>() .ToMapToEvent <ScheduleCreated>( (pointInTime, @event) => @event.PointInTimeEpochMinutes = pointInTime.EpochMinutes, @event => new PointInTime(@event.PointInTimeEpochMinutes)) .ToUseValueObjectSerializer( pointInTime => pointInTime.EpochMinutes.ToString(), epochMinutes => new PointInTime(long.Parse(epochMinutes, CultureInfo.InvariantCulture))); configure.Entity <Task>().ToMapToEvent <ScheduleTaskAdded>( (task, @event) => @event.TaskId = task.Id, @event => new Task(@event.TaskId)); }
public void Bootstrap(IConfiguration configure) { configure.AggregateRoot <Subject>() .ToUseNaturalKey(subject => subject.NaturalKey) .ToReconstituteUsing(() => new Subject()); }
public void Bootstrap(IConfiguration configure) { configure.AggregateRoot <Subject>().ToReconstituteUsing(() => new Subject()); }
public void Bootstrap(IConfiguration configure) { configure.AggregateRoot <Bug0043.Car>().ToReconstituteUsing(() => new Bug0043.Car()); configure.AggregateRoot <Bug0064.Thing>().ToReconstituteUsing(() => new Bug0064.Thing()); }
public void Bootstrap(IConfiguration configure) { configure.AggregateRoot <Car>().ToUseNaturalKey(car => car.OtherRegistration); }
public void Bootstrap(IConfiguration configure) { configure.AggregateRoot <Subject>().ToUseNaturalKey(subject => subject.NaturalKey); configure.ValueObject <Key>().ToUseEqualityComparer(new KeyEqualityComparer()); }
public void Bootstrap(IConfiguration configure) { configure.AggregateRoot <Subject>().ToUseNaturalKey(subject => subject.SecondNaturalKey); }
public void Bootstrap(IConfiguration configure) { // TODO (Cameron): This is required in order to check the persisted events. Maybe give this some thought...? configure.AggregateRoot <Subject>().ToReconstituteUsing(() => new Subject()); }