Acme.Northwind.EFDAL.NorthwindEntities.DeleteObject C# (CSharp) Метод

DeleteObject() приватный Метод

private DeleteObject ( object entity ) : void
entity object
Результат void
		public new void DeleteObject(object entity)
		{
			if (entity is Acme.Northwind.EFDAL.Entity.Category)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.Category);
			else if (entity is Acme.Northwind.EFDAL.Entity.CustomerCustomerDemo)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.CustomerCustomerDemo);
			else if (entity is Acme.Northwind.EFDAL.Entity.CustomerDemographic)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.CustomerDemographic);
			else if (entity is Acme.Northwind.EFDAL.Entity.Customer)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.Customer);
			else if (entity is Acme.Northwind.EFDAL.Entity.Employee)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.Employee);
			else if (entity is Acme.Northwind.EFDAL.Entity.EmployeeTerritorie)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.EmployeeTerritorie);
			else if (entity is Acme.Northwind.EFDAL.Entity.OrderDetail)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.OrderDetail);
			else if (entity is Acme.Northwind.EFDAL.Entity.Order)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.Order);
			else if (entity is Acme.Northwind.EFDAL.Entity.Product)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.Product);
			else if (entity is Acme.Northwind.EFDAL.Entity.Region)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.Region);
			else if (entity is Acme.Northwind.EFDAL.Entity.Shipper)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.Shipper);
			else if (entity is Acme.Northwind.EFDAL.Entity.Supplier)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.Supplier);
			else if (entity is Acme.Northwind.EFDAL.Entity.Territory)
				this.DeleteItem(entity as Acme.Northwind.EFDAL.Entity.Territory);
		}