当前位置: 首页>>代码示例>>C#>>正文


C# TList.Remove方法代码示例

本文整理汇总了C#中TList.Remove方法的典型用法代码示例。如果您正苦于以下问题:C# TList.Remove方法的具体用法?C# TList.Remove怎么用?C# TList.Remove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TList的用法示例。


在下文中一共展示了TList.Remove方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateMockInstance_Generated

        ///<summary>
        ///  Returns a Typed Region Entity with mock values.
        ///</summary>
        public static Region CreateMockInstance_Generated(TransactionManager tm)
        {
            Region mock = new Region();

            mock.RegionId = TestUtility.Instance.RandomNumber();
            mock.RegionDescription = TestUtility.Instance.RandomString(24, false);;

            // create a temporary collection and add the item to it
            TList<Region> tempMockCollection = new TList<Region>();
            tempMockCollection.Add(mock);
            tempMockCollection.Remove(mock);

               return (Region)mock;
        }
开发者ID:jdaigle,项目名称:nettiers,代码行数:17,代码来源:RegionTest.generated.cs

示例2: CreateMockInstance_Generated

        ///<summary>
        ///  Returns a Typed Categories Entity with mock values.
        ///</summary>
        public static Categories CreateMockInstance_Generated(TransactionManager tm)
        {
            Categories mock = new Categories();

            mock.CategoryName = TestUtility.Instance.RandomString(6, false);;
            mock.Description = TestUtility.Instance.RandomString(2, false);;
            mock.Picture = new byte[] { TestUtility.Instance.RandomByte() };

            // create a temporary collection and add the item to it
            TList<Categories> tempMockCollection = new TList<Categories>();
            tempMockCollection.Add(mock);
            tempMockCollection.Remove(mock);

               return (Categories)mock;
        }
开发者ID:jdaigle,项目名称:nettiers,代码行数:18,代码来源:CategoriesTest.generated.cs

示例3: CreateMockInstance_Generated

        ///<summary>
        ///  Returns a Typed CustomerCustomerDemo Entity with mock values.
        ///</summary>
        public static CustomerCustomerDemo CreateMockInstance_Generated(TransactionManager tm)
        {
            CustomerCustomerDemo mock = new CustomerCustomerDemo();

            //OneToOneRelationship
            CustomerDemographics mockCustomerDemographicsByCustomerTypeId = CustomerDemographicsTest.CreateMockInstance(tm);
            DataRepository.CustomerDemographicsProvider.Insert(tm, mockCustomerDemographicsByCustomerTypeId);
            mock.CustomerTypeId = mockCustomerDemographicsByCustomerTypeId.CustomerTypeId;
            //OneToOneRelationship
            Customers mockCustomersByCustomerId = CustomersTest.CreateMockInstance(tm);
            DataRepository.CustomersProvider.Insert(tm, mockCustomersByCustomerId);
            mock.CustomerId = mockCustomersByCustomerId.CustomerId;

            // create a temporary collection and add the item to it
            TList<CustomerCustomerDemo> tempMockCollection = new TList<CustomerCustomerDemo>();
            tempMockCollection.Add(mock);
            tempMockCollection.Remove(mock);

               return (CustomerCustomerDemo)mock;
        }
开发者ID:jdaigle,项目名称:nettiers,代码行数:23,代码来源:CustomerCustomerDemoTest.generated.cs

示例4: CreateMockInstance_Generated

        ///<summary>
        ///  Returns a Typed Suppliers Entity with mock values.
        ///</summary>
        public static Suppliers CreateMockInstance_Generated(TransactionManager tm)
        {
            Suppliers mock = new Suppliers();

            mock.CompanyName = TestUtility.Instance.RandomString(19, false);;
            mock.ContactName = TestUtility.Instance.RandomString(14, false);;
            mock.ContactTitle = TestUtility.Instance.RandomString(14, false);;
            mock.Address = TestUtility.Instance.RandomString(29, false);;
            mock.City = TestUtility.Instance.RandomString(6, false);;
            mock.Region = TestUtility.Instance.RandomString(6, false);;
            mock.PostalCode = TestUtility.Instance.RandomString(10, false);;
            mock.Country = TestUtility.Instance.RandomString(6, false);;
            mock.Phone = TestUtility.Instance.RandomString(11, false);;
            mock.Fax = TestUtility.Instance.RandomString(11, false);;
            mock.HomePage = TestUtility.Instance.RandomString(2, false);;

            // create a temporary collection and add the item to it
            TList<Suppliers> tempMockCollection = new TList<Suppliers>();
            tempMockCollection.Add(mock);
            tempMockCollection.Remove(mock);

               return (Suppliers)mock;
        }
开发者ID:jdaigle,项目名称:nettiers,代码行数:26,代码来源:SuppliersTest.generated.cs

