Пример #1
0
 public void Visit(BeginView instruction)
 {
     if (Table != null)
     {
         return;
     }
     Table = _schema.Views[instruction.ViewName];
 }
Пример #2
0
 public void Visit(BeginTable instruction)
 {
     if (Table != null)
     {
         return;
     }
     Table = _schema.Tables[instruction.TableName];
 }
        public void Visit(BeginView beginView)
        {
            _schemaTable = _schemaCache.Views[beginView.TableName];

            if (_schemaTable == null)
            {
                throw new Exception("No view {0} was found in the schema.".ToFormat(beginView.TableName));
            }
        }
        public void Visit(BeginTable beginTable)
        {
            _schemaTable = _schemaCache.Tables[beginTable.TableName];

            if (_schemaTable == null)
            {
                throw new Exception("No table {0} was found in the schema.".ToFormat(beginTable.TableName));
            }
        }
Пример #5
0
        public void Visit(BeginView instruction)
        {
            _schemaTable = _schemaCache.Views[instruction.ViewName];

            if (_schemaTable == null)
            {
                throw new Exception("No view {0} was found in the schema.".ToFormat(instruction.ViewName));
            }
        }
 public void Visit(BeginView beginView)
 {
     _schemaTable = _schemaCache.Views[beginView.TableName];
 }
 public void Visit(BeginTable beginTable)
 {
     _schemaTable = _schemaCache.Tables[beginTable.TableName];
 }
Пример #8
0
 public ModelQueryResult(ISchemaTableBase baseTable, IEnumerable <MappedProperty> properties)
 {
     BaseTable  = baseTable;
     Properties = properties;
 }