This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
editor = code --wait | |
[alias] | |
co = checkout | |
st = status | |
ec = config --global -e | |
up = !git pull --rebase --prune $@ && git submodule update --init --recursive | |
cob = checkout -b | |
cm = !git add -A && git commit -m | |
save = !git add -A && git commit -m 'SAVEPOINT' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DEVisIT.DapperMultiMap.Entities | |
{ | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
[DebuggerDisplay("{Id} {Name}")] | |
class Category | |
{ | |
public Category() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.Scan(scan => scan | |
.FromCallingAssembly() // 1. Find the concrete classes | |
.AddClasses() // to register | |
.UsingRegistrationStrategy(RegistrationStrategy.Skip) // 2. Define how to handle duplicates | |
.AsSelf() // 2. Specify which services they are registered as | |
.WithTransientLifetime()); // 3. Set the lifetime for the services | |
// Registra tutte le classi, quando richiesta la loro interfaccia | |
services.Scan(scan => | |
scan.FromCallingAssembly() |