Table of Contents

DDLServices 类

命名空间
Shadow.DDL
程序集
Shadow.DDL.dll

扩展方法

public static class DDLServices
继承
object
DDLServices

方法

GetDefineColumComponent(ISqlEngine)

获取类型解析器

public static IDefineColumComponent GetDefineColumComponent(this ISqlEngine engine)

参数

engine ISqlEngine

返回

IDefineColumComponent

异常

Exception

GetTypeParser(ISqlEngine, Type)

获取类型解析器

public static ITypeParser GetTypeParser(this ISqlEngine engine, Type originalType)

参数

engine ISqlEngine
originalType Type

返回

ITypeParser

异常

Exception

ToCreate(TableSchema)

建表

public static CreateTable ToCreate(this TableSchema table)

参数

table TableSchema

返回

CreateTable

ToCreate(ITable, IEnumerable<ColumnSchema>, IEnumerable<IConstraint>)

建表

public static CreateTable ToCreate(this ITable table, IEnumerable<ColumnSchema> columns, IEnumerable<IConstraint> constraints)

参数

table ITable

columns IEnumerable<ColumnSchema>

constraints IEnumerable<IConstraint>

约束

返回

CreateTable

ToDrop(ITable)

删表

public static DropTable ToDrop(this ITable table)

参数

table ITable

返回

DropTable