Esempio n. 1
0
        private ServiceAggregationInfo CreateReferenceInfoAggregation()
        {
            ServiceAggregationInfo aggregation = ServiceAggregationInfo.CreateRoot(typeof(Enterprise), typeof(IEnterpriseDao));

            aggregation.AddReferenceChild("ProductCatalog", typeof(Products.Entities.Catalog), typeof(Products.Daos.Interfaces.ICatalogDao));

            return(aggregation);
        }
Esempio n. 2
0
 public ProductService() : base(typeof(IProductDao))
 {
     ServiceAggregationInfo catalogServiceAggregationInfo = this.ServiceAggregationInfo.AddReferenceChild("Catalog", typeof(Products.Entities.Catalog), typeof(Products.Daos.Interfaces.ICatalogDao));
     ServiceAggregationInfo ownerServiceAggregationInfo   = this.ServiceAggregationInfo.AddReferenceChild("Owner", typeof(Products.Entities.Enterprise), typeof(Products.Daos.Interfaces.IEnterpriseDao));
 }
Esempio n. 3
0
 public SchoolService() : base(typeof(ISchoolDao))
 {
     ServiceAggregationInfo organizationUnitsServiceAggregation = this.ServiceAggregationInfo.AddCompositeCollectionChild("OrganizationUnits", typeof(Products.Entities.OrganizationUnit), typeof(Products.Daos.Interfaces.IOrganizationUnitDao), "Organization");
 }
Esempio n. 4
0
 public EnterpriseService() : base(typeof(IEnterpriseDao))
 {
     ServiceAggregationInfo organizationUnitsServiceAggregation  = this.ServiceAggregationInfo.AddCompositeCollectionChild("OrganizationUnits", typeof(Products.Entities.OrganizationUnit), typeof(Products.Daos.Interfaces.IOrganizationUnitDao), "Organization");
     ServiceAggregationInfo productCatalogServiceAggregationInfo = this.ServiceAggregationInfo.AddReferenceChild("ProductCatalog", typeof(Products.Entities.Catalog), typeof(Products.Daos.Interfaces.ICatalogDao));
 }