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 class Db : DbContext | |
| { | |
| public Db() : base("Db") | |
| { | |
| Configuration.LazyLoadingEnabled = true; | |
| } | |
| public DbSet<Foo> Foos { get; set; } | |
| public DbSet<Bar> Bars { get; set; } | |
| } |
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
| var client = new ServiceClientAsync(); | |
| var data = await client.GetDataAsync(10); |
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
| var officeCacheDir = ConfigurationManager.AppSettings[OfficeCacheFolderKey]; | |
| var maxAgeMinutes = int.Parse(ConfigurationManager.AppSettings[LastAccessTimeMinutesBeforeDeleteKey]); | |
| while (true) | |
| { | |
| string[] files = Directory.GetFiles(officeCacheDir).Where(file => Regex.IsMatch(file, @"^.+\.(FSD|FSF)$")).ToArray(); | |
| Console.WriteLine("Found {0} files", files.Length); | |
| var deletedCount = 0; | |
| foreach (string file in files) | |
| { |
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
| .splash { | |
| display: none; | |
| } | |
| [ng-cloak].splash { | |
| display: block !important; | |
| } | |
| .splash { | |
| position: absolute; |
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
| Database.SetInitializer( | |
| new MigrateDatabaseToLatestVersion<AppDbContext, Configuration>()); |
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 interface IMetaWeblogClient | |
| { | |
| Task<Post> GetPostAsync(string postId); | |
| Task<IEnumerable<Post>> GetRecentPostsAsync(int numberOfPosts); | |
| } |
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
| Blog post - http://ajden.towfeek.se/post/become-your-own-root-certificate-authority-and-create-self-signed-ssl-certificates |
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
| .flex-video { | |
| position: relative; | |
| padding-top: 25px; | |
| padding-bottom: 67.5%; | |
| height: 0; | |
| margin-bottom: 16px; | |
| overflow: hidden; | |
| } | |
| .flex-video.widescreen { padding-bottom: 57.25%; } |
NewerOlder