Example #1
0
        public void UpdateXml(Tarea entityToUpdate)
        {
            //base.Update(entityToUpdate);

            Context db = context as Context;

            string infoXml = entityToUpdate.ToXml(new XmlPropertiesInfo("Tarea", typeof(Tarea), StorageProperties),
                                                  new XmlPropertiesInfo(typeof(Models.General.TareaRutaAplica), StoragePropertiesDetalleRuta),
                                                  new XmlPropertiesInfo(typeof(Models.General.TareaActividad), StoragePropertiesDetalleActividad)
                                                  );

            db.Database.ExecuteSqlCommand(String.Format("exec spTareaUpdate '{0}'", infoXml));
        }