示例5: CreateMockInstance_Generated

        ///<summary>
        ///  Returns a Typed Territories Entity with mock values.
        ///</summary>
        public static Territories CreateMockInstance_Generated(TransactionManager tm)
        {
            Territories mock = new Territories();

            mock.TerritoryId = TestUtility.Instance.RandomString(9, false);;
            mock.TerritoryDescription = TestUtility.Instance.RandomString(24, false);;

            int count0 = 0;
            TList<Region> _collection0 = DataRepository.RegionProvider.GetPaged(tm, 0, 10, out count0);
            //_collection0.Shuffle();
            if (_collection0.Count > 0)
            {
                mock.RegionId = _collection0[0].RegionId;

            }

            // create a temporary collection and add the item to it
            TList<Territories> tempMockCollection = new TList<Territories>();
            tempMockCollection.Add(mock);
            tempMockCollection.Remove(mock);

               return (Territories)mock;
        }
开发者ID:jdaigle,项目名称:nettiers,代码行数:26,代码来源:TerritoriesTest.generated.cs

示例6: CreateMockInstance_Generated

        ///<summary>
        ///  Returns a Typed Employees Entity with mock values.
        ///</summary>
        public static Employees CreateMockInstance_Generated(TransactionManager tm)
        {
            Employees mock = new Employees();

            mock.LastName = TestUtility.Instance.RandomString(9, false);;
            mock.FirstName = TestUtility.Instance.RandomString(10, false);;
            mock.Title = TestUtility.Instance.RandomString(14, false);;
            mock.TitleOfCourtesy = TestUtility.Instance.RandomString(11, false);;
            mock.BirthDate = TestUtility.Instance.RandomDateTime();
            mock.HireDate = TestUtility.Instance.RandomDateTime();
            mock.Address = TestUtility.Instance.RandomString(29, false);;
            mock.City = TestUtility.Instance.RandomString(6, false);;
            mock.Region = TestUtility.Instance.RandomString(6, false);;
            mock.PostalCode = TestUtility.Instance.RandomString(10, false);;
            mock.Country = TestUtility.Instance.RandomString(6, false);;
            mock.HomePhone = TestUtility.Instance.RandomString(11, false);;
            mock.Extension = TestUtility.Instance.RandomString(4, false);;
            mock.Photo = new byte[] { TestUtility.Instance.RandomByte() };
            mock.Notes = TestUtility.Instance.RandomString(2, false);;
            mock.PhotoPath = TestUtility.Instance.RandomString(126, false);;

            int count0 = 0;
            TList<Employees> _collection0 = DataRepository.EmployeesProvider.GetPaged(tm, 0, 10, out count0);
            //_collection0.Shuffle();
            if (_collection0.Count > 0)
            {
                mock.ReportsTo = _collection0[0].EmployeeId;

            }

            // create a temporary collection and add the item to it
            TList<Employees> tempMockCollection = new TList<Employees>();
            tempMockCollection.Add(mock);
            tempMockCollection.Remove(mock);

               return (Employees)mock;
        }
开发者ID:jdaigle,项目名称:nettiers,代码行数:40,代码来源:EmployeesTest.generated.cs

示例7: CreateMockInstance_Generated

        ///<summary>
        ///  Returns a Typed OrderDetails Entity with mock values.
        ///</summary>
        public static OrderDetails CreateMockInstance_Generated(TransactionManager tm)
        {
            OrderDetails mock = new OrderDetails();

            mock.UnitPrice = TestUtility.Instance.RandomShort();
            mock.Quantity = TestUtility.Instance.RandomShort();
            mock.Discount = (float)TestUtility.Instance.RandomNumber();

            //OneToOneRelationship
            Orders mockOrdersByOrderId = OrdersTest.CreateMockInstance(tm);
            DataRepository.OrdersProvider.Insert(tm, mockOrdersByOrderId);
            mock.OrderId = mockOrdersByOrderId.OrderId;
            //OneToOneRelationship
            Products mockProductsByProductId = ProductsTest.CreateMockInstance(tm);
            DataRepository.ProductsProvider.Insert(tm, mockProductsByProductId);
            mock.ProductId = mockProductsByProductId.ProductId;

            // create a temporary collection and add the item to it
            TList<OrderDetails> tempMockCollection = new TList<OrderDetails>();
            tempMockCollection.Add(mock);
            tempMockCollection.Remove(mock);

               return (OrderDetails)mock;
        }
开发者ID:jdaigle,项目名称:nettiers,代码行数:27,代码来源:OrderDetailsTest.generated.cs

