Esempio n. 1
0
 public static void ToEntity(this ConcurentaModel model, ref Concurenta entity)
 {
     entity.Nume = model.Nume;
     entity.Descriere = model.Descriere;
     if (model.Id == 0)
     {
         entity.DataAdaugarii = DateTime.Now;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new Concurenta object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="nume">Initial value of the Nume property.</param>
 /// <param name="dataAdaugarii">Initial value of the DataAdaugarii property.</param>
 public static Concurenta CreateConcurenta(global::System.Int32 id, global::System.String nume, global::System.DateTime dataAdaugarii)
 {
     Concurenta concurenta = new Concurenta();
     concurenta.ID = id;
     concurenta.Nume = nume;
     concurenta.DataAdaugarii = dataAdaugarii;
     return concurenta;
 }
Esempio n. 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Concurentas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToConcurentas(Concurenta concurenta)
 {
     base.AddObject("Concurentas", concurenta);
 }