コード例 #1
0
        private static void InitializeEntityModelStructuralDataServices(IEntityModelConceptualDataServices services, IEnumerable<EntityContainer> entityContainers, DependencyInjectionContainer container)
        {
            var driver = container.Resolve<IEntityContainerDataPopulationDriver>();
            driver.StructuralDataServices = services;
            driver.Random = container.Resolve<IRandomNumberGenerator>();
            driver.ThresholdForNumberOfEntities = -1;

            foreach (var entityContainer in entityContainers)
            {
                driver.EntityContainer = entityContainer;
                EntityContainerData data;
                driver.TryPopulateNextData(out data);
                driver.TryPopulateNextData(out data);
            }
        }
コード例 #2
0
 public EntityModelObjectServices(IEntityModelConceptualDataServices conceptualDataServices)
 {
     this.conceptualDataServices = conceptualDataServices;
 }