/// <summary> /// Deprecated Method for adding a new object to the material EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTomaterial(material material) { base.AddObject("material", material); }
/// <summary> /// Create a new material object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="nombre">Initial value of the nombre property.</param> /// <param name="descripcion">Initial value of the descripcion property.</param> /// <param name="autor">Initial value of the autor property.</param> /// <param name="fecha">Initial value of the fecha property.</param> /// <param name="foto">Initial value of the foto property.</param> /// <param name="documento">Initial value of the documento property.</param> /// <param name="publicado">Initial value of the publicado property.</param> public static material Creatematerial(global::System.Int32 id, global::System.String nombre, global::System.String descripcion, global::System.String autor, global::System.DateTime fecha, global::System.Byte[] foto, global::System.Byte[] documento, global::System.Int32 publicado) { material material = new material(); material.id = id; material.nombre = nombre; material.descripcion = descripcion; material.autor = autor; material.fecha = fecha; material.foto = foto; material.documento = documento; material.publicado = publicado; return material; }