Пример #1
0
 public static void ToEntity(this StudiuPiataModel model, ref StudiuPiata entity)
 {
     entity.Nume = model.Nume;
     entity.NrTuristi = model.NrTuristi;
     entity.DataStudiului = model.DataStudiu;
     entity.Detalii = model.Detalii;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the StudiuPiatas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStudiuPiatas(StudiuPiata studiuPiata)
 {
     base.AddObject("StudiuPiatas", studiuPiata);
 }
Пример #3
0
 /// <summary>
 /// Create a new StudiuPiata object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="nume">Initial value of the Nume property.</param>
 /// <param name="nrTuristi">Initial value of the NrTuristi property.</param>
 /// <param name="dataStudiului">Initial value of the DataStudiului property.</param>
 public static StudiuPiata CreateStudiuPiata(global::System.Int32 id, global::System.String nume, global::System.Int32 nrTuristi, global::System.DateTime dataStudiului)
 {
     StudiuPiata studiuPiata = new StudiuPiata();
     studiuPiata.ID = id;
     studiuPiata.Nume = nume;
     studiuPiata.NrTuristi = nrTuristi;
     studiuPiata.DataStudiului = dataStudiului;
     return studiuPiata;
 }