Beispiel #1
0
        public List <TEntity> SelecionarTodos()
        {
            var Result = _DbSet.ToList();

            if (!_IgnoreLog)
            {
                var objLog = Result.FirstOrDefault();
                if (objLog == null)
                {
                    var objLog1 = _DbSet.Create();
                    _Log.Registrar(eTipoLog.Select, objLog1, "SelecionarTodos()");
                }
                else
                {
                    _Log.Registrar(eTipoLog.Select, objLog, "SelecionarTodos()");
                }
                DataContext.SaveChanges();
            }
            return(Result);
        }