/// <summary>
 /// Deprecated Method for adding a new object to the Subscribers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSubscribers(Subscriber subscriber)
 {
     base.AddObject("Subscribers", subscriber);
 }
 public void Remove(Subscriber subscriber)
 {
     Entities.Subscribers.DeleteObject(subscriber);
     SaveChanges();
 }
 /// <summary>
 /// Create a new Subscriber object.
 /// </summary>
 /// <param name="subscriberId">Initial value of the SubscriberId property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="secret">Initial value of the Secret property.</param>
 public static Subscriber CreateSubscriber(global::System.Int32 subscriberId, global::System.String email, global::System.String secret)
 {
     Subscriber subscriber = new Subscriber();
     subscriber.SubscriberId = subscriberId;
     subscriber.Email = email;
     subscriber.Secret = secret;
     return subscriber;
 }
 public void Add(Subscriber subscriber)
 {
     Entities.Subscribers.AddObject(subscriber);
     SaveChanges();
 }