Esempio n. 1
0
        /// <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;
        }
Esempio n. 2
0
		private void detach_Mailinglist(Mailinglist entity)
		{
			this.SendPropertyChanging();
			entity.Location = null;
		}
Esempio n. 3
0
		private void detach_Mailinglist(Mailinglist entity)
		{
			this.SendPropertyChanging();
			entity.LargeCustomer = null;
		}
Esempio n. 4
0
		private void attach_Mailinglist(Mailinglist entity)
		{
			this.SendPropertyChanging();
			entity.MailinglistType = this;
		}
Esempio n. 5
0
 partial void DeleteMailinglist(Mailinglist instance);
Esempio n. 6
0
 partial void UpdateMailinglist(Mailinglist instance);
Esempio n. 7
0
 partial void InsertMailinglist(Mailinglist instance);