public ImportImpl(StreamReader reader, string file, TaskModel taskModel, Action<string> output, IAsyncDatabaseCommands databaseCommands) { this.taskModel = taskModel; this.output = output; this.databaseCommands = databaseCommands; csvReader = new CsvReader(reader); header = csvReader.ReadHeaderRecord(); entity = Path.GetFileNameWithoutExtension(file); sw = Stopwatch.StartNew(); enumerator = csvReader.DataRecords.GetEnumerator(); }
public ImportImpl(StreamReader reader, string file, TaskModel taskModel, Action<string> output, IAsyncDatabaseCommands databaseCommands) { this.taskModel = taskModel; this.output = output; this.databaseCommands = databaseCommands; csvReader = new CsvReader(reader); header = csvReader.ReadHeaderRecord(); entity = Inflector.Pluralize(CSharpClassName.ConvertToValidClassName(Path.GetFileNameWithoutExtension(file))); if (entity.Length > 0 && char.IsLower(entity[0])) entity = char.ToUpper(entity[0]) + entity.Substring(1); sw = Stopwatch.StartNew(); enumerator = csvReader.DataRecords.GetEnumerator(); }
public ExportDatabaseCommand(TaskModel taskModel, Action<string> output) { this.output = output; this.taskModel = taskModel; }
public CsvImportCommand(TaskModel taskModel, Action<string> output) { this.output = output; this.taskModel = taskModel; }
public TaskPageModel() { Tasks = new TaskModel(); ModelUrl = "/Tasks"; }