Пример #1
0
        public static TextModel FromBinary(IModelsProvider dataProvider, IDbTextEmbedded textEntry)
        {
            var builder = TextBuilder.NewTextModel();

            builder.SetText(textEntry.Text);
            return(builder.Build());
        }
Пример #2
0
        public void UpdateEntry(IDbTextEmbedded entry)
        {
            var model = textsDataProvider.GetText(entry.Id);

            model.Text    = Text;
            entry.DataRef = DataRef;
        }
Пример #3
0
        public void UpdateVM(IDbTextEmbedded entry)
        {
            var model = textsDataProvider.GetText(entry.Id);

            if (model != null)
            {
                Text = model.Text;
            }

            DataRef = entry.DataRef;
        }
Пример #4
0
 private TextModel GetModelImpl(IDbTextEmbedded entry)
 {
     return(TextsDataHelper.FromBinary(dataProvider, entry));
 }