text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```smalltalk
using System;
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace CodeFirst.DataAccess.Configurations;
public class ClientsConfiguration : IEntityTypeConfiguration<Clients>
{
public void Configure(EntityTypeBuilder<C... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Configurations/ClientsConfiguration.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 289 |
```smalltalk
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace CodeFirst.DataAccess.Configurations;
public class CopiesConfiguration : IEntityTypeConfiguration<Copies>
{
public void Configure(EntityTypeBuilder<Copies> builder)
... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Configurations/CopiesConfiguration.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 352 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\CodeFirst.ConsoleApp\Program.cs" Link="Program.cs" />
</ItemGroup>
<ItemGroup>
<ProjectRefe... | /content/code_sandbox/src-examples/CodeFirst.ConsoleApp8/CodeFirst.ConsoleApp8.csproj | xml | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 137 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.28" />
<PackageReference In... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/CodeFirst.DataAccess.csproj | xml | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 434 |
```yaml
coverage:
range: 10..100
round: down
precision: 2
``` | /content/code_sandbox/codecov.yml | yaml | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 21 |
```unknown
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="path_to_url" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="path_to_url">
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=EF/@EntryIndexedValue">EF</s:String>
... | /content/code_sandbox/System.Linq.Dynamic.Core.sln.DotSettings | unknown | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 373 |
```batchfile
rem path_to_url
SET version=v1.4.5
GitHubReleaseNotes --output CHANGELOG.md --exclude-labels invalid question documentation wontfix environment --language en --version %version% --token %GH_TOKEN%
``` | /content/code_sandbox/Generate-ReleaseNotes.bat | batchfile | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 47 |
```smalltalk
using System;
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace CodeFirst.DataAccess.Configurations;
public class ActorsConfiguration : IEntityTypeConfiguration<Actors>
{
public void Configure(EntityTypeBuilder<Act... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Configurations/ActorsConfiguration.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 816 |
```smalltalk
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace CodeFirst.DataAccess.Configurations;
public class StarringConfiguration : IEntityTypeConfiguration<Starring>
{
public void Configure(EntityTypeBuilder<Starring> bui... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Configurations/StarringConfiguration.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 515 |
```smalltalk
namespace CodeFirst.DataAccess.Models;
public class Employees
{
public int EmployeeId { get; set; }
public string Firstname { get; set; }
public string Lastname { get; set; }
public float? Salary { get; set; } // yeah, salary might be nullable, why not :)
public string City { ge... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Models/Employees.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 140 |
```smalltalk
using System.Collections.Generic;
namespace CodeFirst.DataAccess.Models;
public class Copies
{
public int CopyId { get; set; }
public bool Available { get; set; }
public int MovieId { get; set; }
// navigational properties
// one copy has only one movie
public virtual Movies Movi... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Models/Copies.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 147 |
```smalltalk
using System.Collections.Generic;
namespace CodeFirst.DataAccess.Models;
public class Movies
{
public int MovieId { get; set; }
public string Title { get; set; }
public int Year { get; set; }
public int AgeRestriction { get; set; }
public float Price { get; set; }
public Movies()... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Models/Movies.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 220 |
```smalltalk
using System;
using System.Collections.Generic;
namespace CodeFirst.DataAccess.Models;
public class Actors
{
public int ActorId { get; set; }
public string Firstname { get; set; }
public string Lastname { get; set; }
public DateTime? Birthday { get; set; }
public Actors()
{
}... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Models/Actors.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 155 |
```smalltalk
using System;
using System.Collections.Generic;
namespace CodeFirst.DataAccess.Models;
public class Clients
{
public int ClientId { get; set; }
public string Firstname { get; set; }
public string Lastname { get; set; }
public DateTime? Birthday { get; set; }
// navigational p... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Models/Clients.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 138 |
```smalltalk
namespace CodeFirst.DataAccess.Models;
public class Starring
{
public int ActorId { get; set; }
public int MovieId { get; set; }
// navigational properties
public virtual Movies Movie { get; set; }
public virtual Actors Actor { get; set; }
public Starring()
{
}
... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Models/Starring.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 104 |
```smalltalk
using System;
namespace CodeFirst.DataAccess.Models;
public class Rentals
{
public int CopyId { get; set; }
public int ClientId { get; set; }
public DateTime? DateOfRental { get; set; }
public DateTime? DateOfReturn { get; set; }
// navigational properties
public virtual Clients ... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Models/Rentals.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 161 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using CodeFirst.DataAccess.Interfaces;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.DataAccess.Repositories;
public abstract class BaseRepository<T> : IRepository<T>... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Repositories/BaseRepository.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 357 |
```smalltalk
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.DataAccess.Repositories;
public class StarringRepository : BaseRepository<Starring>
{
public StarringRepository(DbContext baseContext) : base(baseContext)
{
}
}
``` | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Repositories/StarringRepository.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 49 |
```smalltalk
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.DataAccess.Repositories;
public class RentalsRepository : BaseRepository<Rentals>
{
public RentalsRepository(DbContext baseContext) : base(baseContext)
{
}
}
``` | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Repositories/RentalsRepository.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 47 |
```smalltalk
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.DataAccess.Repositories;
public class EmployeesRepository : BaseRepository<Employees>
{
public EmployeesRepository(DbContext baseContext) : base(baseContext)
{
}
}
``` | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Repositories/EmployeesRepository.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 47 |
```smalltalk
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.DataAccess.Repositories;
public class ClientsRepository : BaseRepository<Clients>
{
public ClientsRepository(DbContext baseContext) : base(baseContext)
{
}
}
``` | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Repositories/ClientsRepository.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 46 |
```smalltalk
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.DataAccess.Repositories;
public class MoviesRepository : BaseRepository<Movies>
{
public MoviesRepository(DbContext baseContext) : base(baseContext)
{
}
}
``` | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Repositories/MoviesRepository.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 46 |
```smalltalk
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.DataAccess.Repositories;
public class ActorsRepository : BaseRepository<Actors>
{
public ActorsRepository(DbContext baseContext) : base(baseContext)
{
}
}
``` | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Repositories/ActorsRepository.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 47 |
```smalltalk
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.DataAccess.Repositories;
public class CopiesRepository : BaseRepository<Copies>
{
public CopiesRepository(DbContext baseContext) : base(baseContext)
{
}
}
``` | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Repositories/CopiesRepository.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 46 |
```smalltalk
using CodeFirst.DataAccess.Configurations;
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.DataAccess.Context;
public class SqlServerDbContext : DbContext
{
public SqlServerDbContext(DbContextOptions options) : base(options)
{
}
public DbSet<Mo... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Context/SqlServerDbContext.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 205 |
```smalltalk
using CodeFirst.DataAccess.Configurations;
using CodeFirst.DataAccess.Models;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.DataAccess.Context;
public class PostgresDbContext : DbContext
{
public PostgresDbContext(DbContextOptions options) : base(options)
{
}
public Db... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Context/PostgresDbContext.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 206 |
```smalltalk
// <auto-generated />
using System;
using CodeFirst.DataAccess.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.Post... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Migrations/20220124205348_PostgreSqlInitialMigration.Designer.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 6,668 |
```smalltalk
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace CodeFirst.DataAccess.Migrations
{
public partial class PostgreSqlInitialMigration : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Migrations/20220124205348_PostgreSqlInitialMigration.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 4,710 |
```unknown
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31606.5
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{8463ED7E-69FB-49AE-85CF-0791AFD98E38}"
ProjectSection(SolutionItems) = pr... | /content/code_sandbox/System.Linq.Dynamic.Core.sln | unknown | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 36,978 |
```smalltalk
// <auto-generated />
using System;
using CodeFirst.DataAccess.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace CodeFirst.DataAccess... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Migrations/PostgresDbContextModelSnapshot.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 6,650 |
```smalltalk
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace CodeFirst.DataAccess.Migrations.SqlServerDb;
public partial class SqlServerInitialMigration : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name:... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Migrations/SqlServerDb/20220124205405_SqlServerInitialMigration.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 4,775 |
```smalltalk
// <auto-generated />
using System;
using CodeFirst.DataAccess.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace CodeFirst.DataAccess.Migrati... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Migrations/SqlServerDb/SqlServerDbContextModelSnapshot.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 6,639 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Threading.Tasks;
namespace CodeFirst.DataAccess.Interfaces;
public interface IRepository<T>
{
Task AddAsync(T entity);
void Update(T entity);
void Delete(T entity);
void Delete(Expression<Func<T, b... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Interfaces/IRepository.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 118 |
```smalltalk
using System;
using CodeFirst.DataAccess.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
namespace CodeFirst.DataAccess.Factories;
public class SqlServerDbContextFactory : IDesignTimeDbContextFactory<SqlServerDbContext>
{
public SqlServerDbContext CreateDbCon... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Factories/SqlServerDbContextFactory.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 128 |
```smalltalk
using System;
using CodeFirst.DataAccess.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
namespace CodeFirst.DataAccess.Factories;
public class PostgresDbContextFactory : IDesignTimeDbContextFactory<PostgresDbContext>
{
public PostgresDbContext CreateDbContex... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Factories/PostgresDbContextFactory.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 129 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.EntityFrameworkCore.DynamicLinq.EFCore6\Microsoft.EntityFrameworkCore.DynamicLin... | /content/code_sandbox/src-examples/CodeFirst.ConsoleApp/CodeFirst.ConsoleApp.csproj | xml | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 107 |
```smalltalk
using System;
using System.Diagnostics;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Threading.Tasks;
using CodeFirst.DataAccess.Factories;
using CodeFirst.DataAccess.Repositories;
using Microsoft.EntityFrameworkCore;
namespace CodeFirst.ConsoleApp;
public static class Program
{
pr... | /content/code_sandbox/src-examples/CodeFirst.ConsoleApp/Program.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 642 |
```xml
<Project>
<PropertyGroup>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<!-- path_to_url -->
<CollectCoverage>true</CollectCoverage>
<ExcludeByAttribute>GeneratedCodeAttribute</ExcludeByAttribute>
<CoverletOutputFormat>opencover</CoverletOutputForm... | /content/code_sandbox/test/Directory.Build.props | xml | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 79 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void LongCount()
{
//Arrange
IQueryable testListFull = User.GenerateSampleModels(100).AsQ... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.LongCount.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 542 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Entities;
using FluentAssertions;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void OfType... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Is,OfType,As,Cast.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 4,206 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void ToArray_Dynamic()
{
// Arrange
var testList = User.GenerateSampleModels(51);
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.ToArray.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 148 |
```smalltalk
// <auto-generated />
using System;
using CodeFirst.DataAccess.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueCon... | /content/code_sandbox/src-examples/CodeFirst.DataAccess/Migrations/SqlServerDb/20220124205405_SqlServerInitialMigration.Designer.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 6,656 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using System.Threading.Tasks;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.SumAsync.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 366 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using System.Threading.Tasks;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.AverageAsync.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 213 |
```smalltalk
using System.Collections.Generic;
using System.Dynamic;
using System.Linq.Dynamic.Core.Tests.TestHelpers;
using FluentAssertions;
using Newtonsoft.Json;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public class DynamicClassTest
{
public DynamicClassTest()
{
DynamicClassFactory.C... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/DynamicClassTest.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 2,891 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void GroupJoin_1()
{
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.GroupJoin.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 2,633 |
```smalltalk
using System.Collections.Generic;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Intersect_Dynamic_ListOfStrings()
{
// Arrange
var list1 = new List<bool> { tru... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Intersect.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 173 |
```smalltalk
using System.Collections;
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
#if EFCORE
using Microsoft.EntityFrameworkCore;
#else
using System.Data.Entity;
#endif
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entities_GroupBy_S... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.GroupBy.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,276 |
```smalltalk
using System.Collections;
using System.Linq.Dynamic.Core.Exceptions;
using Newtonsoft.Json;
#if EFCORE
using Microsoft.EntityFrameworkCore;
#else
using System.Data.Entity;
#endif
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entitie... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.Select.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,031 |
```smalltalk
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers;
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using System.Linq.Expressions;
using ... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Where.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 3,250 |
```smalltalk
using System.Collections.Generic;
using NFluent;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using System.Reflection;
using Newtonsoft.Json;
using Xunit;
using FluentAssertions;
namespace System.Linq.Dynamic.Core.Tests;
public partial class QueryableTes... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.GroupBy.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,913 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
#else
using System.Data.Entity;
#endif
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
/// <summary>
/// Test for path_to_url
/// </summary>
[Fact]
public void Entities_Where_In_And()
{
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.In.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 197 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class QueryableTests
{
[Fact]
public void Average()
{
// Arrange
var incomes = User.GenerateSampleModels(100).Select(u =... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Average.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 294 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using System.Threading.Tasks;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.AllAsync.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 132 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Single()
{
//Arrange
var testList = User.GenerateSampleModels(100);
IQue... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Single.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 589 |
```smalltalk
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public class ParsingConfigTests
{
class TestQueryableAnalyzer : IQueryableAnalyzer
{
public bool SupportsLinqToObjects(IQueryable query, IQueryProvider provider)
{
return ... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/ParsingConfigTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 194 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void TakeWhile_Predicate()
{
//Arrange
var testList = User.GenerateSampleModels(100);
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.TakeWhile.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 242 |
```smalltalk
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
}
}
``` | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 22 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using System.Linq.Expressions;
using System.Threading.Tasks;
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
using Xunit;
namesp... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.CountAsync.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 200 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class QueryableTests
{
[Fact]
public void Contains_Dynamic_ListWithStrings()
{
// Arrange
var baseQuery = User.GenerateS... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Contains.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 156 |
```smalltalk
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entities_Count_Predicate()
{
// Arrange
const string search = "a";
// Act
int expected = _context.Blogs.Count(b => b.Name.Contains(search));
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.Count.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 96 |
```smalltalk
using System.Collections.Generic;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Concat_Dynamic_ListOfStrings()
{
// Arrange
var list1 = new List<bool> { true }... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Concat.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 170 |
```xml
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>System.Linq.Dynamic.Core.Tests</AssemblyName>
<DebugType>full</DebugType>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>../../sr... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/System.Linq.Dynamic.Core.Tests.csproj | xml | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 662 |
```smalltalk
using System.Collections.Generic;
using System.Dynamic;
using System.Globalization;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using FluentAssertions;
using... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/ExpressionTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 23,670 |
```smalltalk
using System.Collections.Generic;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Except_Dynamic_ListOfStrings()
{
// Arrange
var list1 = new List<bool> { true }... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Except.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 172 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entities_All()
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.All.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 121 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class QueryableTests
{
[Fact]
public void Max()
{
// Arrange
var incomes = User.GenerateSampleModels(10).Select(u => u.Income).ToA... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Max.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 491 |
```smalltalk
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entities_Any()
{
// Arrange
var expectedQueryable1 = _context.Blogs.Where(b => b.BlogId > 0);
bool expectedAny1 = expectedQueryable1.Any();
var expec... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.Any.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 326 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
// Not supported : path_to_url
[Fact(Skip = "not supported")]
public void Entities_TakeWhile()
{
// Arrange
const int total = ... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.TakeWhile.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 146 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entities_Page()
{
// Arrange
const int page = 2;
const int pageSize = 10;
int total = _context.... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.Page.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 349 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
using Xunit;
#if EFCORE
using Microsoft.EntityFrameworkCore;
#else
using System.Data.Entity;
#endif
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests : IClassFixture<EntitiesTestsDatabaseFixture>
{
private static reado... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 630 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using System.Threading.Tasks;
using Xunit;
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
using System.Linq.Expressions;
namesp... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.FormattableString.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 821 |
```smalltalk
using System.Collections;
using System.Collections.Generic;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public class DynamicClassFactoryTests
{
public DynamicClassFactoryTests()
{
DynamicClassFactory.ClearGeneratedTypes();
}
[Fact]
public vo... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/DynamicClassFactoryTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 679 |
```smalltalk
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void ThenBy_Dynamic()
{
//Arrange
var testList... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.ThenBy.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 446 |
```smalltalk
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Aggregate_Average()
{
// Arrange
var queryable = new[]
{
new AggregateTest { Double = 50, Float = 1.0f, Int =... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Aggregate.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 675 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using System.Threading.Tasks;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void ToDynamicList()
{
// Arrange
var testList = User.Gener... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.ToList.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 276 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
#if EFCORE
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using EntityFramework.DynamicLinq;
#endif
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entities_FirstOrDefault... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.FirstOrDefault.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 149 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Reverse()
{
var testList = User.GenerateSampleModels(100);
IQueryable testListQry = ... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Reverse.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 104 |
```smalltalk
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entities_Distinct()
{
// Act
var expected = _context.Blogs.Select(b => b.Posts.Distinct()).ToArray<object>();
var result = _context.Blogs.Select("Posts.Distin... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.Distinct.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 91 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Skip()
{
//Arrange
var testList = User.GenerateSampleModels(100);
IQuery... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Skip.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 421 |
```smalltalk
using System.Collections.Generic;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using FluentAssertions;
using Moq;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class ExpressionTe... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/ExpressionTests.MethodCall.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 2,340 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using EntityFramework.DynamicLinq;
#endif
using System.Threading.Tasks;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public async Task Entities_SingleOrDefaultAsync()
{
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.SingleOrDefaultAsync.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 277 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
using System.Collections;
using System.Collections.Generic;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class EntitiesTests
{
[Fact]
public void Entities_DynamicEnumerableExtensions_ToDynamicArray()
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.DynamicEnumerableExtensions.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 661 |
```smalltalk
using System.Collections;
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
#if EFCORE
using Microsoft.EntityFrameworkCore;
#else
using System.Data.Entity;
#endif
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
/// <summary>
/// Test for path_to_ur... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.Include.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 159 |
```smalltalk
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entities_LongCount_Predicate()
{
// Arrange
const string search = "a";
// Act
long expected = _context.Blogs.LongCount(b => b.Name.Contains(search));... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.LongCount.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 98 |
```smalltalk
using NFluent;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
// path_to_url
#if EFCORE
[Fact]
public void Entities_Cast_To_FromStringToInt()
{
// Act
var result = _context.Blogs
.Where(b => b.BlogId >= 1000 && b.Blo... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.Cast.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 484 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Sum()
{
// Arrange
var incomes = User.GenerateSampleModels(100).Select(u => u.Income... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Sum.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 170 |
```smalltalk
using System.Collections.Generic;
using System.Globalization;
using System.Linq.Dynamic.Core.Config;
using System.Linq.Dynamic.Core.CustomTypeProviders;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using System... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/DynamicExpressionParserTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 16,152 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entities_Averag... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.Average.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 177 |
```smalltalk
using System.Collections;
using System.Collections.Generic;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using FluentAssertions;
using Newtonsoft.Json.Linq;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Sele... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.SelectMany.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,851 |
```smalltalk
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq.Dynamic.Core.Exceptions;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using FluentAssertions;
using Linq.PropertyTranslator.Core;
using QueryInterceptor.Core;
using Xunit;
using NFluent;
using Newtonsoft.... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Select.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 3,915 |
```smalltalk
using NFluent;
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void DefaultIfEmpty()
{
// Arrange
var queryable = User.GenerateSampleMode... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.DefaultIfEmpty.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 887 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void First()
{
//Arrange
var testList = User.GenerateSampleModels(100);
IQuer... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.First.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 456 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public void Entities_Sum_In... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.Sum.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 342 |
```smalltalk
using Linq.PropertyTranslator.Core;
using LinqKit;
using NFluent;
using QueryInterceptor.Core;
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
using Xunit;
#if EFCORE
using Microsoft.EntityFrameworkCore;
#else
using System.Data.Entity;
#endif
namespace System.Linq.Dynamic.Core.Tests;
public class... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/DefaultQueryableAnalyzerTests.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 697 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void SkipWhile_Predicate()
{
//Arrange
var testList = User.GenerateSampleModels(100);
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.SkipWhile.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 242 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using EntityFramework.DynamicLinq;
#endif
using System.Threading.Tasks;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class EntitiesTests
{
[Fact]
public async Task Entities_FirstOrDefaultAsync()
{
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.FirstOrDefaultAsync.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 320 |
```smalltalk
using System.Linq.Dynamic.Core.Tests.Helpers.Models;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests
{
public partial class QueryableTests
{
[Fact]
public void Page()
{
//Arrange
const int total = 35;
const int page = 2;
... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.Page.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 566 |
```smalltalk
#if EFCORE
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.DynamicLinq;
#else
using System.Data.Entity;
using EntityFramework.DynamicLinq;
#endif
using System.Linq.Expressions;
using System.Threading.Tasks;
using System.Linq.Dynamic.Core.Tests.Helpers.Entities;
using Xunit;
namesp... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/EntitiesTests.LongCountAsync.cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 202 |
```smalltalk
using System.Collections.Generic;
using FluentAssertions;
using Xunit;
namespace System.Linq.Dynamic.Core.Tests;
public partial class QueryableTests
{
/// <summary>
/// Issue #645
/// </summary>
[Fact]
public void your_sha256_hashueForDateTime_Should_Be_Unwrapped()
{
// Ar... | /content/code_sandbox/test/System.Linq.Dynamic.Core.Tests/QueryableTests.UseParameterizedNamesInDynamicQuery .cs | smalltalk | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 1,600 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.