Exemplo n.º 1
0
        /// <summary>
        /// Clones the data repository.
        /// </summary>
        /// <returns>Cloned data repository.</returns>
        public virtual object Clone()
        {
            var clonedDataRepository = new OracleDataRepository(_oracleClientFactory, _dataManipulators);

            if (OnClone != null)
            {
                OnClone.Invoke(this, new CloneOracleDataRepositoryEventArgs(clonedDataRepository));
            }
            return(clonedDataRepository);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Clones the data repository.
        /// </summary>
        /// <returns>Cloned data repository.</returns>
        public virtual object Clone()
        {
            var clonedDataRepository = new OldToNewDataRepository(_tableDictionary);

            if (OnClone != null)
            {
                OnClone.Invoke(this, new CloneOldToNewDataRepositoryEventArgs(clonedDataRepository));
            }
            return(clonedDataRepository);
        }
Exemplo n.º 3
0
 public async void OnCloneEvent(SortableJSEvent e)
 {
     await OnClone.InvokeAsync(new SortableEvent <TItem>(this, e));
 }