Table of Contents

Method CreateView

Namespace
YndigoBlue.Velocity.Model
Assembly
YndigoBlue.Velocity.dll

CreateView(string, ViewType)

Creates a new view in this schema.

public View CreateView(string name, ViewType viewType)

Parameters

name string

The name of the view to create.

viewType ViewType

The type of view (Code or Sql).

Returns

View

The newly created View instance.

CreateView(string, ViewType, Query)

Creates a new view in this schema with a Query definition.

public View CreateView(string name, ViewType viewType, Query query)

Parameters

name string

The name of the view to create.

viewType ViewType

The type of view (Code or Sql).

query Query

The Query object that defines the view.

Returns

View

The newly created View instance.

CreateView(string, ViewType, string)

Creates a new view in this schema with a SQL definition.

public View CreateView(string name, ViewType viewType, string sql)

Parameters

name string

The name of the view to create.

viewType ViewType

The type of view (Code or Sql).

sql string

The SQL statement that defines the view.

Returns

View

The newly created View instance.