public Importer(DataTable dt, Language language, Wordtype wordtype, Language targetLanguage) { _dt = dt; _language = language; _wordtype = wordtype; _targetLanguage = targetLanguage; }
private Baseword GetOrCreateBaseword(string text, Wordtype wordtype, Language language) { var bwFrom = Baseword.FindByTextLanguageType(text.Trim(), language, wordtype); if (bwFrom == null) { bwFrom = new Baseword { Lang = language, WordType = wordtype, Text = text }; bwFrom.Save(); } return bwFrom; }
public WordtypeViewModel(Wordtype wordtype) { Id = wordtype.Id; Text = wordtype.Text; }