Releases: danielgindi/SequelNet
Releases · danielgindi/SequelNet
Added support for Async versions
Everything now has Async options, including CancellationTokens.
Migration notes:
- If you're on v1, first migrate to v2.
- Replace
public override void Insert(ConnectorBase conn = null, string userName = null)->override void Insert(ConnectorBase conn = null) - Replace
public override void Update(ConnectorBase conn = null, string userName = null)->override void Update(ConnectorBase conn = null) - To get full performance and customization options for Async implementations as well - regenerate the class's code with the VSIX extension.
Renamed to SequelNet, moved to .NET Standard, -> Nuget
- Moved to .NET Standard
- Removed all
Obsoletestuff - Some internal refactoring
- Renamed to
SequelNet - Distributed through NuGet now
Migration notes:
- Take care of any
Obsoletewarning from the compiler (With a clean Rebuild you will get them all) - Remove
dg.Sqlreferences - Add
SequelNet, and the appropriate connector from NuGet - Replace in all files the following:
dg.Sql->SequelNetoverride void Insert(ConnectorBase conn)->override void Insert(ConnectorBase conn = null, string userName = null)override void Update(ConnectorBase conn)->override void Update(ConnectorBase conn = null, string userName = null)override TableSchema GetTableSchema->override TableSchema GenerateTableSchema([a-zA-Z_0-9]+)FromDb\(reader\[Columns\.([a-zA-Z_0-9]+)\]\)->reader.Get$1(Columns.$2)IsNull\(reader\[Columns\.([a-zA-Z_0-9]+)\]\) \? \(([a-zA-Z_0-9]+)\?\)null : Convert\.To(\2|Single|Boolean)\(reader\[Columns\.\1\]\)->reader.Get$3OrNull(Columns.$1)IsNull\(reader\[Columns\.([a-zA-Z_0-9]+)\]\) \? \(float\?\)null : Convert\.ToSingle\(reader\[Columns\.\1\]\)->reader.GetFloatOrNull(Columns.$1)IsThisANewRecord = false;->MarkOld();\.TableSchema\b->\.SchemaDataReaderBase->DataReader
Improved handling of Enums
1.4.8 1.4.8
Refactored Query constructors, connector updates
Updated MySql.Data to 8.0.17
Updated Npgsql to 4.0.8
`NullSafeEqualsTo`/`NullSafeNotEqualsTo`, and generic `ExecuteScalar`
More JoinColumnPair overloads, and new @SnakeColumnNames macro option
Support for PhraseHelper.Union in a Join
A few bugfixes for migrations
Bugfix for issue introduced in 1.4.1
1.4.2 1.4.2
(Avoid, use 1.4.2) Improvements to migrations and to UPDATE query
- Allow custom migrations filter
- Allow using table name on the left side in
UPDATE ... SET table.column = table2.column ..., when there are join.