Skip to content

Instantly share code, notes, and snippets.

View rasoulian's full-sized avatar
😎
Focusing

Ali Rasoulian rasoulian

😎
Focusing
View GitHub Profile
namespace App.Data.Migrations
{
internal sealed class Configuration : DbMigrationsConfiguration<DataContext>
{
public Configuration()
{
AutomaticMigrationsEnabled = false;
SetSqlGenerator("System.Data.SqlClient", new CustomSqlServerMigrationSqlGenerator());
}
}
class SubtitleTools{
string _filePath = string.Empty;
public PersianSubtitle(string filePath){
if (Path.GetExtension(filePath) != ".srt"){
Console.WriteLine("Unknown file type!");
}
}
public void ToPersian(){