Skip to content

New helpers, MD5, and some cleanup

Compare
Choose a tag to compare
@danielgindi danielgindi released this 13 May 14:31
· 552 commits to master since this release
  • New MD5 phrase, under dg.Sql.Phrases.Encoding
  • Changed many function argument names to lowerCase for CLS compliance.
  • Exposed Phrase private members for public usage
  • Added a CreateIndex helper that accepts an index'es name - and looks for the Index object by itself
  • Old Join overloads which do not Accept JoinColumnPairs are marked as Obsolete
  • New Join overloads for InnerJoin(...), LeftJoin(...), RightJoin(...) etc.
  • TableSchema.SchemaName renamed to TableSchema.Name. Old property still works.
  • AbstractRecord.TableSchema renamed to AbstractRecord.Schema. Old property still works.
  • New SchemaName property in AbstractRecord for convenience. Points at Schema.Name
  • New ExecuteCollection(...) helper in Query, to return an AbstractRecordList of a type
  • New constructor overloads for common Phrases
  • New PhraseHelper class with static constructors of common Phrases
  • Breaking change: In the VSIX DAL class generator, both FetchByID and Delete functions are now generated with the connection argument at the end. This is to keep consistency with the way it works in other functions across the library, and to allow a default value of null.

Quick tip:
If you want to migrate all old Join syntaxes to the new one, you can use a replace like this:
"Replace in Files", "Entire Solution", mark the "Regular Expression" box.
Find: \.Join\(([^,]+),\s*([^,]+\.(?:TableSchema|Schema)),\s*([^,]+),\s*([^,]+\.SchemaName|"[^"]+"),\s*([^,]+\.(?:TableSchema|Schema)),\s*([^,]+),\s*([^,]+\.SchemaName|"[^"]+")\)
Replace With: .Join($1, $5, $7, new JoinColumnPair($2, $3, $6))