/// <summary> /// Erstellt die Mailing Liste /// </summary> /// <param name="email">Email Adresse</param> /// <param name="typeId">Email Typ (Rechnung, Laufzettel, Lieferschein)</param> /// <param name="customerId">Kundenid</param> /// <param name="locationId">StandortiD</param> /// <param name="dbContext">DB Kontext</param> /// <returns>Mailinglist Objekt</returns> internal static Mailinglist CreateMailinglistItem(string email, int typeId, int? customerId, int? locationId, DataClasses1DataContext dbContext) { if (string.IsNullOrEmpty(email)) { throw new ArgumentNullException("Die Emailadresse darf nicht leer sein."); } Mailinglist ml = new Mailinglist() { Email = email, MailinglistTypeId = typeId, CustomerId = customerId, LocationId = locationId }; dbContext.Mailinglist.InsertOnSubmit(ml); return ml; }
private void detach_Mailinglist(Mailinglist entity) { this.SendPropertyChanging(); entity.Location = null; }
private void detach_Mailinglist(Mailinglist entity) { this.SendPropertyChanging(); entity.LargeCustomer = null; }
private void attach_Mailinglist(Mailinglist entity) { this.SendPropertyChanging(); entity.MailinglistType = this; }
partial void DeleteMailinglist(Mailinglist instance);
partial void UpdateMailinglist(Mailinglist instance);
partial void InsertMailinglist(Mailinglist instance);