internal static ViewGenResults GenerateViewsFromMapping( EntityContainerMapping containerMapping, ConfigViewGenerator config) { CellCreator cellCreator = new CellCreator(containerMapping); List <Cell> cells = cellCreator.GenerateCells(); CqlIdentifiers identifiers = cellCreator.Identifiers; return(ViewgenGatekeeper.GenerateViewsFromCells(cells, config, identifiers, containerMapping)); }
/// <summary> /// Entry point for View Generation /// </summary> /// <param name="containerMapping"> </param> /// <param name="workSpace"> </param> /// <param name="config"> </param> /// <returns> Generated Views for EntitySets </returns> internal static ViewGenResults GenerateViewsFromMapping(StorageEntityContainerMapping containerMapping, ConfigViewGenerator config) { DebugCheck.NotNull(containerMapping); DebugCheck.NotNull(config); Debug.Assert(containerMapping.HasViews, "Precondition Violated: No mapping exists to generate views for!"); //Create Cells from StorageEntityContainerMapping var cellCreator = new CellCreator(containerMapping); var cells = cellCreator.GenerateCells(); var identifiers = cellCreator.Identifiers; return(GenerateViewsFromCells(cells, config, identifiers, containerMapping)); }
/// <summary> /// Entry point for View Generation /// </summary> /// <param name="containerMapping"> </param> /// <param name="workSpace"> </param> /// <param name="config"> </param> /// <returns> Generated Views for EntitySets </returns> internal static ViewGenResults GenerateViewsFromMapping(StorageEntityContainerMapping containerMapping, ConfigViewGenerator config) { DebugCheck.NotNull(containerMapping); DebugCheck.NotNull(config); Debug.Assert(containerMapping.HasViews, "Precondition Violated: No mapping exists to generate views for!"); //Create Cells from StorageEntityContainerMapping var cellCreator = new CellCreator(containerMapping); var cells = cellCreator.GenerateCells(); var identifiers = cellCreator.Identifiers; return GenerateViewsFromCells(cells, config, identifiers, containerMapping); }
/// <summary> /// Entry point for View Generation /// </summary> /// <param name="containerMapping"></param> /// <param name="workSpace"></param> /// <param name="config"></param> /// <returns>Generated Views for EntitySets</returns> internal static ViewGenResults GenerateViewsFromMapping(StorageEntityContainerMapping containerMapping, ConfigViewGenerator config) { Contract.Requires(containerMapping != null); Contract.Requires(config != null); Debug.Assert(containerMapping.HasViews, "Precondition Violated: No mapping exists to generate views for!"); #if DEBUG if (config.IsNormalTracing) { containerMapping.Print(0); } #endif //Create Cells from StorageEntityContainerMapping var cellCreator = new CellCreator(containerMapping); var cells = cellCreator.GenerateCells(); var identifiers = cellCreator.Identifiers; return GenerateViewsFromCells(cells, config, identifiers, containerMapping); }