示例8: CreateMockInstance_Generated

        ///<summary>
        ///  Returns a Typed Products Entity with mock values.
        ///</summary>
        public static Products CreateMockInstance_Generated(TransactionManager tm)
        {
            Products mock = new Products();

            mock.ProductName = TestUtility.Instance.RandomString(19, false);;
            mock.QuantityPerUnit = TestUtility.Instance.RandomString(9, false);;
            mock.UnitPrice = TestUtility.Instance.RandomShort();
            mock.UnitsInStock = TestUtility.Instance.RandomShort();
            mock.UnitsOnOrder = TestUtility.Instance.RandomShort();
            mock.ReorderLevel = TestUtility.Instance.RandomShort();
            mock.Discontinued = TestUtility.Instance.RandomBoolean();

            int count0 = 0;
            TList<Categories> _collection0 = DataRepository.CategoriesProvider.GetPaged(tm, 0, 10, out count0);
            //_collection0.Shuffle();
            if (_collection0.Count > 0)
            {
                mock.CategoryId = _collection0[0].CategoryId;

            }
            int count1 = 0;
            TList<Suppliers> _collection1 = DataRepository.SuppliersProvider.GetPaged(tm, 0, 10, out count1);
            //_collection1.Shuffle();
            if (_collection1.Count > 0)
            {
                mock.SupplierId = _collection1[0].SupplierId;

            }

            // create a temporary collection and add the item to it
            TList<Products> tempMockCollection = new TList<Products>();
            tempMockCollection.Add(mock);
            tempMockCollection.Remove(mock);

               return (Products)mock;
        }
开发者ID:jdaigle,项目名称:nettiers,代码行数:39,代码来源:ProductsTest.generated.cs

