示例#1
0
        protected override IDataLayer CreateDataLayer(IDataStore dataStore)
        {
            var creatingWorkingDataLayerArgs = new CreatingWorkingDataLayerArgs(dataStore);

            OnCreatingWorkingDataLayer(creatingWorkingDataLayerArgs);
            _dataLayer = creatingWorkingDataLayerArgs.DataLayer ?? base.CreateDataLayer(dataStore);
            return(_dataLayer);
        }
示例#2
0
        protected void OnCreatingWorkingDataLayer(CreatingWorkingDataLayerArgs e)
        {
            EventHandler <CreatingWorkingDataLayerArgs> handler = CreatingWorkingDataLayer;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 protected override IDataLayer CreateWorkingDataLayer(IDataStore workingDataStore) {
     var creatingWorkingDataLayerArgs = new CreatingWorkingDataLayerArgs(workingDataStore);
     OnCreatingWorkingDataLayer(creatingWorkingDataLayerArgs);
     return creatingWorkingDataLayerArgs.DataLayer ?? base.CreateWorkingDataLayer(workingDataStore);
 }
 protected void OnCreatingWorkingDataLayer(CreatingWorkingDataLayerArgs e) {
     EventHandler<CreatingWorkingDataLayerArgs> handler = CreatingWorkingDataLayer;
     if (handler != null) handler(this, e);
 }
 protected override IDataLayer CreateDataLayer(IDataStore dataStore) {
     var creatingWorkingDataLayerArgs = new CreatingWorkingDataLayerArgs(dataStore);
     OnCreatingWorkingDataLayer(creatingWorkingDataLayerArgs);
     _dataLayer = creatingWorkingDataLayerArgs.DataLayer ?? base.CreateDataLayer(dataStore);
     return _dataLayer;
 }