Пример #1
0
        public Text getModel()
        {
            var model = new Text();

            Mapper.CreateMap<TextView, Text>();
            Mapper.Map<TextView, Text>(this, model);

            return model;
        }
 public Text createText(Text model)
 {
     db.texts.Add(model);
     db.SaveChanges();
     return model;
 }
Пример #3
0
 public TextView(Text model)
 {
     Mapper.CreateMap<Text, TextView>();
     Mapper.Map<Text, TextView>(model, this);
 }