Skip to content

Instantly share code, notes, and snippets.

@yfakariya
yfakariya / MicrosoftExtensionsOptionsDeepDive.md
Created November 4, 2019 11:44
Deep dive of Microsoft.Extensions.Options in Japanese

Microsoft.Extensions.Options Deep Dive

最近は .NET Core の仕事をしています。

さて、ASP.NET Core を使っていると、とりあえず構成情報みたいなものは IOptions<TOptions> で受け取っておけみたいな雑な話を目にします。 一応 公式のドキュメント はあるのですが、正直読んでもよくわからない。柔軟なんだねー、なるほどねーみたいな感じになりました。なので、ここではできる限り(?)網羅的に解説してみようと思います。

  • IOptions<TOptions> って何?(TOptions を直接注入すればいいじゃん)
  • IOptionsSnapshot<TOptions> とかたくさんあってよくわかんない
  • オプションの動的更新に必要なものは?
@CMCDragonkai
CMCDragonkai / sql_foreign_key_relationships.md
Last active April 12, 2024 18:56
SQL Foreign Key Relationships #sql #mysql #postgresql

SQL Foreign Key Relationships

We can use foreign keys to represent:

  • 1 - 1 (invertible injective relationship a.k.a. bijective relationship)
  • 1 - 0,1 (partially injective relationship or partially surjective relationship)
  • 1 - * (0 or more)
  • 1 - + (1 or more)
  • M - N