/// <summary> /// Deprecated Method for adding a new object to the Unidades EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUnidades(Unidad unidad) { base.AddObject("Unidades", unidad); }
/// <summary> /// Create a new Unidad object. /// </summary> /// <param name="unidadId">Initial value of the UnidadId property.</param> /// <param name="nombre">Initial value of the Nombre property.</param> public static Unidad CreateUnidad(global::System.Int32 unidadId, global::System.String nombre) { Unidad unidad = new Unidad(); unidad.UnidadId = unidadId; unidad.Nombre = nombre; return unidad; }