Laurents Meyer
f55710825c
Add docker files for testing. ( #153 )
2 years ago
Laurents Meyer
effd58934f
Add `FixedTestOrder` msbuild property to build/run tests in a deterministic order.
2 years ago
Laurents Meyer
ca8472c96e
Fix ExecuteNonQuery() return value logic to be case sensitivity proof.
2 years ago
Laurents Meyer
84c47a04c4
Revert "Fix build errors."
...
This reverts commit ad5dbd8117 .
2 years ago
Laurents Meyer
ad5dbd8117
Fix build errors.
2 years ago
Laurents Meyer
7f397d8e63
Fix .NET SDK install for NuGet job.
2 years ago
Christopher Jolly
b4c07a382c
Merge branch 'master' of https://github.com/bubibubi/EntityFrameworkCore.Jet
2 years ago
Christopher Jolly
67f98ee8ac
More test updates
2 years ago
Christopher Jolly
59d2870996
Forgot to change the sdk version
2 years ago
Laurents Meyer
7bc7ee3708
Revert pull-in of GearsOfWar related classes and remove constraint ( #145 )
...
* Revert pull-in of GearsOfWar related classes.
* Clean-up GearsOfWar fixtures.
* Drop constraint to workaround Jet limitation regarding compound foreign keys and NULL.
* Fix SQL assertions.
* Revert "Add code to add a "MatchSimple" annotation to a foreign key", because it doesn't do anything at the moment.
This reverts commit 76408338e0 .
2 years ago
Laurents Meyer
955d73d0ec
Fix data tests.
2 years ago
Christopher Jolly
f95ccf1edb
Merge branch 'master' of https://github.com/bubibubi/EntityFrameworkCore.Jet
2 years ago
Christopher Jolly
2316fbbf2e
Test updates
2 years ago
Laurents Meyer
0edbe53ba2
Fix matrix names.
2 years ago
Laurents Meyer
a3dee58d42
Fix matrix names. ( #146 )
2 years ago
Christopher Jolly
0ddfe1ce3b
Update to .Net 8 RC2
2 years ago
Christopher Jolly
331da3810e
Forgot the case of the parameter having NullTypeMapping. In that case go with adding the conversion
2 years ago
Christopher Jolly
6f31403f13
Merge branch 'master' of https://github.com/bubibubi/EntityFrameworkCore.Jet
2 years ago
Christopher Jolly
a16569f65b
Add some further testbases
2 years ago
Christopher Jolly
ed50bb0dfa
Only add the date conversion if the type mapping is also a datetime
2 years ago
Laurents Meyer
2155c12963
Update branding to 8.0.0-alpha.2.
2 years ago
Laurents Meyer
914bd5a2ee
Fix namespace.
2 years ago
Laurents Meyer
f086526d02
Fix and update dependencies and project files. ( #144 )
2 years ago
Christopher Jolly
01775d1b2f
Implement Degrees to Radians and Radians to Degrees by first principal as there is no inbulilt function. Thankfully it is not a difficult calculation
2 years ago
Christopher Jolly
009b9de606
Add some further test classes that JetComplianceTest is not finding implemented
2 years ago
Christopher Jolly
bb90784c11
If we can get a numeric out of the ComputedColumnSql string then we know it is a numeric constant. We can transfer that to DefaultValue in this case
2 years ago
Christopher Jolly
1df474d720
Some minor test fixups
2 years ago
Christopher Jolly
cd320052ce
Update tests
2 years ago
Christopher Jolly
a6d9058c05
Some date and time updates
...
- Don't derive Timespan and DateTimeOffset type mapping from our JetDateTimeTypeMapping. We can derive from the normal base class for those types
- DateTimeOffset is now mapped to a string. This allows us to round-trip all the details, however any calculations or queries for any components do not work
2 years ago
Christopher Jolly
0d4f61e3fd
The dateAdd function can not take null for the amount to add. Coalesce to 0
2 years ago
Christopher Jolly
80973bb3c8
When generating the SELECT, to select the values of the newly inserted row we only are able to use the first key column with @@identity
2 years ago
Christopher Jolly
08718b8165
Convert a null constant in a projection to a variant. We only do this if the type is meant to be a numeric. This is because NULL on its own has some issues when unioning with int values. Some joins with this issue were fixed in an earlier commit
2 years ago
Christopher Jolly
4fc2cb55b7
Extract column expression from UnaryExpression as well
2 years ago
Christopher Jolly
ab3449349f
No need to wrap an expression in a CaseExpression (generating IIF...) if the expression we are meant to be checking is a non-null constant expression
2 years ago
Christopher Jolly
c1d263aedc
Initial support for DateOnly/TimeOnly
2 years ago
Christopher Jolly
ba913012ce
The default value for DateTime in Jet is 30/12/1899 . When we save if we get a 1/1/001 we translate to this value. When reading we need to do the reverse translation
2 years ago
Christopher Jolly
2b937ef4ae
Do not compare the Timeline property when checking if Mission is equal. This is a DateTimeOffset and we currently don't have good round-trip support for this type without losing info
2 years ago
Christopher Jolly
b1bffdff8c
Update tests
2 years ago
Christopher Jolly
352734a537
Update the base Gears of War to be synced with .Net RC1
2 years ago
Christopher Jolly
0211d16ea1
Update some tests due to .Net 8 changing the order of certain phrases
2 years ago
Christopher Jolly
02886b2570
Add our own GearsOfWar set of base classes and models. This allows us to modify it so that we can work around the complex/multi-field foreign key set up it uses so that we can use our own Match Simple mode rather than the Match Full mode Jet normally does.
...
See the readme in the CustomBaseTests for full details
2 years ago
Christopher Jolly
76408338e0
Add code to add a "MatchSimple" annotation to a foreign key
2 years ago
Christopher Jolly
5b591b73fd
UNIONing projection with a numeric column to another projection that specifically projects NULL the the same name as a numeric field, the JOINING that to another table can leave that numeric field as another data type (NULL is not a numeric data type). Hence when using that supposedly numeric field in the join predicat against another numeric field we get a data type mismatch.
...
We try to detect this and when visiting the column (but only if we are within a binary expression and not a projection) we quickly wrap it in a convert function to make it properly numeric
The top/outer projection of this field can still be in a non numeric format, but JetDataReader is able to handle that. Would be better to produce the correctly converted data output anyway
2 years ago
Christopher Jolly
cae7f8372b
Add Check_all_tests_overridden to more test classes and ensure that it passes
2 years ago
Christopher Jolly
3191ca6851
Fix some conversion errors when getting a numeric value. See detailed notes in the GetInt32 function
2 years ago
Christopher Jolly
a594e2f81f
DISTINCT AND TOP can't be in the same stateement with Jet. Push DISTINCT into a subquery
2 years ago
Christopher Jolly
2281916b88
Fix generating sets (union, intersect). The code was originally executing and returning before it could handle adding the SQL for the Alias in (including wrapping the section in brackets). This realigns with how the parent VisitSelect works
2 years ago
Christopher Jolly
d78256f53d
update tests
2 years ago
Christopher Jolly
a2dc62d12d
Fix the formatting for a string literal of a byte
2 years ago
Christopher Jolly
1090ee3b8f
Make sure the start index for Instr is set. Normally is optional but it seems some sections seem to prefer it to be defined
2 years ago