예제 #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);
        }
예제 #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));
 }
예제 #3
0
 public SchoolService() : base(typeof(ISchoolDao))
 {
     ServiceAggregationInfo organizationUnitsServiceAggregation = this.ServiceAggregationInfo.AddCompositeCollectionChild("OrganizationUnits", typeof(Products.Entities.OrganizationUnit), typeof(Products.Daos.Interfaces.IOrganizationUnitDao), "Organization");
 }
예제 #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));
 }