/// <summary>Initializes a new instance of the <see cref="WorkOrder"/> class.</summary>
		public WorkOrder() : base()
		{
			_workOrderRoutings = new Iesi.Collections.Generic.HashedSet<WorkOrderRouting>();
			_stockedQty = default(System.Int32);
			_workOrderId = default(System.Int32);
			OnCreated();
		}
Exemple #2
0
 /// <summary>Initializes a new instance of the <see cref="Vendor"/> class.</summary>
 public Vendor() : base()
 {
     _productVendors       = new Iesi.Collections.Generic.HashedSet <ProductVendor>();
     _purchaseOrderHeaders = new Iesi.Collections.Generic.HashedSet <PurchaseOrderHeader>();
     _vendorId             = default(System.Int32);
     OnCreated();
 }
		/// <summary>Initializes a new instance of the <see cref="Customer"/> class.</summary>
		public Customer() : base()
		{
			_salesOrderHeaders = new Iesi.Collections.Generic.HashedSet<SalesOrderHeader>();
			_accountNumber = default(System.String);
			_customerId = default(System.Int32);
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="ContactType"/> class.</summary>
		public ContactType() : base()
		{
			_storeContacts = new Iesi.Collections.Generic.HashedSet<StoreContact>();
			_vendorContacts = new Iesi.Collections.Generic.HashedSet<VendorContact>();
			_contactTypeId = default(System.Int32);
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="CountryRegion"/> class.</summary>
		public CountryRegion() : base()
		{
			_countryRegionCurrencies = new Iesi.Collections.Generic.HashedSet<CountryRegionCurrency>();
			_salesTerritories = new Iesi.Collections.Generic.HashedSet<SalesTerritory>();
			_stateProvinces = new Iesi.Collections.Generic.HashedSet<StateProvince>();
			OnCreated();
		}
Exemple #6
0
 /// <summary>Initializes a new instance of the <see cref="WorkOrder"/> class.</summary>
 public WorkOrder() : base()
 {
     _workOrderRoutings = new Iesi.Collections.Generic.HashedSet <WorkOrderRouting>();
     _stockedQty        = default(System.Int32);
     _workOrderId       = default(System.Int32);
     OnCreated();
 }
		/// <summary>Initializes a new instance of the <see cref="Currency"/> class.</summary>
		public Currency() : base()
		{
			_countryRegionCurrencies = new Iesi.Collections.Generic.HashedSet<CountryRegionCurrency>();
			_currencyRates = new Iesi.Collections.Generic.HashedSet<CurrencyRate>();
			_currencyRates1 = new Iesi.Collections.Generic.HashedSet<CurrencyRate>();
			OnCreated();
		}
 /// <summary>Initializes a new instance of the <see cref="CountryRegion"/> class.</summary>
 public CountryRegion() : base()
 {
     _countryRegionCurrencies = new Iesi.Collections.Generic.HashedSet <CountryRegionCurrency>();
     _salesTerritories        = new Iesi.Collections.Generic.HashedSet <SalesTerritory>();
     _stateProvinces          = new Iesi.Collections.Generic.HashedSet <StateProvince>();
     OnCreated();
 }
 /// <summary>Initializes a new instance of the <see cref="StateProvince"/> class.</summary>
 public StateProvince() : base()
 {
     _addresses       = new Iesi.Collections.Generic.HashedSet <Address>();
     _salesTaxRates   = new Iesi.Collections.Generic.HashedSet <SalesTaxRate>();
     _stateProvinceId = default(System.Int32);
     OnCreated();
 }
		/// <summary>Initializes a new instance of the <see cref="BusinessEntity"/> class.</summary>
		public BusinessEntity() : base()
		{
			_businessEntityAddresses = new Iesi.Collections.Generic.HashedSet<BusinessEntityAddress>();
			_businessEntityContacts = new Iesi.Collections.Generic.HashedSet<BusinessEntityContact>();
			_businessEntityId = default(System.Int32);
			OnCreated();
		}
Exemple #11
0
 /// <summary>Initializes a new instance of the <see cref="CreditCard"/> class.</summary>
 public CreditCard() : base()
 {
     _contactCreditCards = new Iesi.Collections.Generic.HashedSet <ContactCreditCard>();
     _salesOrderHeaders  = new Iesi.Collections.Generic.HashedSet <SalesOrderHeader>();
     _creditCardId       = default(System.Int32);
     OnCreated();
 }
Exemple #12
0
 /// <summary>Initializes a new instance of the <see cref="PurchaseOrderHeader"/> class.</summary>
 public PurchaseOrderHeader() : base()
 {
     _purchaseOrderDetails = new Iesi.Collections.Generic.HashedSet <PurchaseOrderDetail>();
     _purchaseOrderId      = default(System.Int32);
     _totalDue             = default(System.Decimal);
     OnCreated();
 }
		/// <summary>Initializes a new instance of the <see cref="Location"/> class.</summary>
		public Location() : base()
		{
			_productInventories = new Iesi.Collections.Generic.HashedSet<ProductInventory>();
			_workOrderRoutings = new Iesi.Collections.Generic.HashedSet<WorkOrderRouting>();
			_locationId = default(System.Int16);
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="PurchaseOrderHeader"/> class.</summary>
		public PurchaseOrderHeader() : base()
		{
			_purchaseOrderDetails = new Iesi.Collections.Generic.HashedSet<PurchaseOrderDetail>();
			_purchaseOrderId = default(System.Int32);
			_totalDue = default(System.Decimal);
			OnCreated();
		}
Exemple #15
0
 /// <summary>Initializes a new instance of the <see cref="BusinessEntity"/> class.</summary>
 public BusinessEntity() : base()
 {
     _businessEntityAddresses = new Iesi.Collections.Generic.HashedSet <BusinessEntityAddress>();
     _businessEntityContacts  = new Iesi.Collections.Generic.HashedSet <BusinessEntityContact>();
     _businessEntityId        = default(System.Int32);
     OnCreated();
 }
 /// <summary>Initializes a new instance of the <see cref="Location"/> class.</summary>
 public Location() : base()
 {
     _productInventories = new Iesi.Collections.Generic.HashedSet <ProductInventory>();
     _workOrderRoutings  = new Iesi.Collections.Generic.HashedSet <WorkOrderRouting>();
     _locationId         = default(System.Int16);
     OnCreated();
 }
		/// <summary>Initializes a new instance of the <see cref="AddressType"/> class.</summary>
		public AddressType() : base()
		{
			_customerAddresses = new Iesi.Collections.Generic.HashedSet<CustomerAddress>();
			_vendorAddresses = new Iesi.Collections.Generic.HashedSet<VendorAddress>();
			_addressTypeId = default(System.Int32);
			OnCreated();
		}
Exemple #18
0
 /// <summary>Initializes a new instance of the <see cref="Customer"/> class.</summary>
 public Customer() : base()
 {
     _salesOrderHeaders = new Iesi.Collections.Generic.HashedSet <SalesOrderHeader>();
     _accountNumber     = default(System.String);
     _customerId        = default(System.Int32);
     OnCreated();
 }
Exemple #19
0
 /// <summary>Initializes a new instance of the <see cref="ShipMethod"/> class.</summary>
 public ShipMethod() : base()
 {
     _purchaseOrderHeaders = new Iesi.Collections.Generic.HashedSet <PurchaseOrderHeader>();
     _salesOrderHeaders    = new Iesi.Collections.Generic.HashedSet <SalesOrderHeader>();
     _shipMethodId         = default(System.Int32);
     OnCreated();
 }
Exemple #20
0
 /// <summary>Initializes a new instance of the <see cref="Currency"/> class.</summary>
 public Currency() : base()
 {
     _countryRegionCurrencies = new Iesi.Collections.Generic.HashedSet <CountryRegionCurrency>();
     _currencyRates           = new Iesi.Collections.Generic.HashedSet <CurrencyRate>();
     _currencyRates1          = new Iesi.Collections.Generic.HashedSet <CurrencyRate>();
     OnCreated();
 }
        private void MakeAddress(
            IEnumerable <CustomerAddress> newAddress,
            Iesi.Collections.Generic.ISet <CustomerAddress> prevAddress,
            CustomerAddressType prevAddressType,
            Iesi.Collections.Generic.ISet <CustomerAddress> currentAddress,
            CustomerAddressType currentAddressType
            )
        {
            var newAddresses = newAddress as IList <CustomerAddress> ?? newAddress.ToList();
            var addAddress   = newAddresses.Where(i => i.AddressId == 0).ToList();
            var curAddress   = addAddress.LastOrDefault() ?? currentAddress.LastOrDefault();

            if (curAddress == null)
            {
                return;
            }

            foreach (var address in newAddresses)
            {
                address.Director = currentAddress.First().Director;
                address.Customer = currentAddress.First().Customer;
                address.Company  = currentAddress.First().Company;
            }             // for each new address

            foreach (var item in currentAddress)
            {
                item.AddressType = prevAddressType;
                prevAddress.Add(item);
            }             // for each old address

            curAddress.AddressType = currentAddressType;
            currentAddress.Add(curAddress);
        }         // MakeAddress
		/// <summary>Initializes a new instance of the <see cref="ShipMethod"/> class.</summary>
		public ShipMethod() : base()
		{
			_purchaseOrderHeaders = new Iesi.Collections.Generic.HashedSet<PurchaseOrderHeader>();
			_salesOrderHeaders = new Iesi.Collections.Generic.HashedSet<SalesOrderHeader>();
			_shipMethodId = default(System.Int32);
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="StateProvince"/> class.</summary>
		public StateProvince() : base()
		{
			_addresses = new Iesi.Collections.Generic.HashedSet<Address>();
			_salesTaxRates = new Iesi.Collections.Generic.HashedSet<SalesTaxRate>();
			_stateProvinceId = default(System.Int32);
			OnCreated();
		}
Exemple #24
0
        public static Lucene.Net.Search.Query FilterQueryByClasses(Iesi.Collections.Generic.ISet <System.Type> classesAndSubclasses, Lucene.Net.Search.Query luceneQuery)
        {
            // A query filter is more practical than a manual class filtering post query (esp on scrollable resultsets)
            // it also probably minimise the memory footprint
            if (classesAndSubclasses == null)
            {
                return(luceneQuery);
            }

            BooleanQuery classFilter = new BooleanQuery();

            // annihilate the scoring impact of DocumentBuilder.CLASS_FIELDNAME
            classFilter.SetBoost(0);
            foreach (System.Type clazz in classesAndSubclasses)
            {
                Term      t         = new Term(DocumentBuilder.CLASS_FIELDNAME, TypeHelper.LuceneTypeName(clazz));
                TermQuery termQuery = new TermQuery(t);
                classFilter.Add(termQuery, BooleanClause.Occur.SHOULD);
            }

            BooleanQuery filteredQuery = new BooleanQuery();

            filteredQuery.Add(luceneQuery, BooleanClause.Occur.MUST);
            filteredQuery.Add(classFilter, BooleanClause.Occur.MUST);
            return(filteredQuery);
        }
		/// <summary>Initializes a new instance of the <see cref="Address"/> class.</summary>
		public Address() : base()
		{
			_businessEntityAddresses = new Iesi.Collections.Generic.HashedSet<BusinessEntityAddress>();
			_salesOrderHeaders = new Iesi.Collections.Generic.HashedSet<SalesOrderHeader>();
			_salesOrderHeaders1 = new Iesi.Collections.Generic.HashedSet<SalesOrderHeader>();
			_addressId = default(System.Int32);
			OnCreated();
		}
Exemple #26
0
 /// <summary>Initializes a new instance of the <see cref="ProductModel"/> class.</summary>
 public ProductModel() : base()
 {
     _products = new Iesi.Collections.Generic.HashedSet <Product>();
     _productModelIllustrations = new Iesi.Collections.Generic.HashedSet <ProductModelIllustration>();
     _productModelProductDescriptionCultures = new Iesi.Collections.Generic.HashedSet <ProductModelProductDescriptionCulture>();
     _productModelId = default(System.Int32);
     OnCreated();
 }
		/// <summary>Initializes a new instance of the <see cref="SalesPerson"/> class.</summary>
		public SalesPerson() : base()
		{
			_salesOrderHeaders = new Iesi.Collections.Generic.HashedSet<SalesOrderHeader>();
			_salesPersonQuotaHistories = new Iesi.Collections.Generic.HashedSet<SalesPersonQuotaHistory>();
			_salesTerritoryHistories = new Iesi.Collections.Generic.HashedSet<SalesTerritoryHistory>();
			_stores = new Iesi.Collections.Generic.HashedSet<Store>();
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="ProductModel"/> class.</summary>
		public ProductModel() : base()
		{
			_products = new Iesi.Collections.Generic.HashedSet<Product>();
			_productModelIllustrations = new Iesi.Collections.Generic.HashedSet<ProductModelIllustration>();
			_productModelProductDescriptionCultures = new Iesi.Collections.Generic.HashedSet<ProductModelProductDescriptionCulture>();
			_productModelId = default(System.Int32);
			OnCreated();
		}
 /// <summary>Initializes a new instance of the <see cref="SalesPerson"/> class.</summary>
 public SalesPerson() : base()
 {
     _salesOrderHeaders         = new Iesi.Collections.Generic.HashedSet <SalesOrderHeader>();
     _salesPersonQuotaHistories = new Iesi.Collections.Generic.HashedSet <SalesPersonQuotaHistory>();
     _salesTerritoryHistories   = new Iesi.Collections.Generic.HashedSet <SalesTerritoryHistory>();
     _stores = new Iesi.Collections.Generic.HashedSet <Store>();
     OnCreated();
 }
Exemple #30
0
 /// <summary>Initializes a new instance of the <see cref="Address"/> class.</summary>
 public Address() : base()
 {
     _businessEntityAddresses = new Iesi.Collections.Generic.HashedSet <BusinessEntityAddress>();
     _salesOrderHeaders       = new Iesi.Collections.Generic.HashedSet <SalesOrderHeader>();
     _salesOrderHeaders1      = new Iesi.Collections.Generic.HashedSet <SalesOrderHeader>();
     _addressId = default(System.Int32);
     OnCreated();
 }
		/// <summary>Initializes a new instance of the <see cref="UnitMeasure"/> class.</summary>
		public UnitMeasure() : base()
		{
			_billOfMaterials = new Iesi.Collections.Generic.HashedSet<BillOfMaterial>();
			_products = new Iesi.Collections.Generic.HashedSet<Product>();
			_products1 = new Iesi.Collections.Generic.HashedSet<Product>();
			_productVendors = new Iesi.Collections.Generic.HashedSet<ProductVendor>();
			OnCreated();
		}
 /// <summary>Initializes a new instance of the <see cref="UnitMeasure"/> class.</summary>
 public UnitMeasure() : base()
 {
     _billOfMaterials = new Iesi.Collections.Generic.HashedSet <BillOfMaterial>();
     _products        = new Iesi.Collections.Generic.HashedSet <Product>();
     _products1       = new Iesi.Collections.Generic.HashedSet <Product>();
     _productVendors  = new Iesi.Collections.Generic.HashedSet <ProductVendor>();
     OnCreated();
 }
Exemple #33
0
        public static IndexSearcher BuildSearcher(ISearchFactoryImplementor searchFactory,
                                                  out Iesi.Collections.Generic.ISet <System.Type> classesAndSubclasses,
                                                  params System.Type[] classes)
        {
            IDictionary <System.Type, DocumentBuilder> builders = searchFactory.DocumentBuilders;

            Iesi.Collections.Generic.ISet <IDirectoryProvider> directories = new HashedSet <IDirectoryProvider>();
            if (classes == null || classes.Length == 0)
            {
                // no class means all classes
                foreach (DocumentBuilder builder in builders.Values)
                {
                    foreach (IDirectoryProvider provider in builder.DirectoryProvidersSelectionStrategy.GetDirectoryProvidersForAllShards())
                    {
                        directories.Add(provider);
                    }
                }

                // Give them back an empty set
                classesAndSubclasses = null;
            }
            else
            {
                Iesi.Collections.Generic.ISet <System.Type> involvedClasses = new HashedSet <System.Type>();
                involvedClasses.AddAll(classes);
                foreach (System.Type clazz in classes)
                {
                    DocumentBuilder builder;
                    builders.TryGetValue(clazz, out builder);
                    if (builder != null)
                    {
                        involvedClasses.AddAll(builder.MappedSubclasses);
                    }
                }

                foreach (System.Type clazz in involvedClasses)
                {
                    DocumentBuilder builder;
                    builders.TryGetValue(clazz, out builder);

                    // TODO should we rather choose a polymorphic path and allow non mapped entities
                    if (builder == null)
                    {
                        throw new HibernateException("Not a mapped entity: " + clazz);
                    }

                    foreach (IDirectoryProvider provider in builder.DirectoryProvidersSelectionStrategy.GetDirectoryProvidersForAllShards())
                    {
                        directories.Add(provider);
                    }
                }

                classesAndSubclasses = involvedClasses;
            }

            IDirectoryProvider[] directoryProviders = new List <IDirectoryProvider>(directories).ToArray();
            return(new IndexSearcher(searchFactory.ReaderProvider.OpenReader(directoryProviders)));
        }
		/// <summary>Initializes a new instance of the <see cref="Vendor"/> class.</summary>
		public Vendor() : base()
		{
			_productVendors = new Iesi.Collections.Generic.HashedSet<ProductVendor>();
			_purchaseOrderHeaders = new Iesi.Collections.Generic.HashedSet<PurchaseOrderHeader>();
			_vendorAddresses = new Iesi.Collections.Generic.HashedSet<VendorAddress>();
			_vendorContacts = new Iesi.Collections.Generic.HashedSet<VendorContact>();
			_vendorId = default(System.Int32);
			OnCreated();
		}
 /// <summary>Initializes a new instance of the <see cref="SalesOrderHeader"/> class.</summary>
 public SalesOrderHeader() : base()
 {
     _salesOrderDetails            = new Iesi.Collections.Generic.HashedSet <SalesOrderDetail>();
     _salesOrderHeaderSalesReasons = new Iesi.Collections.Generic.HashedSet <SalesOrderHeaderSalesReason>();
     _salesOrderId     = default(System.Int32);
     _salesOrderNumber = default(System.String);
     _totalDue         = default(System.Decimal);
     OnCreated();
 }
Exemple #36
0
 /// <summary>Initializes a new instance of the <see cref="Person"/> class.</summary>
 public Person() : base()
 {
     _businessEntityContacts = new Iesi.Collections.Generic.HashedSet <BusinessEntityContact>();
     _contactCreditCards     = new Iesi.Collections.Generic.HashedSet <ContactCreditCard>();
     _customers      = new Iesi.Collections.Generic.HashedSet <Customer>();
     _emailAddresses = new Iesi.Collections.Generic.HashedSet <EmailAddress>();
     _personPhones   = new Iesi.Collections.Generic.HashedSet <PersonPhone>();
     OnCreated();
 }
        public void GetUserGroupsTest()
        {
            var target   = new User("kkkkk");
            var expected = new ReadOnlyCollection <UserGroup>(new List <UserGroup>());

            Iesi.Collections.Generic.ISet <UserGroup> actual = target.UserGroups;
            Assert.AreEqual(expected.Count
                            , actual.Count);
        }
Exemple #38
0
 public User SaveUser(User user, Iesi.Collections.Generic.ISet <UserProfile> profiles, Iesi.Collections.Generic.ISet <UserCustomRole> customRoles,
                      Iesi.Collections.Generic.ISet <UserCustomConstraint> customConstraints)
 {
     user.Profiles          = profiles;
     user.CustomRoles       = customRoles;
     user.CustomConstraints = customConstraints;
     user.UserName          = user.UserName.ToLower();
     return(new SWDBHibernateDAO().Save(user));
 }
		/// <summary>Initializes a new instance of the <see cref="SalesOrderHeader"/> class.</summary>
		public SalesOrderHeader() : base()
		{
			_salesOrderDetails = new Iesi.Collections.Generic.HashedSet<SalesOrderDetail>();
			_salesOrderHeaderSalesReasons = new Iesi.Collections.Generic.HashedSet<SalesOrderHeaderSalesReason>();
			_salesOrderId = default(System.Int32);
			_salesOrderNumber = default(System.String);
			_totalDue = default(System.Decimal);
			OnCreated();
		}
Exemple #40
0
		/// <summary>Initializes a new instance of the <see cref="Person"/> class.</summary>
		public Person() : base()
		{
			_businessEntityContacts = new Iesi.Collections.Generic.HashedSet<BusinessEntityContact>();
			_contactCreditCards = new Iesi.Collections.Generic.HashedSet<ContactCreditCard>();
			_customers = new Iesi.Collections.Generic.HashedSet<Customer>();
			_emailAddresses = new Iesi.Collections.Generic.HashedSet<EmailAddress>();
			_personPhones = new Iesi.Collections.Generic.HashedSet<PersonPhone>();
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="SalesTerritory"/> class.</summary>
		public SalesTerritory() : base()
		{
			_customers = new Iesi.Collections.Generic.HashedSet<Customer>();
			_salesOrderHeaders = new Iesi.Collections.Generic.HashedSet<SalesOrderHeader>();
			_salesPeople = new Iesi.Collections.Generic.HashedSet<SalesPerson>();
			_salesTerritoryHistories = new Iesi.Collections.Generic.HashedSet<SalesTerritoryHistory>();
			_stateProvinces = new Iesi.Collections.Generic.HashedSet<StateProvince>();
			_territoryId = default(System.Int32);
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="Address"/> class.</summary>
		public Address() : base()
		{
			_customerAddresses = new Iesi.Collections.Generic.HashedSet<CustomerAddress>();
			_employeeAddresses = new Iesi.Collections.Generic.HashedSet<EmployeeAddress>();
			_salesOrderHeaders = new Iesi.Collections.Generic.HashedSet<SalesOrderHeader>();
			_salesOrderHeaders1 = new Iesi.Collections.Generic.HashedSet<SalesOrderHeader>();
			_vendorAddresses = new Iesi.Collections.Generic.HashedSet<VendorAddress>();
			_addressId = default(System.Int32);
			OnCreated();
		}
 /// <summary>Initializes a new instance of the <see cref="SalesTerritory"/> class.</summary>
 public SalesTerritory() : base()
 {
     _customers               = new Iesi.Collections.Generic.HashedSet <Customer>();
     _salesOrderHeaders       = new Iesi.Collections.Generic.HashedSet <SalesOrderHeader>();
     _salesPeople             = new Iesi.Collections.Generic.HashedSet <SalesPerson>();
     _salesTerritoryHistories = new Iesi.Collections.Generic.HashedSet <SalesTerritoryHistory>();
     _stateProvinces          = new Iesi.Collections.Generic.HashedSet <StateProvince>();
     _territoryId             = default(System.Int32);
     OnCreated();
 }
		/// <summary>Initializes a new instance of the <see cref="Employee"/> class.</summary>
		public Employee() : base()
		{
			_documents = new Iesi.Collections.Generic.HashedSet<Document>();
			_employeeDepartmentHistories = new Iesi.Collections.Generic.HashedSet<EmployeeDepartmentHistory>();
			_employeePayHistories = new Iesi.Collections.Generic.HashedSet<EmployeePayHistory>();
			_jobCandidates = new Iesi.Collections.Generic.HashedSet<JobCandidate>();
			_purchaseOrderHeaders = new Iesi.Collections.Generic.HashedSet<PurchaseOrderHeader>();
			_employeeId = default(System.Int32);
			_organizationLevel = default(Nullable<System.Int16>);
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="Contact"/> class.</summary>
		public Contact() : base()
		{
			_contactCreditCards = new Iesi.Collections.Generic.HashedSet<ContactCreditCard>();
			_employees = new Iesi.Collections.Generic.HashedSet<Employee>();
			_individuals = new Iesi.Collections.Generic.HashedSet<Individual>();
			_salesOrderHeaders = new Iesi.Collections.Generic.HashedSet<SalesOrderHeader>();
			_storeContacts = new Iesi.Collections.Generic.HashedSet<StoreContact>();
			_vendorContacts = new Iesi.Collections.Generic.HashedSet<VendorContact>();
			_contactId = default(System.Int32);
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="Employee"/> class.</summary>
		public Employee() : base()
		{
			_employees = new Iesi.Collections.Generic.HashedSet<Employee>();
			_employeeAddresses = new Iesi.Collections.Generic.HashedSet<EmployeeAddress>();
			_employeeDepartmentHistories = new Iesi.Collections.Generic.HashedSet<EmployeeDepartmentHistory>();
			_employeePayHistories = new Iesi.Collections.Generic.HashedSet<EmployeePayHistory>();
			_jobCandidates = new Iesi.Collections.Generic.HashedSet<JobCandidate>();
			_purchaseOrderHeaders = new Iesi.Collections.Generic.HashedSet<PurchaseOrderHeader>();
			_employeeId = default(System.Int32);
			OnCreated();
		}
Exemple #47
0
 /// <summary>Initializes a new instance of the <see cref="Employee"/> class.</summary>
 public Employee() : base()
 {
     _documents = new Iesi.Collections.Generic.HashedSet <Document>();
     _employeeDepartmentHistories = new Iesi.Collections.Generic.HashedSet <EmployeeDepartmentHistory>();
     _employeePayHistories        = new Iesi.Collections.Generic.HashedSet <EmployeePayHistory>();
     _jobCandidates        = new Iesi.Collections.Generic.HashedSet <JobCandidate>();
     _purchaseOrderHeaders = new Iesi.Collections.Generic.HashedSet <PurchaseOrderHeader>();
     _employeeId           = default(System.Int32);
     _organizationLevel    = default(Nullable <System.Int16>);
     OnCreated();
 }
Exemple #48
0
        public User()
        {
            UserFactory theUserFactory = new UserFactory();

            _repository = theUserFactory.createRepository();
            if (_repository == null)
            {
                throw new NotImplementedException();
            }

            this._Roles = new Iesi.Collections.Generic.HashedSet <Role>();
        }
Exemple #49
0
        public Shipping()
        {
            this._Shippingitems = new Iesi.Collections.Generic.HashedSet <Shippingitem>();

            ShippingFactory theFactory = new ShippingFactory();

            _repository = theFactory.createRepository();
            if (_repository == null)
            {
                throw new NotImplementedException();
            }
        }
Exemple #50
0
        public Role()
        {
            RoleFactory theRoleFactory = new RoleFactory();

            _repository = theRoleFactory.createRepository();
            if (_repository == null)
            {
                throw new NotImplementedException();
            }

            this._Actions = new Iesi.Collections.Generic.HashedSet <Action>();

            this._Users = new Iesi.Collections.Generic.HashedSet <User>();
        }
Exemple #51
0
        public Shippingitem()
        {
            this._Distributes = new Iesi.Collections.Generic.HashedSet <Shippingitemdistribute>();

            ShippingitemFactory theFactory = new ShippingitemFactory();

            _repository = theFactory.createRepository();
            if (_repository == null)
            {
                throw new NotImplementedException();
            }

            this._Stores = new Iesi.Collections.Generic.HashedSet <Store>();
        }
Exemple #52
0
        public Store()
        {
            StoreFactory theStoreFactory = new StoreFactory();

            _repository = theStoreFactory.createRepository();
            if (_repository == null)
            {
                throw new NotImplementedException();
            }

            this._Materials = new Iesi.Collections.Generic.HashedSet <Material>();
            this._Devices   = new Iesi.Collections.Generic.HashedSet <Device>();

            this._Areas = new Iesi.Collections.Generic.HashedSet <Area>();
        }
        public void Add_Remove_UserGroup()
        {
            var target = new User("kkkkk");
            var ug     = new UserGroup("usergroup2");

            Assert.IsTrue(target.UserGroups.Add(ug));

            Iesi.Collections.Generic.ISet <UserGroup> s = target.UserGroups;
            Assert.IsTrue(s.Contains(ug));

            target.UserGroups.Remove(ug);
            s = target.UserGroups;
            Assert.IsFalse(s.Contains(ug));

            target.UserGroups.Remove(ug);
        }
		/// <summary>Initializes a new instance of the <see cref="Product"/> class.</summary>
		public Product() : base()
		{
			_billOfMaterials = new Iesi.Collections.Generic.HashedSet<BillOfMaterial>();
			_billOfMaterials1 = new Iesi.Collections.Generic.HashedSet<BillOfMaterial>();
			_productCostHistories = new Iesi.Collections.Generic.HashedSet<ProductCostHistory>();
			_productDocuments = new Iesi.Collections.Generic.HashedSet<ProductDocument>();
			_productInventories = new Iesi.Collections.Generic.HashedSet<ProductInventory>();
			_productListPriceHistories = new Iesi.Collections.Generic.HashedSet<ProductListPriceHistory>();
			_productProductPhotos = new Iesi.Collections.Generic.HashedSet<ProductProductPhoto>();
			_productReviews = new Iesi.Collections.Generic.HashedSet<ProductReview>();
			_productVendors = new Iesi.Collections.Generic.HashedSet<ProductVendor>();
			_purchaseOrderDetails = new Iesi.Collections.Generic.HashedSet<PurchaseOrderDetail>();
			_shoppingCartItems = new Iesi.Collections.Generic.HashedSet<ShoppingCartItem>();
			_specialOfferProducts = new Iesi.Collections.Generic.HashedSet<SpecialOfferProduct>();
			_transactionHistories = new Iesi.Collections.Generic.HashedSet<TransactionHistory>();
			_workOrders = new Iesi.Collections.Generic.HashedSet<WorkOrder>();
			_productId = default(System.Int32);
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="Store"/> class.</summary>
		public Store() : base()
		{
			_storeContacts = new Iesi.Collections.Generic.HashedSet<StoreContact>();
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="Culture"/> class.</summary>
		public Culture() : base()
		{
			_productModelProductDescriptionCultures = new Iesi.Collections.Generic.HashedSet<ProductModelProductDescriptionCulture>();
			OnCreated();
		}
Exemple #57
0
 public Menu()
 {
     this._children = new Iesi.Collections.Generic.HashedSet<Menu>();
 }
		/// <summary>Initializes a new instance of the <see cref="SpecialOfferProduct"/> class.</summary>
		public SpecialOfferProduct() : base()
		{
			_salesOrderDetails = new Iesi.Collections.Generic.HashedSet<SalesOrderDetail>();
			OnCreated();
		}
		/// <summary>Initializes a new instance of the <see cref="ScrapReason"/> class.</summary>
		public ScrapReason() : base()
		{
			_workOrders = new Iesi.Collections.Generic.HashedSet<WorkOrder>();
			_scrapReasonId = default(System.Int16);
			OnCreated();
		}
Exemple #60
0
		/// <summary>Initializes a new instance of the <see cref="Store"/> class.</summary>
		public Store() : base()
		{
			_customers = new Iesi.Collections.Generic.HashedSet<Customer>();
			OnCreated();
		}