//Can be moved to it's own folder: private void AddCustomerEvents(IContextSchemaConfigs configs) { //To avoid the renaming of types from affecting the event reading behaviour: configs.Add(new CustomerRegisteredSchemaConfig()); //OR: configs.Add(new SchemaFor <CustomerRelocated>("CustomerRelocated")); configs.Add(new SchemaFor <CustomerContactInfoChanged>("CustomerContactInfoChanged")); }
public override void OnModelCreating(IContextSchemaConfigs configs) { AddCustomerEvents(configs); }
public abstract void OnModelCreating(IContextSchemaConfigs configs);