Граф коммитов

44 Коммитов

Автор SHA1 Сообщение Дата
koenigst 017fb22e4b
Added a test project for F# functional tests. (#34541)
- Added the project EFCore.FSharp.FunctionalTests
- Created a fixture for the Northwind database
- Implemented a sample test analogous to the Visual Basic tests

Fixes #14572
2024-08-27 19:49:02 +03:00
Andriy Svyryd dd9bc368bf
Use TokenCredential for Cosmos tests (#33956) 2024-06-11 13:44:45 -07:00
Andriy Svyryd 52f37b3826
Add OptimizeContext MSBuild target that runs on build (#33049)
Fixes #24894
2024-02-29 14:51:18 -08:00
Arthur Vickers db9846dc28
Test new sqlite3mc SQLitePCLRaw bundle (#32562)
* Test new sqlite3mc SQLitePCLRaw bundle

* Disable test.

---------

Co-authored-by: Brice Lambson <brice@bricelam.net>
2023-12-08 20:15:46 +00:00
Shay Rojansky c818a11fca
Rename solution to EFCore.sln (#32344) 2023-11-20 10:30:45 +01:00
Brice Lambson cb35706f6e
Tweak solution filter files 2019-08-09 11:48:06 -07:00
Shay Rojansky 057d15e7bf Reorganized benchmarks
For cleaner project structure - inherited projects like in tests.
Various other cleanup modifications, but no functional changes.
2019-07-29 10:25:57 +02:00
Shay Rojansky c4bf413c4e Benchmark refresh
* Our previous config used to run multiple TFMs as part of a single
  benchmark run. Removed this - a single run is now on a single TFM.
  It is still possible run older TFMs via the commandline.
* Running different versions of EF Core is now possible via build
  configs, rather than different projects. This simplifies things.
* Code common to the two EF Core projects - and to the EF6 project -
  is now in Shared.EFCore and Shared respectively.
* Integrated the new benchmark projects into EFCore.sln and removed the
  older ones.
* Other various cleanup and update tasks
2019-03-12 12:35:54 +01:00
AndriySvyryd eb17debe07 Update solutions to VS 2019 2019-02-05 17:02:19 -08:00
Brice Lambson f47ba4d532 Move specification tests to test directory 2019-01-04 13:04:00 -08:00
Smit Patel 4b5fa67797
🔥 Remove Oracle Sample Provider (#14196)
Resolves #14119
2018-12-19 17:30:52 -08:00
Brice Lambson 67a5156434 Add Microsoft.Data.Sqlite samples to build 2018-12-06 10:31:02 -08:00
Nate McMaster 67511a675f
Merge branch 'release/2.1' into release/2.2 2018-10-31 16:15:14 -07:00
Nate McMaster cf8c086bc0
Update EFCore.sln to include Microsoft.Data.Sqlite projects and replace PackageRef with ProjectRef 2018-10-31 12:43:45 -07:00
Arthur Vickers 1d71922929 Changes from 2.2 new API review
* Rename EnableRichDataErrorHandling to EnableDetailedErrors
* Rename TagWith to WithTag (controversial!)
* Make FinalizeModel return the finalized IModel
* Rename DeepComparer to StructuralCompaper
* Move CancellationTokenParameter to internal type
* Rename GenerateLiteralExpression to GenerateCodeLiteral
* Rename Cosmos.Sql to Cosmos
* Remove URI overload in UseCosmos
* Rename SqlQuerySpec to CosmosSqlQuery and make public
* Rename Cosmos annotation CollectionName to ContainerName
* Rename IndexExtras to IndexOptions
* Implement IPrintable on DiscriminatorPredicateExpression explicitly
* Rename SingleLineComment to SingleLineCommentToken
* Refactor RelationalGeometryTypeMapping.AsText
* Rename AddCustomConversion to CustomizeDataReaderExpression
* Move IsSpatialiteType to internal type
* Use NetTopologySuite rather than NTS
* Rename SetInclude "value" parameter to "properties"
* Make SqlServerSpatialReader real internal
2018-10-08 15:36:41 -07:00
Brice Lambson dc0f1b01d3 Sqlite: Support spatial data via NTS and SpatiaLite
Part of #1100
2018-09-10 10:37:40 -07:00
Brice Lambson da777ce517 SqlServer: Support spatial data via NTS
There's still a lot to do (e.g. support mapping to GEOGRAPHY), bit it's at a point where we can start gathering feedback while we continue iterating on it.

To get started, install the `Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite` package, call `.UseSqlServer(..., x => x.UseNetTopologySuite())`, and add `Geometry` properties to your model.

Part of #1100
2018-08-30 13:48:11 -07:00
Smit Patel 26985ffa91 CosmosDb: Add assembly attribute to skip tests when emulator is not running
Add CosmosDb src/test projects as part of build script
2018-08-15 14:27:41 -07:00
Smit Patel d3ede4fcbe Remove Cosmos.Sql from dev 2018-05-16 11:02:29 -07:00
Smit Patel e3cf39619d Rename EFCore.DocumentDb package to EFCore.Cosmos.Sql 2018-04-19 11:52:43 -07:00
Brice Lambson c87fc69d4b Make dotnet-ef a global tool 2018-03-19 10:19:53 -07:00
AndriySvyryd 648a0e44ae Rename Microsoft.EntityFrameworkCore.Attributes to Microsoft.EntityFrameworkCore.Abstractions
Move ILazyLoader

Fixes #11170
2018-03-12 00:12:03 -07:00
Andrew Peters bd80907c1c Analyzers: Part of #10080 - Adds potential SQL injection analysis.
A new EF Core Analyzer that detects some common potential SQL injection patterns. Currently looks at FromSql, ExecuteSqlCommand/Async and DbCommand.CommandText APIs.

Works by inspecting the SQL argument expression (either passed directly, or by walking up any local variable chain), and pattern matching the expression for:

- Calls to String.Format, Concat, '+', Insert, Replace, Join involving any local variable or parameter data.
- Uses of interpolated strings that use local variable or parameter data in places that don't end up resolving to an overload that accepts FormattableString.

See unit tests for examples of patterns.
2018-02-28 15:36:34 -08:00
Smit Patel ab0e191cc5 Add EFCore.DocumentDb Package 2018-01-25 16:21:07 -08:00
Arthur Vickers 972b71ffaf Lazy-loading proxies package
Part of #10509, #3797.

This change adds a new package--Microsoft.EntityFrameworkCore.Proxies--that contains a lazy-loading proxy implementation making use of the EF lazy-loading infrastructure and the Castle.Core proxies package. Current plan is for this to ship on NuGet as an optional package for use with EF.

To use in a normal application, just add a call to `UseLazyLoadingProxies()` on the DbContext options builder.

There are also `context.CreateProxy()` methods for creating stand-alone proxy instances if needed.

Entity types must be public and navigation properties must be virtual. Also, the entity type and constructor must be "visible" to the castle proxies assembly, which usually means public, but could mean internal if "InternalsVisibleTo" is used. Exceptions are thrown if these requirements are not met--you don't just not get a proxy like in EF6.

Note that this is an optional package for EF that we chose to create because the infrastructure in place made it easy to do so. It does not preclude a Roslyn-based rewriting solution in the future.
2018-01-19 13:38:15 -08:00
AndriySvyryd 53cfbe7b53 Add Microsoft.EntityFrameworkCore.Attributes assembly
Change owned entity type configuration API.

Part of #9487
2017-12-15 14:17:07 -08:00
Smit Patel cc8713ce82 Benchmarks: Remove coupling with aspnetci
Remove benchmarks from EFCore.sln
Use fixed package version in project so automation does not update them.
2017-12-15 09:03:00 -08:00
Smit Patel 34949638e9 Fix Oracle build break
Add Oracle.FunctionalTests into Core.sln
2017-12-14 18:09:17 -08:00
Nate McMaster e0a5cc1c89 Add DebugNoBenchmarks and ReleaseNoBenchmarks configurations to EFCore.sln 2017-12-13 10:09:25 -08:00
Smit Patel 6744976a66 Add .editorConfig file 2017-11-17 17:13:27 -08:00
Justin Kotalik fde3acb2fd Update Minimum Version of Visual Studio to 15.3.0 (#9875) 2017-09-21 19:16:48 -07:00
Nate McMaster 039067cc46 Use Directory.Build.props/targets 2017-09-11 15:28:34 -07:00
Nate McMaster d614a0d560 Move EFCore.Benchmarks.EFCore from test/ to benchmarks/ 2017-09-11 14:45:50 -07:00
Andrew Peters d5ab432da3 Adds Oracle sample provider to EFCore.sln.
- Adds README.md for the sample.
2017-09-07 11:51:39 -07:00
Smit Patel 0a9cc23e67 🔥 Remove EFCore.Relational.Design.Specification.Tests 2017-08-08 10:49:12 -07:00
Smit Patel 2d05edebef Test: Remove rev eng testing from SqlServer.Design.FunctionalTests
Use SqlServer as provider in EFCore.Design.Tests
2017-08-04 19:09:44 -07:00
Smit Patel a1a8ca710e Benchmarks: Run latest dev benchmarks using BenchmarkDotnet 2017-07-28 13:32:09 -07:00
Andrew Peters a9c8ca7e45 Fix #8783 - Remove AppInsights package. 2017-06-13 15:42:11 -07:00
Smit Patel 778a843444 Remove Relational.Design package 2017-06-02 09:50:42 -07:00
Smit Patel 32434d2d86 Remove SqlServer.Design
Remove SqlServer.Design.Tests

Introduce IAnnotationRenderer interface for provider writers to provide us how to interpret annotations
Flow annotations from DatabaseModel to IModel so that provider can generate provider specific fluent API
Remove special processing inside of SqlServerScaffoldingFactory. All processing should happen while generating database
2017-06-02 09:50:41 -07:00
Smit Patel 73e10420f5 Remove Sqlite.Design package
Remove Sqlite.Design.Tests
Introduce IScaffoldingHelper interface which provider overwrites to generate provider specific code in scaffolding pipeline
2017-06-02 09:50:40 -07:00
Andrew Peters 99f322920e Diagnostics: Initial commit of new EF.AppInsights package.
- Sets up the product/test projects and enables simple AI dependency forwarding of EF generated ADO events including EF correlation ids.

TBD:

- DbContext correlation? NB: ASP.NET AI integration already correlates everything at the Request level.
- Forward other events? NB. ASP.NET AI integration already forwards all logging events as AI Events and all errors as AI Errors, so it is unclear what we should do here.
2017-05-15 22:48:01 -07:00
Brice Lambson 7c64310a66 Merge repo 'aspnet/EntityFramework.Tools' in
Resolves #7624
2017-03-14 09:04:07 -07:00
Brice Lambson f386095005 Shorten source paths to avoid PathTooLongException 2017-03-03 11:51:59 -08:00