示例9: CreateMockInstance_Generated

		///<summary>
		///  Returns a Typed Document Entity with mock values.
		///</summary>
		static public Document CreateMockInstance_Generated(TransactionManager tm)
		{		
			Document mock = new Document();
						
			mock.Title = TestUtility.Instance.RandomString(24, false);;
			mock.FileName = TestUtility.Instance.RandomString(199, false);;
			mock.FileExtension = TestUtility.Instance.RandomString(8, false);;
			mock.Revision = TestUtility.Instance.RandomString(5, false);;
			mock.ChangeNumber = TestUtility.Instance.RandomNumber();
			mock.Status = TestUtility.Instance.RandomByte();
			mock.DocumentSummary = TestUtility.Instance.RandomString(2, false);;
			mock.Document = new byte[] { TestUtility.Instance.RandomByte() };
			mock.ModifiedDate = TestUtility.Instance.RandomDateTime();
			
		
			// create a temporary collection and add the item to it
			TList<Document> tempMockCollection = new TList<Document>();
			tempMockCollection.Add(mock);
			tempMockCollection.Remove(mock);
			
		
		   return (Document)mock;
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:26,代码来源:DocumentTest.generated.cs

示例10: CreateMockInstance_Generated

		///<summary>
		///  Returns a Typed WorkOrder Entity with mock values.
		///</summary>
		static public WorkOrder CreateMockInstance_Generated(TransactionManager tm)
		{		
			WorkOrder mock = new WorkOrder();
						
			mock.OrderQty = TestUtility.Instance.RandomNumber();
			mock.ScrappedQty = TestUtility.Instance.RandomShort();
			mock.StartDate = TestUtility.Instance.RandomDateTime();
			mock.EndDate = TestUtility.Instance.RandomDateTime();
			mock.DueDate = TestUtility.Instance.RandomDateTime();
			mock.ModifiedDate = TestUtility.Instance.RandomDateTime();
			
			int count0 = 0;
			TList<Product> _collection0 = DataRepository.ProductProvider.GetPaged(tm, 0, 10, out count0);
			//_collection0.Shuffle();
			if (_collection0.Count > 0)
			{
				mock.ProductId = _collection0[0].ProductId;
						
			}
			int count1 = 0;
			TList<ScrapReason> _collection1 = DataRepository.ScrapReasonProvider.GetPaged(tm, 0, 10, out count1);
			//_collection1.Shuffle();
			if (_collection1.Count > 0)
			{
				mock.ScrapReasonId = _collection1[0].ScrapReasonId;
						
			}
		
			// create a temporary collection and add the item to it
			TList<WorkOrder> tempMockCollection = new TList<WorkOrder>();
			tempMockCollection.Add(mock);
			tempMockCollection.Remove(mock);
			
		
		   return (WorkOrder)mock;
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:39,代码来源:WorkOrderTest.generated.cs

示例11: CreateMockInstance_Generated

		///<summary>
		///  Returns a Typed TestVariant Entity with mock values.
		///</summary>
		static public TestVariant CreateMockInstance_Generated(TransactionManager tm)
		{		
			TestVariant mock = new TestVariant();
						
			mock.VariantField = null;
			
		
			// create a temporary collection and add the item to it
			TList<TestVariant> tempMockCollection = new TList<TestVariant>();
			tempMockCollection.Add(mock);
			tempMockCollection.Remove(mock);
			
		
		   return (TestVariant)mock;
		}
开发者ID:netTiers,项目名称:netTiers,代码行数:18,代码来源:TestVariantTest.generated.cs

示例12: CreateMockInstance_Generated

		///<summary>
		///  Returns a Typed ProductPhoto Entity with mock values.
		///</summary>
		static public ProductPhoto CreateMockInstance_Generated(TransactionManager tm)
		{		
			ProductPhoto mock = new ProductPhoto();
						
			mock.ThumbNailPhoto = new byte[] { TestUtility.Instance.RandomByte() };
			mock.ThumbnailPhotoFileName = TestUtility.Instance.RandomString(24, false);;
			mock.LargePhoto = new byte[] { TestUtility.Instance.RandomByte() };
			mock.LargePhotoFileName = TestUtility.Instance.RandomString(24, false);;
			mock.ModifiedDate = TestUtility.Instance.RandomDateTime();
			
		
			// create a temporary collection and add the item to it
			TList<ProductPhoto> tempMockCollection = new TList<ProductPhoto>();
			tempMockCollection.Add(mock);
			tempMockCollection.Remove(mock);
			
		
		   return (ProductPhoto)mock;
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:22,代码来源:ProductPhotoTest.generated.cs

示例13: CreateMockInstance_Generated

		///<summary>
		///  Returns a Typed CreditCard Entity with mock values.
		///</summary>
		static public CreditCard CreateMockInstance_Generated(TransactionManager tm)
		{		
			CreditCard mock = new CreditCard();
						
			mock.CardType = TestUtility.Instance.RandomString(24, false);;
			mock.CardNumber = TestUtility.Instance.RandomString(11, false);;
			mock.ExpMonth = TestUtility.Instance.RandomByte();
			mock.ExpYear = TestUtility.Instance.RandomShort();
			mock.ModifiedDate = TestUtility.Instance.RandomDateTime();
			
		
			// create a temporary collection and add the item to it
			TList<CreditCard> tempMockCollection = new TList<CreditCard>();
			tempMockCollection.Add(mock);
			tempMockCollection.Remove(mock);
			
		
		   return (CreditCard)mock;
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:22,代码来源:CreditCardTest.generated.cs

示例14: CreateMockInstance_Generated

		///<summary>
		///  Returns a Typed CountryRegionCurrency Entity with mock values.
		///</summary>
		static public CountryRegionCurrency CreateMockInstance_Generated(TransactionManager tm)
		{		
			CountryRegionCurrency mock = new CountryRegionCurrency();
						
			mock.ModifiedDate = TestUtility.Instance.RandomDateTime();
			
			//OneToOneRelationship
			CountryRegion mockCountryRegionByCountryRegionCode = CountryRegionTest.CreateMockInstance(tm);
			DataRepository.CountryRegionProvider.Insert(tm, mockCountryRegionByCountryRegionCode);
			mock.CountryRegionCode = mockCountryRegionByCountryRegionCode.CountryRegionCode;
			//OneToOneRelationship
			Currency mockCurrencyByCurrencyCode = CurrencyTest.CreateMockInstance(tm);
			DataRepository.CurrencyProvider.Insert(tm, mockCurrencyByCurrencyCode);
			mock.CurrencyCode = mockCurrencyByCurrencyCode.CurrencyCode;
		
			// create a temporary collection and add the item to it
			TList<CountryRegionCurrency> tempMockCollection = new TList<CountryRegionCurrency>();
			tempMockCollection.Add(mock);
			tempMockCollection.Remove(mock);
			
		
		   return (CountryRegionCurrency)mock;
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:26,代码来源:CountryRegionCurrencyTest.generated.cs

示例15: CreateMockInstance_Generated

		///<summary>
		///  Returns a Typed NullFkeyChild Entity with mock values.
		///</summary>
		static public NullFkeyChild CreateMockInstance_Generated(TransactionManager tm)
		{		
			NullFkeyChild mock = new NullFkeyChild();
						
			mock.NullFkeyChildId = TestUtility.Instance.RandomNumber();
			mock.SomeText = TestUtility.Instance.RandomString(24, false);;
			
			//OneToOneRelationship
			NullFkeyParent mockNullFkeyParentByNullFkeyParentId = NullFkeyParentTest.CreateMockInstance(tm);
			DataRepository.NullFkeyParentProvider.Insert(tm, mockNullFkeyParentByNullFkeyParentId);
			mock.NullFkeyParentId = mockNullFkeyParentByNullFkeyParentId.NullFkeyParentId;
		
			// create a temporary collection and add the item to it
			TList<NullFkeyChild> tempMockCollection = new TList<NullFkeyChild>();
			tempMockCollection.Add(mock);
			tempMockCollection.Remove(mock);
			
		
		   return (NullFkeyChild)mock;
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:23,代码来源:NullFkeyChildTest.generated.cs


注:本文中的TList.Remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。