public static TextModel FromBinary(IModelsProvider dataProvider, IDbTextEmbedded textEntry) { var builder = TextBuilder.NewTextModel(); builder.SetText(textEntry.Text); return(builder.Build()); }
public void UpdateEntry(IDbTextEmbedded entry) { var model = textsDataProvider.GetText(entry.Id); model.Text = Text; entry.DataRef = DataRef; }
public void UpdateVM(IDbTextEmbedded entry) { var model = textsDataProvider.GetText(entry.Id); if (model != null) { Text = model.Text; } DataRef = entry.DataRef; }
private TextModel GetModelImpl(IDbTextEmbedded entry) { return(TextsDataHelper.FromBinary(dataProvider, entry)); }