public ViewMetaModelBuilderResult BuildModel(IMetaModel storageModel, IEnumerable <IMetaModel> additionalStorageModels, string viewSchemaName)
        {
            if (storageModel.TableName.Contains("$"))
            {
                var model = new ViewMetaModel(storageModel.DatabaseName, viewSchemaName, storageModel.ModelNameCamelCased);
                // there are multiple tables involved

                return(new ViewMetaModelBuilderResult(true, model));
            }
            else
            {
                return(new ViewMetaModelBuilderResult(false, null));
            }
        }
        public ViewMetaModelBuilderResult BuildModel(IMetaModel storageModel, IEnumerable <IMetaModel> additionalStorageModels, string viewSchemaName)
        {
            if (!storageModel.TableName.Contains("$"))
            {
                var model = new ViewMetaModel(storageModel.DatabaseName, viewSchemaName, storageModel.ModelNameCamelCased);
                // there is only one table involved
                model.SetPrimaryTableSource(storageModel);

                // add the columns
                foreach (var col in storageModel.Columns)
                {
                    model.AddColumn(col, storageModel);
                }

                return(new ViewMetaModelBuilderResult(true, model));
            }
            else
            {
                return(new ViewMetaModelBuilderResult(false, null));
            }
        }
        public ViewMetaModelBuilderResult BuildModel(IMetaModel storageModel, IEnumerable<IMetaModel> additionalStorageModels, string viewSchemaName)
        {
            if (!storageModel.TableName.Contains ("$"))
            {
                var model = new ViewMetaModel (storageModel.DatabaseName, viewSchemaName, storageModel.ModelNameCamelCased);
                // there is only one table involved
                model.SetPrimaryTableSource(storageModel);

                // add the columns
                foreach (var col in storageModel.Columns)
                {
                    model.AddColumn (col, storageModel);
                }

                return new ViewMetaModelBuilderResult (true, model);
            }
            else
            {
                return new ViewMetaModelBuilderResult (false, null);
            }
        }