Пример #1
0
        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;
        }
Пример #2
0
 public EntityLookup()
 {
     this.Items = new BfxLookup <long, T>();
     this.Items.CreateItemValue += Items_CreateItemValue;
 }
Пример #3
0
 static ConversionHelper()
 {
     EnumValuesLookup = new BfxLookup <string, object>();
     EnumValuesLookup.CreateItemValue += EnumValuesLookup_CreateItemValue;
 }
Пример #4
0
 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;
 }