/// <summary>
 /// Deprecated Method for adding a new object to the Species EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSpecies(Specie specie)
 {
     base.AddObject("Species", specie);
 }
        public bool SaveNewSpecies(string name, string desc)
        {
            try
            {
                var checkIfExist = from species in context.Species
                                   where species.Nome == name
                                   select species;
                if (checkIfExist.Count() > 0)
                {
                    return false;
                }
                if (string.IsNullOrWhiteSpace(desc))
                {
                    desc = null;
                }

                Specie newSpecies = new Specie();
                newSpecies.Descrizione = desc;
                newSpecies.Nome = name;
                context.AddToSpecies(newSpecies);
                return true;
            }
            catch
            {
                return false;
            }
        }
 /// <summary>
 /// Create a new Specie object.
 /// </summary>
 /// <param name="specie1">Initial value of the Specie1 property.</param>
 public static Specie CreateSpecie(global::System.Int64 specie1)
 {
     Specie specie = new Specie();
     specie.Specie1 = specie1;
     return specie;
 }