void ByType_CreateItemValue(object sender, CreateLookupItemEventArgs <EntityType, BfxLookup <long, IDtoCapable> > e) { var byId = new BfxLookup <long, IDtoCapable>(); byId.CreateItemValue += (senderById, eById) => { eById.NewValue = (IDtoCapable)e.Key.Persistence.GetById(new object[] { eById.Key }); }; // return... e.NewValue = byId; }
public EntityLookup() { this.Items = new BfxLookup <long, T>(); this.Items.CreateItemValue += Items_CreateItemValue; }
static ConversionHelper() { EnumValuesLookup = new BfxLookup <string, object>(); EnumValuesLookup.CreateItemValue += EnumValuesLookup_CreateItemValue; }
private DtoCachePreloader() { this.ByType = new BfxLookup <EntityType, BfxLookup <long, IDtoCapable> >(); this.ByType.CreateItemValue += ByType_CreateItemValue; }
private WorkUnitProcessorNullTransactionManager() { NamedConnections = new BfxLookup <string, IConnection>(); NamedConnections.CreateItemValue += NamedConnections_CreateItemValue; }