Exemplo n.º 1
0
        public virtual async Task <int> AddRangeAsync(IEnumerable <T> entities, List <string> ignoreParameters)
        {
            entities = _rulesEngine.AddEntities(entities);

            if (ignoreParameters == null)
            {
                ignoreParameters = new List <string>();
            }

            ignoreParameters.Add("ModifiedBy");
            ignoreParameters.Add("ModifyDate");
            return(await _idbProvider.AddRangeAsync <T>(entities, _schema, ignoreParameters?.ToArray()).ConfigureAwait(false));
        }