Table of Contents

Interface ISchemaProvider

Namespace
LinqToDB.SchemaProvider
Assembly
linq2db.dll

Database schema provider.

public interface ISchemaProvider
Extension Methods

Methods

GetSchema(DataConnection, GetSchemaOptions?)

Returns database schema. Note that it is recommended to call this method outside of transaction as some providers do not support it or behave incorrectly. At least following providers shouldn't be called in transaction:

  • MySQL;
  • Microsoft SQL Server;
  • Sybase;
  • DB2.
DatabaseSchema GetSchema(DataConnection dataConnection, GetSchemaOptions? options = null)

Parameters

dataConnection DataConnection

Data connection to use to read schema from.

options GetSchemaOptions

Schema read configuration options.

Returns

DatabaseSchema

Returns database schema information.