Example #1
0
 public bool InsertNewInfection(string nome, string descrizione)
 {
     try
     {
         Infezione malattia = new Infezione();
         malattia.Nome = nome.Trim();
         malattia.Descrizione = descrizione.Trim();
         context.Infeziones.AddObject(malattia);
         return true;
     }
     catch
     {
         return false;
     }
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Infeziones EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInfeziones(Infezione infezione)
 {
     base.AddObject("Infeziones", infezione);
 }
 /// <summary>
 /// Create a new Infezione object.
 /// </summary>
 /// <param name="progressivo">Initial value of the Progressivo property.</param>
 /// <param name="nome">Initial value of the Nome property.</param>
 public static Infezione CreateInfezione(global::System.Int64 progressivo, global::System.String nome)
 {
     Infezione infezione = new Infezione();
     infezione.Progressivo = progressivo;
     infezione.Nome = nome;
     return infezione;
 }