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