Beispiel #1
0
        private EntityQueryable <TEntity> CreateEntityQueryable()
        {
            var queryable = new EntityQueryable <TEntity>(_context.GetDependencies().QueryProvider);

#pragma warning disable 618
            if (_entityType.FindPrimaryKey() == null)
#pragma warning restore 618
            {
                queryable = (EntityQueryable <TEntity>)queryable.AsNoTracking();
            }

            return(queryable);
        }