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
public static class GenericHelpers | |
{ | |
public static HtmlTemplate HtmlTemplate(this HtmlHelper html, object htmlAttributes) | |
{ | |
return new HtmlTemplate(html, htmlAttributes); | |
} | |
} |
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
/*db.Blogs | |
.Include("Posts") | |
.Include("Posts.Comments") | |
.Where(x => x.Id == 1) | |
.ToList();*/ | |
SELECT [Project2].[Id] AS [Id], |
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
// Basic interfaces | |
/// <summary> | |
/// Wrapper of repository acces | |
/// </summary> | |
/// <typeparam name="T"></typeparam> | |
public interface IDataRepository<T> where T : class | |
{ | |
/// <summary> |
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
RunConfiguration cfg = RunnerConfigurator.New( | |
x => | |
{ | |
x.ConfigureService<SomeClass>(c => | |
{ | |
c.WhenStarted(s => s.BootHost()); | |
c.WhenStopped(s => s.ShutDownHost()); | |
c.WhenPaused(s => s.ShutDownHost()); | |
c.WhenContinued(s => s.BootHost()); | |
c.HowToBuildService( |
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
class A | |
{ | |
private object _locker = new object(); | |
public event EventHandler Bang; | |
public void Foo() | |
{ | |
new Thread(() => | |
{ |
NewerOlder