Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation on .net core doesn't work / more details #15

Open
srad opened this issue Apr 9, 2018 · 2 comments
Open

Documentation on .net core doesn't work / more details #15

srad opened this issue Apr 9, 2018 · 2 comments
Assignees

Comments

@srad
Copy link

srad commented Apr 9, 2018

I just set up a .net core 2.1.x MVC project in VS2017 and tried with the documentation to get started and got a syntax error and some issues:

yield does not exist in context / Invalid token "break;

Steps to reproduce

public IEnumerable<IDataProviderSettings> DataProviders => yield break;

This works:

public IEnumerable<IDataProviderSettings> DataProviders => Enumerable.Empty<IDataProviderSettings>();

Also the docs are really thin. Where to I put also DataConnection.DefaultSettings = new MySettings();?

I assume in MVC apps in Startup.cs and I also don't know if it's supposed to be implemented like that anymore (?). Could you give in code examples also the entire file, so one can see exactly what you imported and so forth (like MS docs).

Thanks.

Environment details

linq2db version: 1.10.0
Database Server: MySql 5.7
Operating system: E.g. Windows 10
Framework version: .NET Core 2.1.x
Visual Studio: 2017

@ili
Copy link
Contributor

ili commented Apr 10, 2018

I assume in MVC apps in Startup.cs

You are absolutelly right

@ili
Copy link
Contributor

ili commented Apr 10, 2018

yield does not exist in context / Invalid token "break;

thanks! we'll fix documentation

ili referenced this issue in linq2db/linq2db Apr 10, 2018
MaceWindu referenced this issue in linq2db/linq2db May 6, 2018
* Formatting and refactoring.

* Working on Travis build.

* Formatting.

* Fixed #1023.

* Formatting.

* Deleted xunit stuff.

* Updated nugets.

* update release notes with recent changes

* Fixed regression with SqlCe DataProvider.

* Working on Travis build.

* Working on Travis build.

* Implemented TRUNCATE TABLE.

* Revert "Updated nugets."

This reverts commit 670f3f3.

# Conflicts:
#	Tests/Base/Tests.Base.csproj
#	Tests/IBM.Core/Tests.IBM.Core.csproj
#	Tests/Linq/Tests.csproj

* added ActiveIssue attribute to ignore tests for known defects

* Issue #975 with invalid materialization (#977)

merging test-only PRs

* Added test for issue #975.

* mark tests with ActiveIssue attribute

