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