This file contains hidden or 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 Demo | |
{ | |
public class Application | |
{ | |
private readonly IContainer container; | |
public Application() | |
{ | |
ContainerBuilder builder = new ContainerBuilder(); | |
builder.RegisterType<Biscuit>().As<IDependency>().Named<IDependency>("biscuits"); |
This file contains hidden or 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
// You could use a module to describe all the dependenices in some api dll and make | |
// it easier to load all components from that project. | |
public class ApiModule : Module | |
{ | |
protected override void Load(ContainerBuilder builder) | |
{ | |
builder.Register<UserManager>().As<IUserManager>(); | |
builder.Register<QasAddressService>().As<IAddressSearchService>(); | |
// Anything else required. |
This file contains hidden or 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
-- With help from the internet and manning press! | |
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED | |
select | |
ROUND(s.avg_total_user_cost * s.avg_user_impact * (s.user_seeks + s.user_scans),0) as Cost, | |
d.[statement] as TableName, | |
equality_columns, | |
inequality_columns, | |
included_columns |
This file contains hidden or 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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "#428bca", | |
"@brand-success": "#5cb85c", |