protected int OnInserted(object data, string scope, int result)
        {
            var args = new DataInsertedEventArgs(this.Name, data, scope, result);

            this.OnInserted(args);
            return(args.Result);
        }
Example #2
0
        protected int OnInserted(string name, DataDictionary data, string scope, int result)
        {
            var args = new DataInsertedEventArgs(name, data, scope, result);

            this.OnInserted(args);
            return(args.Count);
        }
        protected virtual void OnInserted(DataInsertedEventArgs args)
        {
            var e = this.Inserted;

            if (e != null)
            {
                e(this, args);
            }
        }