public static void Save(Genero genero)
        {
            using (var db = new Entities())
            {
                if (genero.Id != 0) return;

                db.AddToGeneros(genero);
                db.SaveChanges();
            }
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the Generos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToGeneros(Genero genero)
 {
     base.AddObject("Generos", genero);
 }
 /// <summary>
 /// Create a new Genero object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static Genero CreateGenero(global::System.Decimal id)
 {
     Genero genero = new Genero();
     genero.Id = id;
     return genero;
 }