* Issue with merge and Cross Join in source query (#896)

merging PRs with tests

* add issue tests

* updated tests and assigned ActiveIssue attribute

* Tests for issue #873 (#876)

merging test-only PRs

* Added tests for issue #873 

* Added missed file.

* add ActiveIssue attribute

* Test for #792 (#807)

merging test-only PRs

* test

* fix core build

* add ActiveIssue attribute

* Issue #577 (left joins parsing fails) (#600)

merging tests

* test reproducing #577

* added ActiveIssue attribute

* fix #1027 - fix compilation

* Debugging travis issue, do not merge (#1028)

fixed travis tests

* Formatting.

* Generate debug info in release.

* Disable warning.

* Fixed Informix DataProvider according to new tests.

* Fix minor typo on CONTRIBUTING.md (#1031)

Thanks!

* Added experimental calculated columns.

* Fix #986 + typed source projections support (#1033)

* fix #986 + typed source projections support

* add more source projection tests

* refactorings

* fixed cross-join/select-many merge sources + extra test for existing issue

* fix couple of tests and remove debug call

* validate that OnTargetKey called for table with primary key columns

* avoid binary literals in merge source

* Added ComparerBuilder.

* Formatting.

* Use ComparerBuilder.

* Working on Calculated Columns.

* fix #1030

* fix join tests failure when no runnable providers configured

* better join tests workaround from nunit team

* fix miniprofiler example

* spaces...

* Update README.md

* Corrected InheritanceMapping transformation.

* update readme with recent changes

* Corrected changes for Issue #1026 (#1045)

* implementation without tests

* fixes and a test method

* Corrected formatting. Added new unit tests.

* Unified parameter order. Corrected tests.

* Corrected tests.

* update release notes, enable new tests for all providers

* Added missed MySql's Schema procedures definition. (#993)

* Added missed MySql's Schema procedures definition.

* - added tests and fixed schema provider to pass them

- added xml docs to schema classes

* rewrited procedure schema load to raw queries for MySql, as MySql provider's implementation unusable due to a lot of bugs and doesn't behave consistently between different server versions

* Update README.md

* Formatting and refactoring.

* Working on Calculated Columns.

* Deleted unused code.

* Updated CalculatedColumn test.

* Moved Merge extension to the root namespace.

* Enabled options.KeepIdentity parameter for many DataProviders. (#1037)

* Enabled options.KeepIdentity parameter for many DataProviders.

* Reverted changes for providers. And corrected enforceKeepIdentity flag usage.

* tests

* add exception when KeepIdentity=true is not supported (initial work)

* working on tests

* fixed DB2 test and SAP HANA provider

* SQL CE support

* Firebird fixes

* "fix" Oracle tests

* fix tests for postgres

* fix incorrect Keepidentity value in test

* remove enforceKeepIdentity parameter

* Fixed data corruption while getting stored procedure schema parameters.

* Fix execute cmd outside of script folder (done right) (#1055)

* Fix calling Compile.cmd out of root folder

* remove comment from Compile.cmd
add scriptpath variable to build

* Fix for CTE "with"

* Revert "Fix for CTE "with""

This reverts commit 718dc11.

* simplify cmd, replace env. var credit: @MaceWindu

* Fixed Sybase exception while getting database schema.

* Formatting.

* Update README.md

Corrected link to templates.

* Fixed Sybase merge tests.

* Fixed Sybase merge tests.

* Fixed merge tests.

* Merge source formatting.

* [skip ci] add recent changes to release notes

* bugfix - derived classes could not be loaded by base class type

* bugfix - bugfix inheritance queries, or query for base types is not possible

* feature - include column name in exceptions in datareader

* we could not map a inheritance to a abstract class

* Reuse aggregate metadata reader to support cases when reader was copied

* fix component mapping - fixes 1005

* Fix Component Mapping Tests so they check for correct results

* update nuget packages to use contentFiles meta

dropped linq2db.t4models (unneded)
updated NuGet.exe

* tests and fixes

* fix formatting and fix for sybase call in transaction

* Metadatareader -> use array

* Test for query via Base Type

* allow casts in loadwith

* - skip exception for AssociatedTableContext -> because a entity may not exist
- loadwith support for derived classes childs (fixes #994)

* fixes Problems with Insert, Update and Delete when using Inheritance (fixes #1017)

* Fixed tests.

* support for mapping enums as strings in string columns. (maybe later this should be configurable per column)

* a custom converter for a type should have a higher priority than the enum mapping

* support custom converters for enum types

* Implemented automatic INNER Join to LEFT Join converter for Firebird. (#1000)

* Implemented automatic INNER Join to LEFT Join converter for Firebird.

* update release notes and fix implementation

* Revert changes to linq2db and move fix to a test

* formatting

* fix build

* Dynamic columns. Fix #744, fix #507 (#1073)

* [WIP] Dynamic columns (#964)

* Dynamic columns support in (fluent) metadata.

* Dynamic column support in querying.

* Support for materialization of dynamic columns.

* Dynamic columns in update and insert.

* Clean-up.

* Cleanup 2.

* Cleanup 3.

* merge manually

* update readme, fix update regression

* fix update and work on failing tests

* fix unstable tests

* fixed merge API to return proper interface after On()

* possibility to modify entityDescriptor

* Change Invocation of Callback

* bugfix create of entity descriptor

* bugfix #1057

* Fix Test 1057

* Remove accidental commited code

This reverts commit ba63c30.

* update relase notes and small code style/documentation fixes

* spelling fix

* Added support for InnerJoin, LeftJoin, RightJoin, FullJoin and CrossJoin using linq syntax.

* update realease notes with latest changes

* update release notes

* Added test that reproduces issue #1057 (#1059)

Merging test-only PR

* Added test that reproduces issue.

* mark test with ActiveIssue

* update implementation to reflect recent changes, update release notes

* add alias support for insert target

* bugfix exception handling

* fix not-needed generation of identity-related queries for mysql, postresql and oracle

* bugfix enum converter usage

* complex tests

* fix #1057

* remove active issue so test is run

* #1092

* [ci skip] doc

* try to fix #1057

* add issue test

* update release notes with latest changes

* Added test and some fixes for Dynamic columns.

* update tests and fix issue

* update release notes

* Corrected tests for issue #1057.

* fix missing update query visitor

* revert unrelated changes

* [ci skip] update release notes

* implementation and tests

* Added possibility to use dynamic columns in queries without required storage.

* Added PrimaryKey attribute for test tables.

* Changed obsolete enumeration value ConvertType.NameToOwner to ConvertType.NameToSchema.

* Added possibility to instantiate objects in queries that works with interfaces.

* Restored original formatting.

* Bugfix for #1107

* Test for fix #1107

* One more fix with empty hour for SqlServer

* work on bulkcopy test with non-null data

* test passing

* fix enum column error in tests

* remove line

* bugfix linq2db for firebird -> reserved words

* bugfix #1110

* test for #1110

* Added a way to create ExpressionQueryImpl instance.

* Added callback for intercepting queries exactly before execution. (#1116)

Added callback for intercepting queries exactly before execution.

* update release notes

* Fixed problems with joining to grouping queries.

* release notes

* Formatting.

* Fixed AddConnection method.

* Fixed DB2 test.

* [WIP] Fail AppVeyor build on test failure (#1118)

* make tests fail

* try to fix

* remove test code

* fix tests

* Fix schema read for ACE Access databases (#1119)

* test and fix

* update release notes

* I said update release notes!

* improve test

* try to add ACE provider install  to appveyor build

* fix appveryor.yaml

* try again

* and again

* Update README.md

* Added possibility to handle third party query provider for common extensions.

* Added missed extensions. Formatting.

* add comment

* update release notes

* Added INotifyEntityCreated.

* Implemented EntityChanged as a callback.

* update release notes

* nuget packages fixes

* nuget magic

* Working on EntityChanged.

* Formatting & refactoring.

* [ci skip] update release notes

* Working on failing tests (#1120)

* fix test failing for mysql < 5.6.4

* - fix firebird identifier quotation logic

- implemented exception-free drop table for firebird
- fix firebird test issues

* Proposal for Fix GetCteTable (#1056)

* Fix GetCteTable

* improve coding guidelines

* check if fields are empty

* fix merge and update release notes

* Add identifiers quotation for informix

* revert recent quoted identifiers support commit. must be implemented properly

* merge

* Bugfix #1128

* trigger appveyor

* only read inherited when parameter is true

* fix fluent metadata reader

* Bugfix FLuentMappingBuilder

* Change Fluent Mapping builder again

* change test for 1128, this worked before

* Complexer Test for 1128

* Make Test2 fail

* fix test, so it should work with old code

* change QueryRunner to old behavior

* cleanup

* cleanup

* cleanup

* Update README.md

* Added OnTraceConnection property for tracing DataContext's connection.

* working on fluent inheritance

* Working on CreateTempTable.

* fix overzealous use of UseEnumValueNameForStringColumns

* add more tests

* fix test mappings

* enable verbose build

* wrong level or tool?

* yeah, sure

* one more time

* cleanup

configuration for tests

* LocalTable changes for firebird https://stackoverflow.com/questions/44353607

* Use anonymous type as a setter.

(cherry picked from commit 2d21906)

* changes revert

* using dotnet instead of cake

* Use anonymous type as a setter.

* revert

* [WIP] Fix Travis build (#1132)

* enable verbose build

* wrong level or tool?

* yeah, sure

* one more time

* using dotnet instead of cake

* revert

* bugfix when inheritance is used #1128 (#1127)

* Bugfix #1128

* trigger appveyor

* only read inherited when parameter is true

* fix fluent metadata reader

* Bugfix FLuentMappingBuilder

* Change Fluent Mapping builder again

* change test for 1128, this worked before

* Complexer Test for 1128

* Make Test2 fail

* fix test, so it should work with old code

* change QueryRunner to old behavior

* cleanup

* cleanup

* cleanup

* working on fluent inheritance

* fix overzealous use of UseEnumValueNameForStringColumns

* add more tests

* fix test mappings

* cleanup

configuration for tests

* LocalTable changes for firebird https://stackoverflow.com/questions/44353607

* changes revert

* release notes update, nuget version update

* restore oracle identifier quotation, update reserved words list for oracle (11g level) and firebird (3.0 level)
MaceWindu referenced this issue in linq2db/linq2db May 10, 2018
* Working on Travis build.

* Working on Travis build.

* Implemented TRUNCATE TABLE.

* Revert "Updated nugets."

This reverts commit 670f3f3.

# Conflicts:
#	Tests/Base/Tests.Base.csproj
#	Tests/IBM.Core/Tests.IBM.Core.csproj
#	Tests/Linq/Tests.csproj

* added ActiveIssue attribute to ignore tests for known defects

* Issue #975 with invalid materialization (#977)

merging test-only PRs

* Added test for issue #975.

* mark tests with ActiveIssue attribute

* Issue with merge and Cross Join in source query (#896)

merging PRs with tests

* add issue tests

* updated tests and assigned ActiveIssue attribute

* Tests for issue #873 (#876)

merging test-only PRs

* Added tests for issue #873 

* Added missed file.

* add ActiveIssue attribute

* Test for #792 (#807)

merging test-only PRs

* test

* fix core build

* add ActiveIssue attribute

* Issue #577 (left joins parsing fails) (#600)

merging tests

* test reproducing #577

* added ActiveIssue attribute

* fix #1027 - fix compilation

* Debugging travis issue, do not merge (#1028)

fixed travis tests

* Formatting.

* Generate debug info in release.

* Disable warning.

* Fixed Informix DataProvider according to new tests.

* Fix minor typo on CONTRIBUTING.md (#1031)

Thanks!

* Added experimental calculated columns.

* Fix #986 + typed source projections support (#1033)

* fix #986 + typed source projections support

* add more source projection tests

* refactorings

* fixed cross-join/select-many merge sources + extra test for existing issue

* fix couple of tests and remove debug call

* validate that OnTargetKey called for table with primary key columns

* avoid binary literals in merge source

* Added ComparerBuilder.

* Formatting.

* Use ComparerBuilder.

* Working on Calculated Columns.

* fix #1030

* fix join tests failure when no runnable providers configured

* better join tests workaround from nunit team

* fix miniprofiler example

* spaces...

* Update README.md

* Corrected InheritanceMapping transformation.

* update readme with recent changes

* Corrected changes for Issue #1026 (#1045)

* implementation without tests

* fixes and a test method

* Corrected formatting. Added new unit tests.

* Unified parameter order. Corrected tests.

* Corrected tests.

* update release notes, enable new tests for all providers

* Added missed MySql's Schema procedures definition. (#993)

* Added missed MySql's Schema procedures definition.

* - added tests and fixed schema provider to pass them

- added xml docs to schema classes

* rewrited procedure schema load to raw queries for MySql, as MySql provider's implementation unusable due to a lot of bugs and doesn't behave consistently between different server versions

* Update README.md

* Formatting and refactoring.

* Working on Calculated Columns.

* Deleted unused code.

* Updated CalculatedColumn test.

* Moved Merge extension to the root namespace.

* Enabled options.KeepIdentity parameter for many DataProviders. (#1037)

* Enabled options.KeepIdentity parameter for many DataProviders.

* Reverted changes for providers. And corrected enforceKeepIdentity flag usage.

* tests

* add exception when KeepIdentity=true is not supported (initial work)

* working on tests

* fixed DB2 test and SAP HANA provider

* SQL CE support

* Firebird fixes

* "fix" Oracle tests

* fix tests for postgres

* fix incorrect Keepidentity value in test

* remove enforceKeepIdentity parameter

* Fixed data corruption while getting stored procedure schema parameters.

* Fix execute cmd outside of script folder (done right) (#1055)

* Fix calling Compile.cmd out of root folder

* remove comment from Compile.cmd
add scriptpath variable to build

* Fix for CTE "with"

* Revert "Fix for CTE "with""

This reverts commit 718dc11.

* simplify cmd, replace env. var credit: @MaceWindu

* Fixed Sybase exception while getting database schema.

* Formatting.

* Update README.md

Corrected link to templates.

* Fixed Sybase merge tests.

* Fixed Sybase merge tests.

* Fixed merge tests.

* Merge source formatting.

* [skip ci] add recent changes to release notes

* bugfix - derived classes could not be loaded by base class type

* bugfix - bugfix inheritance queries, or query for base types is not possible

* feature - include column name in exceptions in datareader

* we could not map a inheritance to a abstract class

* Reuse aggregate metadata reader to support cases when reader was copied

* fix component mapping - fixes 1005

* Fix Component Mapping Tests so they check for correct results

* update nuget packages to use contentFiles meta

dropped linq2db.t4models (unneded)
updated NuGet.exe

* tests and fixes

* fix formatting and fix for sybase call in transaction

* Metadatareader -> use array

* Test for query via Base Type

* allow casts in loadwith

* - skip exception for AssociatedTableContext -> because a entity may not exist
- loadwith support for derived classes childs (fixes #994)

* fixes Problems with Insert, Update and Delete when using Inheritance (fixes #1017)

* Fixed tests.

* support for mapping enums as strings in string columns. (maybe later this should be configurable per column)

* a custom converter for a type should have a higher priority than the enum mapping

* support custom converters for enum types

* Implemented automatic INNER Join to LEFT Join converter for Firebird. (#1000)

* Implemented automatic INNER Join to LEFT Join converter for Firebird.

* update release notes and fix implementation

* Revert changes to linq2db and move fix to a test

* formatting

* fix build

* Dynamic columns. Fix #744, fix #507 (#1073)

* [WIP] Dynamic columns (#964)

* Dynamic columns support in (fluent) metadata.

* Dynamic column support in querying.

* Support for materialization of dynamic columns.

* Dynamic columns in update and insert.

* Clean-up.

* Cleanup 2.

* Cleanup 3.

* merge manually

* update readme, fix update regression

* fix update and work on failing tests

* fix unstable tests

* fixed merge API to return proper interface after On()

* possibility to modify entityDescriptor

* Change Invocation of Callback

* bugfix create of entity descriptor

* bugfix #1057

* Fix Test 1057

* Remove accidental commited code

This reverts commit ba63c30.

* update relase notes and small code style/documentation fixes

* spelling fix

* Added support for InnerJoin, LeftJoin, RightJoin, FullJoin and CrossJoin using linq syntax.

* update realease notes with latest changes

* update release notes

* Added test that reproduces issue #1057 (#1059)

Merging test-only PR

* Added test that reproduces issue.

* mark test with ActiveIssue

* update implementation to reflect recent changes, update release notes

* add alias support for insert target

* bugfix exception handling

* fix not-needed generation of identity-related queries for mysql, postresql and oracle

* bugfix enum converter usage

* complex tests

* fix #1057

* remove active issue so test is run

* #1092

* [ci skip] doc

* try to fix #1057

* add issue test

* update release notes with latest changes

* Added test and some fixes for Dynamic columns.

* update tests and fix issue

* update release notes

* Corrected tests for issue #1057.

* fix missing update query visitor

* revert unrelated changes

* [ci skip] update release notes

* implementation and tests

* Added possibility to use dynamic columns in queries without required storage.

* Added PrimaryKey attribute for test tables.

* Changed obsolete enumeration value ConvertType.NameToOwner to ConvertType.NameToSchema.

* Added possibility to instantiate objects in queries that works with interfaces.

* Restored original formatting.

* Bugfix for #1107

* Test for fix #1107

* One more fix with empty hour for SqlServer

* work on bulkcopy test with non-null data

* test passing

* fix enum column error in tests

* remove line

* bugfix linq2db for firebird -> reserved words

* bugfix #1110

* test for #1110

* Added a way to create ExpressionQueryImpl instance.

* Added callback for intercepting queries exactly before execution. (#1116)

Added callback for intercepting queries exactly before execution.

* update release notes

* Fixed problems with joining to grouping queries.

* release notes

* Formatting.

* Fixed AddConnection method.

* Fixed DB2 test.

* [WIP] Fail AppVeyor build on test failure (#1118)

* make tests fail

* try to fix

* remove test code

* fix tests

* Fix schema read for ACE Access databases (#1119)

* test and fix

* update release notes

* I said update release notes!

* improve test

* try to add ACE provider install  to appveyor build

* fix appveryor.yaml

* try again

* and again

* Update README.md

* Added possibility to handle third party query provider for common extensions.

* Added missed extensions. Formatting.

* add comment

* update release notes

* Added INotifyEntityCreated.

* Implemented EntityChanged as a callback.

* update release notes

* nuget packages fixes

* nuget magic

* Working on EntityChanged.

* Formatting & refactoring.

* [ci skip] update release notes

* Working on failing tests (#1120)

* fix test failing for mysql < 5.6.4

* - fix firebird identifier quotation logic

- implemented exception-free drop table for firebird
- fix firebird test issues

* Proposal for Fix GetCteTable (#1056)

* Fix GetCteTable

* improve coding guidelines

* check if fields are empty

* fix merge and update release notes

* Add identifiers quotation for informix

* revert recent quoted identifiers support commit. must be implemented properly

* merge

* Bugfix #1128

* trigger appveyor

* only read inherited when parameter is true

* fix fluent metadata reader

* Bugfix FLuentMappingBuilder

* Change Fluent Mapping builder again

* change test for 1128, this worked before

* Complexer Test for 1128

* Make Test2 fail

* fix test, so it should work with old code

* change QueryRunner to old behavior

* cleanup

* cleanup

* cleanup

* Update README.md

* Added OnTraceConnection property for tracing DataContext's connection.

* working on fluent inheritance

* Working on CreateTempTable.

* fix overzealous use of UseEnumValueNameForStringColumns

* add more tests

* fix test mappings

* enable verbose build

* wrong level or tool?

* yeah, sure

* one more time

* cleanup

configuration for tests

* LocalTable changes for firebird https://stackoverflow.com/questions/44353607

* Use anonymous type as a setter.

(cherry picked from commit 2d21906)

* changes revert

* using dotnet instead of cake

* Use anonymous type as a setter.

* revert

* [WIP] Fix Travis build (#1132)

* enable verbose build

* wrong level or tool?

* yeah, sure

* one more time

* using dotnet instead of cake

* revert

* bugfix when inheritance is used #1128 (#1127)

* Bugfix #1128

* trigger appveyor

* only read inherited when parameter is true

* fix fluent metadata reader

* Bugfix FLuentMappingBuilder

* Change Fluent Mapping builder again

* change test for 1128, this worked before

* Complexer Test for 1128

* Make Test2 fail

* fix test, so it should work with old code

* change QueryRunner to old behavior

* cleanup

* cleanup

* cleanup

* working on fluent inheritance

* fix overzealous use of UseEnumValueNameForStringColumns

* add more tests

* fix test mappings

* cleanup

configuration for tests

* LocalTable changes for firebird https://stackoverflow.com/questions/44353607

* changes revert

* release notes update, nuget version update

* restore oracle identifier quotation, update reserved words list for oracle (11g level) and firebird (3.0 level)

* restore oracle identifier quotation, update reserved words list for oracle (11g level) and firebird (3.0 level) (#1133)

* update version for RC release

* hide CTE and CreateTempTable features

* fix typo

* Delete Microsoft.Bcl.

* readme typo

* unmask temp table API

* nitpicking

* bugfix sqlserver bulkkcopy with retry, fixes #1135

* move release notes to wiki
MaceWindu referenced this issue in linq2db/linq2db May 10, 2018
* Revert "Updated nugets."

This reverts commit 670f3f3.

# Conflicts:
#	Tests/Base/Tests.Base.csproj
#	Tests/IBM.Core/Tests.IBM.Core.csproj
#	Tests/Linq/Tests.csproj

* added ActiveIssue attribute to ignore tests for known defects

* Issue #975 with invalid materialization (#977)

merging test-only PRs

* Added test for issue #975.

* mark tests with ActiveIssue attribute

* Issue with merge and Cross Join in source query (#896)

merging PRs with tests

* add issue tests

* updated tests and assigned ActiveIssue attribute

* Tests for issue #873 (#876)

merging test-only PRs

* Added tests for issue #873 

* Added missed file.

* add ActiveIssue attribute

* Test for #792 (#807)

merging test-only PRs

* test

* fix core build

* add ActiveIssue attribute

* Issue #577 (left joins parsing fails) (#600)

merging tests

* test reproducing #577

* added ActiveIssue attribute

* fix #1027 - fix compilation

* Debugging travis issue, do not merge (#1028)

fixed travis tests

* Formatting.

* Generate debug info in release.

* Disable warning.

* Fixed Informix DataProvider according to new tests.

* Fix minor typo on CONTRIBUTING.md (#1031)

Thanks!

* Added experimental calculated columns.

* Fix #986 + typed source projections support (#1033)

* fix #986 + typed source projections support

* add more source projection tests

* refactorings

* fixed cross-join/select-many merge sources + extra test for existing issue

* fix couple of tests and remove debug call

* validate that OnTargetKey called for table with primary key columns

* avoid binary literals in merge source

* Added ComparerBuilder.

* Formatting.

* Use ComparerBuilder.

* Working on Calculated Columns.

* fix #1030

* fix join tests failure when no runnable providers configured

* better join tests workaround from nunit team

* fix miniprofiler example

* spaces...

* Update README.md

* Corrected InheritanceMapping transformation.

* update readme with recent changes

* Corrected changes for Issue #1026 (#1045)

* implementation without tests

* fixes and a test method

* Corrected formatting. Added new unit tests.

* Unified parameter order. Corrected tests.

* Corrected tests.

* update release notes, enable new tests for all providers

* Added missed MySql's Schema procedures definition. (#993)

* Added missed MySql's Schema procedures definition.

* - added tests and fixed schema provider to pass them

- added xml docs to schema classes

* rewrited procedure schema load to raw queries for MySql, as MySql provider's implementation unusable due to a lot of bugs and doesn't behave consistently between different server versions

* Update README.md

* Formatting and refactoring.

* Working on Calculated Columns.

* Deleted unused code.

* Updated CalculatedColumn test.

* Moved Merge extension to the root namespace.

* Enabled options.KeepIdentity parameter for many DataProviders. (#1037)

* Enabled options.KeepIdentity parameter for many DataProviders.

* Reverted changes for providers. And corrected enforceKeepIdentity flag usage.

* tests

* add exception when KeepIdentity=true is not supported (initial work)

* working on tests

* fixed DB2 test and SAP HANA provider

* SQL CE support

* Firebird fixes

* "fix" Oracle tests

* fix tests for postgres

* fix incorrect Keepidentity value in test

* remove enforceKeepIdentity parameter

* Fixed data corruption while getting stored procedure schema parameters.

* Fix execute cmd outside of script folder (done right) (#1055)

* Fix calling Compile.cmd out of root folder

* remove comment from Compile.cmd
add scriptpath variable to build

* Fix for CTE "with"

* Revert "Fix for CTE "with""

This reverts commit 718dc11.

* simplify cmd, replace env. var credit: @MaceWindu

* Fixed Sybase exception while getting database schema.

* Formatting.

* Update README.md

Corrected link to templates.

* Fixed Sybase merge tests.

* Fixed Sybase merge tests.

* Fixed merge tests.

* Merge source formatting.

* [skip ci] add recent changes to release notes

* bugfix - derived classes could not be loaded by base class type

* bugfix - bugfix inheritance queries, or query for base types is not possible

* feature - include column name in exceptions in datareader

* we could not map a inheritance to a abstract class

* Reuse aggregate metadata reader to support cases when reader was copied

* fix component mapping - fixes 1005

* Fix Component Mapping Tests so they check for correct results

* update nuget packages to use contentFiles meta

dropped linq2db.t4models (unneded)
updated NuGet.exe

* tests and fixes

* fix formatting and fix for sybase call in transaction

* Metadatareader -> use array

* Test for query via Base Type

* allow casts in loadwith

* - skip exception for AssociatedTableContext -> because a entity may not exist
- loadwith support for derived classes childs (fixes #994)

* fixes Problems with Insert, Update and Delete when using Inheritance (fixes #1017)

* Fixed tests.

* support for mapping enums as strings in string columns. (maybe later this should be configurable per column)

* a custom converter for a type should have a higher priority than the enum mapping

* support custom converters for enum types

* Implemented automatic INNER Join to LEFT Join converter for Firebird. (#1000)

* Implemented automatic INNER Join to LEFT Join converter for Firebird.

* update release notes and fix implementation

* Revert changes to linq2db and move fix to a test

* formatting

* fix build

* Dynamic columns. Fix #744, fix #507 (#1073)

* [WIP] Dynamic columns (#964)

* Dynamic columns support in (fluent) metadata.

* Dynamic column support in querying.

* Support for materialization of dynamic columns.

* Dynamic columns in update and insert.

* Clean-up.

* Cleanup 2.

* Cleanup 3.

* merge manually

* update readme, fix update regression

* fix update and work on failing tests

* fix unstable tests

* fixed merge API to return proper interface after On()

* possibility to modify entityDescriptor

* Change Invocation of Callback

* bugfix create of entity descriptor

* bugfix #1057

* Fix Test 1057

* Remove accidental commited code

This reverts commit ba63c30.

* update relase notes and small code style/documentation fixes

* spelling fix

* Added support for InnerJoin, LeftJoin, RightJoin, FullJoin and CrossJoin using linq syntax.

* update realease notes with latest changes

* update release notes

* Added test that reproduces issue #1057 (#1059)

Merging test-only PR

* Added test that reproduces issue.

* mark test with ActiveIssue

* update implementation to reflect recent changes, update release notes

* add alias support for insert target

* bugfix exception handling

* fix not-needed generation of identity-related queries for mysql, postresql and oracle

* bugfix enum converter usage

* complex tests

* fix #1057

* remove active issue so test is run

* #1092

* [ci skip] doc

* try to fix #1057

* add issue test

* update release notes with latest changes

* Added test and some fixes for Dynamic columns.

* update tests and fix issue

* update release notes

* Corrected tests for issue #1057.

* fix missing update query visitor

* revert unrelated changes

* [ci skip] update release notes

* implementation and tests

* Added possibility to use dynamic columns in queries without required storage.

* Added PrimaryKey attribute for test tables.

* Changed obsolete enumeration value ConvertType.NameToOwner to ConvertType.NameToSchema.

* Added possibility to instantiate objects in queries that works with interfaces.

* Restored original formatting.

* Bugfix for #1107

* Test for fix #1107

* One more fix with empty hour for SqlServer

* work on bulkcopy test with non-null data

* test passing

* fix enum column error in tests

* remove line

* bugfix linq2db for firebird -> reserved words

* bugfix #1110

* test for #1110

* Added a way to create ExpressionQueryImpl instance.

* Added callback for intercepting queries exactly before execution. (#1116)

Added callback for intercepting queries exactly before execution.

* update release notes

* Fixed problems with joining to grouping queries.

* release notes

* Formatting.

* Fixed AddConnection method.

* Fixed DB2 test.

* [WIP] Fail AppVeyor build on test failure (#1118)

* make tests fail

* try to fix

* remove test code

* fix tests

* Fix schema read for ACE Access databases (#1119)

* test and fix

* update release notes

* I said update release notes!

* improve test

* try to add ACE provider install  to appveyor build

* fix appveryor.yaml

* try again

* and again

* Update README.md

* Added possibility to handle third party query provider for common extensions.

* Added missed extensions. Formatting.

* add comment

* update release notes

* Added INotifyEntityCreated.

* Implemented EntityChanged as a callback.

* update release notes

* nuget packages fixes

* nuget magic

* Working on EntityChanged.

* Formatting & refactoring.

* [ci skip] update release notes

* Working on failing tests (#1120)

* fix test failing for mysql < 5.6.4

* - fix firebird identifier quotation logic

- implemented exception-free drop table for firebird
- fix firebird test issues

* Proposal for Fix GetCteTable (#1056)

* Fix GetCteTable

* improve coding guidelines

* check if fields are empty

* fix merge and update release notes

* Add identifiers quotation for informix

* revert recent quoted identifiers support commit. must be implemented properly

* merge

* Bugfix #1128

* trigger appveyor

* only read inherited when parameter is true

* fix fluent metadata reader

* Bugfix FLuentMappingBuilder

* Change Fluent Mapping builder again

* change test for 1128, this worked before

* Complexer Test for 1128

* Make Test2 fail

* fix test, so it should work with old code

* change QueryRunner to old behavior

* cleanup

* cleanup

* cleanup

* Update README.md

* Added OnTraceConnection property for tracing DataContext's connection.

* working on fluent inheritance

* Working on CreateTempTable.

* fix overzealous use of UseEnumValueNameForStringColumns

* add more tests

* fix test mappings

* enable verbose build

* wrong level or tool?

* yeah, sure

* one more time

* cleanup

configuration for tests

* LocalTable changes for firebird https://stackoverflow.com/questions/44353607

* Use anonymous type as a setter.

(cherry picked from commit 2d21906)

* changes revert

* using dotnet instead of cake

* Use anonymous type as a setter.

* revert

* [WIP] Fix Travis build (#1132)

* enable verbose build

* wrong level or tool?

* yeah, sure

* one more time

* using dotnet instead of cake

* revert

* bugfix when inheritance is used #1128 (#1127)

* Bugfix #1128

* trigger appveyor

* only read inherited when parameter is true

* fix fluent metadata reader

* Bugfix FLuentMappingBuilder

* Change Fluent Mapping builder again

* change test for 1128, this worked before

* Complexer Test for 1128

* Make Test2 fail

* fix test, so it should work with old code

* change QueryRunner to old behavior

* cleanup

* cleanup

* cleanup

* working on fluent inheritance

* fix overzealous use of UseEnumValueNameForStringColumns

* add more tests

* fix test mappings

* cleanup

configuration for tests

* LocalTable changes for firebird https://stackoverflow.com/questions/44353607

* changes revert

* release notes update, nuget version update

* restore oracle identifier quotation, update reserved words list for oracle (11g level) and firebird (3.0 level)

* restore oracle identifier quotation, update reserved words list for oracle (11g level) and firebird (3.0 level) (#1133)

* update version for RC release

* hide CTE and CreateTempTable features

* fix typo

* Delete Microsoft.Bcl.

* readme typo

* unmask temp table API

* nitpicking

* bugfix sqlserver bulkkcopy with retry, fixes #1135

* move release notes to wiki

* update version

* fix release version
MaceWindu referenced this issue in linq2db/linq2db May 17, 2018
* bugfix - bugfix inheritance queries, or query for base types is not possible

* feature - include column name in exceptions in datareader

* we could not map a inheritance to a abstract class

* Reuse aggregate metadata reader to support cases when reader was copied

* fix component mapping - fixes 1005

* Fix Component Mapping Tests so they check for correct results

* update nuget packages to use contentFiles meta

dropped linq2db.t4models (unneded)
updated NuGet.exe

* tests and fixes

* fix formatting and fix for sybase call in transaction

* Metadatareader -> use array

* Test for query via Base Type

* allow casts in loadwith

* - skip exception for AssociatedTableContext -> because a entity may not exist
- loadwith support for derived classes childs (fixes #994)

* fixes Problems with Insert, Update and Delete when using Inheritance (fixes #1017)

* Fixed tests.

* support for mapping enums as strings in string columns. (maybe later this should be configurable per column)

* a custom converter for a type should have a higher priority than the enum mapping

* support custom converters for enum types

* Implemented automatic INNER Join to LEFT Join converter for Firebird. (#1000)

* Implemented automatic INNER Join to LEFT Join converter for Firebird.

* update release notes and fix implementation

* Revert changes to linq2db and move fix to a test

* formatting

* fix build

* Dynamic columns. Fix #744, fix #507 (#1073)

* [WIP] Dynamic columns (#964)

* Dynamic columns support in (fluent) metadata.

* Dynamic column support in querying.

* Support for materialization of dynamic columns.

* Dynamic columns in update and insert.

* Clean-up.

* Cleanup 2.

* Cleanup 3.

* merge manually

* update readme, fix update regression

* fix update and work on failing tests

* fix unstable tests

* fixed merge API to return proper interface after On()

* possibility to modify entityDescriptor

* Change Invocation of Callback

* bugfix create of entity descriptor

* bugfix #1057

* Fix Test 1057

* Remove accidental commited code

This reverts commit ba63c30.

* update relase notes and small code style/documentation fixes

* spelling fix

* Added support for InnerJoin, LeftJoin, RightJoin, FullJoin and CrossJoin using linq syntax.

* update realease notes with latest changes

* update release notes

* Added test that reproduces issue #1057 (#1059)

Merging test-only PR

* Added test that reproduces issue.

* mark test with ActiveIssue

* update implementation to reflect recent changes, update release notes

* add alias support for insert target

* bugfix exception handling

* fix not-needed generation of identity-related queries for mysql, postresql and oracle

* bugfix enum converter usage

* complex tests

* fix #1057

* remove active issue so test is run

* #1092

* [ci skip] doc

* try to fix #1057

* add issue test

* update release notes with latest changes

* Added test and some fixes for Dynamic columns.

* update tests and fix issue

* update release notes

* Corrected tests for issue #1057.

* fix missing update query visitor

* revert unrelated changes

* [ci skip] update release notes

* implementation and tests

* Added possibility to use dynamic columns in queries without required storage.

* Added PrimaryKey attribute for test tables.

* Changed obsolete enumeration value ConvertType.NameToOwner to ConvertType.NameToSchema.

* Added possibility to instantiate objects in queries that works with interfaces.

* Restored original formatting.

* Bugfix for #1107

* Test for fix #1107

* One more fix with empty hour for SqlServer

* work on bulkcopy test with non-null data

* test passing

* fix enum column error in tests

* remove line

* bugfix linq2db for firebird -> reserved words

* bugfix #1110

* test for #1110

* Added a way to create ExpressionQueryImpl instance.

* Added callback for intercepting queries exactly before execution. (#1116)

Added callback for intercepting queries exactly before execution.

* update release notes

* Fixed problems with joining to grouping queries.

* release notes

* Formatting.

* Fixed AddConnection method.

* Fixed DB2 test.

* [WIP] Fail AppVeyor build on test failure (#1118)

* make tests fail

* try to fix

* remove test code

* fix tests

* Fix schema read for ACE Access databases (#1119)

* test and fix

* update release notes

* I said update release notes!

* improve test

* try to add ACE provider install  to appveyor build

* fix appveryor.yaml

* try again

* and again

* Update README.md

* Added possibility to handle third party query provider for common extensions.

* Added missed extensions. Formatting.

* add comment

* update release notes

* Added INotifyEntityCreated.

* Implemented EntityChanged as a callback.

* update release notes

* nuget packages fixes

* nuget magic

* Working on EntityChanged.

* Formatting & refactoring.

* [ci skip] update release notes

* Working on failing tests (#1120)

* fix test failing for mysql < 5.6.4

* - fix firebird identifier quotation logic

- implemented exception-free drop table for firebird
- fix firebird test issues

* Proposal for Fix GetCteTable (#1056)

* Fix GetCteTable

* improve coding guidelines

* check if fields are empty

* fix merge and update release notes

* Add identifiers quotation for informix

* revert recent quoted identifiers support commit. must be implemented properly

* merge

* Working on CTE.

* Bugfix #1128

* trigger appveyor

* only read inherited when parameter is true

* fix fluent metadata reader

* Bugfix FLuentMappingBuilder

* Change Fluent Mapping builder again

* change test for 1128, this worked before

* Complexer Test for 1128

* Added delayed object serialization .

* Make Test2 fail

* fix test, so it should work with old code

* change QueryRunner to old behavior

* Use anonymous type as a table source.

* cleanup

* cleanup

* cleanup

* Update README.md

* Working on CTE.

* Added OnTraceConnection property for tracing DataContext's connection.

* working on fluent inheritance

* Fixed oracle Delete with CTE.

* Working on CreateTempTable.

* fix overzealous use of UseEnumValueNameForStringColumns

* add more tests

* fix test mappings

* enable verbose build

* wrong level or tool?

* yeah, sure

* one more time

* cleanup

configuration for tests

* LocalTable changes for firebird https://stackoverflow.com/questions/44353607

* Use anonymous type as a setter.

(cherry picked from commit 2d21906)

* changes revert

* using dotnet instead of cake

* Use anonymous type as a setter.

* revert

* [WIP] Fix Travis build (#1132)

* enable verbose build

* wrong level or tool?

* yeah, sure

* one more time

* using dotnet instead of cake

* revert

* bugfix when inheritance is used #1128 (#1127)

* Bugfix #1128

* trigger appveyor

* only read inherited when parameter is true

* fix fluent metadata reader

* Bugfix FLuentMappingBuilder

* Change Fluent Mapping builder again

* change test for 1128, this worked before

* Complexer Test for 1128

* Make Test2 fail

* fix test, so it should work with old code

* change QueryRunner to old behavior

* cleanup

* cleanup

* cleanup

* working on fluent inheritance

* fix overzealous use of UseEnumValueNameForStringColumns

* add more tests

* fix test mappings

* cleanup

configuration for tests

* LocalTable changes for firebird https://stackoverflow.com/questions/44353607

* changes revert

* release notes update, nuget version update

* restore oracle identifier quotation, update reserved words list for oracle (11g level) and firebird (3.0 level)

* restore oracle identifier quotation, update reserved words list for oracle (11g level) and firebird (3.0 level) (#1133)

* update version for RC release

* hide CTE and CreateTempTable features

* fix typo

* Delete Microsoft.Bcl.

* readme typo

* unmask temp table API

* nitpicking

* bugfix sqlserver bulkkcopy with retry, fixes #1135

* switch unittests to use localtable

* Removed LocalTable class and replaced with TempTable implementation.

* Bugfix Bulk Copy (Proxy is IDbConnection)

* Corrected tests to use CreateLocalTable function.

* Replaced LocalTable class usage by CreateLocalTable function.

* Fixed bug with type detection.

* Update README.md

* Update README.md

* move release notes to wiki

* update version

* fix release version

* Added method for retrieving already registered providers.

* Made SqlExtensions public

* Tests cleanup.

* update nuget version

* remove unused file, merged from old PR

* xml docs for temp table API (#1147)

* CTE SQL formatting.

* Added predicate optimization for NOT operator.

* Moved method OptimizePredicate to BasicSqlOptimizer.

* Fixed / disable CTE tests.

* CTE doc.

* Fixed CTE serialization.

* Clean up PublicAPI.

* Formatting.

* Updated nugets.

* Fixed calculated columns population in case of one to many association.

* CTE doc.

* Added CreateLocalTable overload.

* Working on predicate bug.

* Working on predicate bug.

* Fix merge with empty source (#1153)

* test and fix merge with empty local source and different types of source and target

* use a bit better table name

* Fix failing tests [part 2] (#1148)

* fix DB2 tests that count parameters in generated SQL

* unblock merge test by moving orderby issue to separate ActiveIssue test

* add debug information to oracle test, that requires environment pre-configuration

* disable cross-join tests for Sybase using ActiveIssue attribute

* fix firebird tests with table recreate once more

* manually add tests from #364

* tabs vs spaces saga: war... war never ends...

* add test from #416

* fix CI

* disable tests for unsupported providers

* add broken test notes

* merge pr1154
@MaceWindu MaceWindu transferred this issue from linq2db/linq2db May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants