コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Unidades EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUnidades(Unidad unidad)
 {
     base.AddObject("Unidades", unidad);
 }
コード例 #2
0
 /// <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;
 }