By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
class SubtitleTools{ | |
string _filePath = string.Empty; | |
public PersianSubtitle(string filePath){ | |
if (Path.GetExtension(filePath) != ".srt"){ | |
Console.WriteLine("Unknown file type!"); | |
} | |
} | |
public void ToPersian(){ |
namespace App.Data.Migrations | |
{ | |
internal sealed class Configuration : DbMigrationsConfiguration<DataContext> | |
{ | |
public Configuration() | |
{ | |
AutomaticMigrationsEnabled = false; | |
SetSqlGenerator("System.Data.SqlClient", new CustomSqlServerMigrationSqlGenerator()); | |
} | |
} |
using System; | |
namespace CSharpVitamins | |
{ | |
/// <summary> | |
/// Represents a globally unique identifier (GUID) with a | |
/// shorter string value. Sguid | |
/// </summary> | |
public struct ShortGuid | |
{ |
namespace Scheduler | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Scheduling.ScheduleWithEnd(); | |
Scheduling.ScheduleWithoutEnd(); | |
Console.ReadKey(); |
public class CreateTableDto | |
{ | |
[Required] | |
[StringLength(50)] | |
public string Name { get; set; } | |
[StringLength(200)] | |
public string Description { get; set; } | |
[Required] |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Data.Sqlite; | |
using Microsoft.EntityFrameworkCore; | |
namespace drkarami | |
{ |
{"lastUpload":"2019-06-28T20:44:45.678Z","extensionVersion":"v3.3.1"} |
ALTER DATABASE [ConfigurationDb_Staging] | |
ADD FILEGROUP January | |
GO | |
ALTER DATABASE [ConfigurationDb_Staging] | |
ADD FILEGROUP February | |
GO | |
ALTER DATABASE [ConfigurationDb_Staging] | |
ADD FILEGROUP March | |
GO | |
ALTER DATABASE [ConfigurationDb_Staging] |
public static DateTime GetLinkerTime(this Assembly assembly, TimeZoneInfo target = null) | |
{ | |
var filePath = assembly.Location; | |
const int c_PeHeaderOffset = 60; | |
const int c_LinkerTimestampOffset = 8; | |
var buffer = new byte[2048]; | |
using (var stream = new FileStream(filePath, FileMode.Open, FileAccess.Read)) | |
stream.Read(buffer, 0, 2048); |